LuxelEspañol

Luxel v0.1 · Reference · part 10 of 12

API reference (10)

ExportKindDescription
parseProvenanceKeysfunctionLUXEL_PROVENANCE_KEYS: "kid:‹base64url public key>[,…]" (32-byte ed25519 public keys). */
parseSigningKeyfunctionLUXEL_SIGNING_KEY: "kid:‹base64url 32-byte ed25519 seed>" (kept out of the repository). */
parseViewKeysfunctionParses LUXEL_VIEW_KEYS: "kid:base64secret[,kid:base64secret...]"; the first one signs. */
productionProblemsfunctionEverything that keeps a host from starting in production, without any value in the text. */
Provenanceinterface—
PROVENANCE_FILEconst—
ProvenanceKeyinterface—
RateLimiterinterfaceSprint 9 (ADR-040): the rate-limit contract. shared is true when every node takes from the same buckets (the limit is global, not per node); @luxel-framework/postgres has one. Keys never carry a secret (the gateway passes a hash of the session). /
RateLimitOptionsinterface—
RateLimitResulttype—
readBodyfunctionReads at most limit bytes; never buffers more than that. */
readHostConfigfunctionThrows on anything unexpected: a host that cannot validate its app must not start. */
readSessionCookiefunctionThe session id the Cookie header names, or null (only a well-formed id is returned). */
redactfunctionNever log a full token: keep a prefix and the length, enough to correlate. */
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. /
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. */
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. */
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.