LuxelEspañol

Luxel v0.1 · Reference · part 11 of 12

API reference (11)

ExportKindDescription
sendJsonfunction—
servedHashesfunctionSprint 11 (ADR-048): the sha256 of every byte the host serves as a public file: runtime modules, assets (templates, slot maps, stylesheets), manifests as served, and the static pages (static:‹variant>/‹view>). Filled private pages are not artifacts (their template is). /
SESSION_COOKIEconst__Host-: Secure, Path=/, no Domain — the browser enforces all three. */
sessionBindingfunctionBinds a token to a session without putting the session id in it. */
SessionDelegateinterfaceWhat the app's backend implements. Every call names the session by hashSessionId(id): the backend never sees the id (nor the cookie), and luxel-host keeps nothing. The backend decides whether a session is valid (its own expiry, revocation, the user still active…) and may keep its own credentials for it (the pilot application: the JWT FastAPI issued, which never leaves the server). /
SessionLifetimesinterface—
SessionPrincipalinterface—
sessionRecordfunctionThe record a store returns for an id and what it keeps about it. */
SessionRecordinterface—
SessionResolvertypeResolves the Cookie header to a live session (anonymous or authenticated), or null. Sprint 8: it may answer with a promise (sessions in PostgreSQL, for several nodes; ADR-035). /
sessionSetCookiefunction—
SessionStartertypeStarts an anonymous session for a public view; returns it with its Set-Cookie value (or a promise of it). */
SessionStoreinterface—
sha256const—
SIGNATURE_FILEconst—
signProvenancefunction—
startHostfunctionlistenHost: the address to listen on (default: every interface, as a server behind a proxy needs). Sprint 11: luxel dev passes 127.0.0.1 (a development host is never reachable from the network). /
STATIC_SESSIONconstSprint 10 (ADR-046): what a static view's load and handlers see when the request has no session. No id, no user, no CSRF token: nothing to fix, steal or store. /
StoredSurfaceinterfaceA dynamic surface as one node projected it (luxel check passed there), for the other nodes. */
storeSessionsfunctionresolveSession / startSession / login / logout over a SessionStore, with the __Host- cookie. */
StoreSessionsinterface—
SurfaceStoreinterface—
TextNormalizationtypeSprint 12 (red team RT-13): text normalization of an input. Zero-width characters (U+200B–U+200D, U+2060, U+FEFF) and control characters other than tab and line breaks are removed, then the text is put in Unicode normal form NFC or NFKC (NFKC also folds look-alike compatibility forms such as full-width letters). Applied by the gateway before the sign-in limits and before any adapter. /
verifyFormTokenfunction—
VerifyResulttype—
ExportKindDescription
verifySignaturefunction—
verifyViewTokenfunction—
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet.