| parseProvenanceKeys | function | LUXEL_PROVENANCE_KEYS: "kid:‹base64url public key>[,…]" (32-byte ed25519 public keys). */ |
| parseSigningKey | function | LUXEL_SIGNING_KEY: "kid:‹base64url 32-byte ed25519 seed>" (kept out of the repository). */ |
| parseViewKeys | function | Parses LUXEL_VIEW_KEYS: "kid:base64secret[,kid:base64secret...]"; the first one signs. */ |
| productionProblems | function | Everything that keeps a host from starting in production, without any value in the text. */ |
| Provenance | interface | — |
| PROVENANCE_FILE | const | — |
| ProvenanceKey | interface | — |
| RateLimiter | interface | Sprint 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). / |
| RateLimitOptions | interface | — |
| RateLimitResult | type | — |
| readBody | function | Reads at most limit bytes; never buffers more than that. */ |
| readHostConfig | function | Throws on anything unexpected: a host that cannot validate its app must not start. */ |
| readSessionCookie | function | The session id the Cookie header names, or null (only a well-formed id is returned). */ |
| redact | function | Never log a full token: keep a prefix and the length, enough to correlate. */ |
| renderBootPage | function | Fills 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. / |
| RenderedPage | interface | — |
| renderSurfacePage | function | The 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. / |
| ReplayGuard | interface | Spends 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. / |
| ResumeBlock | interface | — |
| RevocationList | interface | Sprint 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). / |
| RunningHost | interface | — |
| SbomComponent | interface | — |
| sbomFromLock | function | The app's dependencies from its package-lock.json (name, version, integrity), sorted. */ |
| scriptJson | function | JSON for a ‹script type="application/json"> data block: nothing in it can close the element. */ |
| securityHeaders | function | Full 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. / |
| sendDynamic | function | Any per-request body (JSON, filled pages): no-store by default, compressed with the rule above. */ |