LuxelEspañol

Luxel v0.2 · Reference · part 12 of 14

API reference (12)

ExportKindDescription
readBodyfunctionReads at most limit bytes; never buffers more than that. */
readHostConfigfunctionThrows on anything unexpected: a host that cannot validate its app must not start. */
ExportKindDescription
readIdentityTokenfunctionThe token in the configured header: absent (no header), or present. A present header that does not hold one well-formed token (another scheme, two values joined, empty, the field sent twice) gives token: null, which is refused like an invalid token: a gateway that sends the header always sends one token in it. Node keeps only the first of two Authorization fields, so the raw fields are counted. /
readSessionCookiefunctionThe session id the Cookie header names, or null (only a well-formed id is returned). */
redactfunction—
renderBootPagefunctionFills a page shell's placeholders: {{luxel:styles}} (head), {{luxel:context}} (content), {{luxel:runtime}} (end of body). filled (slot projection): each mounted view's filled template and resume block, written inside its context element; then the page carries what the first paint needs (content, per-view CSS) before anything else. /
RenderedPageinterface—
renderSurfacePagefunctionThe page of a dynamic surface: one context, a page the server did not fill (the dynamic module projects it from the manifest), the app's global stylesheets. /
ReplayGuardinterfaceSpends a single-use value once. The static views' form tokens are stored nowhere when they are issued; when one is USED its nonce is claimed here until the token would expire, so the same token is refused a second time. shared is true when every node claims in the same place (several nodes need it; @luxel-framework/postgres has one). Keys are hashes, never the token. /
RequestIdentityinterfaceSprint 13.5 (ADR-065): what a handler reads about the gateway's identity for the request it serves: the token's subject, its email claim when it is a string, the raw token as the gateway forwarded it (so the app can call its own backends with it) and every verified claim (locale, groups… are given, never enforced by Luxel). It comes from the token of each request, so it is always the token the gateway forwards now (a renewed one included), and it is never stored. The app must never put the token in a zone, a page, a URL or a log. /
ResolvedIdentityConfiginterfaceThe configuration with its defaults applied and every list normalized. */
ResolveOptionsinterfaceHow a session is read (SessionStore.resolve). */
responseHoldsRequestSecretfunctionS1r (ADR-065 §23): the scan sendDynamic makes, on its own: whether a response's body or an app-supplied header holds the request's credential. Callers that admit a held open run it FIRST (scan, then the credential check, then the admission and its cookie, then the write): a response refused by the scan never admits. /
ResumeBlockinterface—
RevocationListinterfaceSprint 11 (H-PROVENANCE, ADR-048): builds an operator has revoked, by build digest (sha256 of the signed provenance, hex). A host whose own build is listed stops serving (503 on every request, /healthz included) within one poll; shared is true when every node reads the same list (several nodes need it in production; @luxel-framework/postgres has one). /
RunningHostinterface—
SbomComponentinterface—
sbomFromLockfunctionThe app's dependencies from its package-lock.json (name, version, integrity), sorted. */
scriptJsonfunctionJSON for a ‹script type="application/json"> data block: nothing in it can close the element. */
scrubFieldsfunctionThe fields of a log entry, scrubbed: the same keys in the same order (an undefined value kept as it is); only string values change, and only when they hold a secret. A logger receives the shape it would have received. /
scrubForLogfunctionA text as it may be logged: the current request's secrets and anything JWT-shaped replaced. */
securityHeadersfunctionFull set, for documents (pages) and static files. CLAUDE.md decision 13, as amended by decision 15: script-src lists only the hashes of the runtime modules (and the import map) the page may run; style-src adds the hash of the page's inline per-view CSS when there is one. Trusted Types are required and no policy may be created. Everything else is closed. /
sendDynamicfunctionAny per-request body (JSON, filled pages): no-store by default, compressed with the rule above. */
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_CLOSE_ATTEMPTSconstHow often the store is asked to close an existing session before the request fails closed (ADR-065 §13). */
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. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.