LuxelEspañol

Luxel v0.1 · Reference · part 8 of 12

API reference (8)

ExportKindDescription
COMPRESS_MIN_BYTESconstDynamic JSON is compressed with the SAME rule as the lab's shared server (examples/shared/server/server.mjs, compressDynamic): only 200 responses of at least 1 KiB, Brotli quality 4 if accepted, else gzip level 6. Benchmark fairness. /
createDelegatedSessionStorefunction—
createGatewayfunction—
createMemoryReplayGuardfunctionOne process: a map of spent keys, swept as they expire, bounded (oldest out). */
createMemoryRevocationListfunctionOne process. initial: digests revoked before start-up (e.g. from LUXEL_REVOKED_BUILDS). */
createMemorySessionStorefunctionOne process. A restart ends every session; several nodes need a shared store (H-PROD-CONFIG). Development only (Sprint 12.3, D13): under luxel dev (LUXEL_DEV_SESSION_FILE with LUXEL_ENV=development; see dev-session-file.ts) a store created without map also keeps each session in a file: written when the session is opened, removed when it is signed out, revoked or expires, and looked at before every operation. So a session survives the new host process a server edit starts, and a sign-out in one process holds in the other. Outside development the variable makes the store refuse to be created. /
createRateLimiterfunctionIn-memory token buckets, one per key (session or client address). One process. */
csrfForconstThe session's CSRF token: derived, so no store keeps it; changes with the id. */
csrfMatchesfunction—
DEFAULT_LIFETIMESconst—
DelegatedSessionStoreOptionsinterface—
dependencyHashesfunctionThe closure of the production dependencies (and installed optionalDependencies) of the package.json nearest the build, resolved as Node resolves them (links followed), each package's files hashed. Keys do not depend on where node_modules is, so a build signed on one machine verifies on the one that runs it after npm ci. A required package that cannot be found is recorded as missing. /
escapeTextconst—
fetchMetadataAllowsfunctionFetch Metadata (Sprint 7, SEC-S7), in addition to Origin and CSRF. When a browser sends these headers, an event must come from a same-origin script (Sec-Fetch-Site: same-origin, mode cors or same-origin, destination empty), and so must a state read. A request without them (a non-browser client, an old browser) is left to the Origin and CSRF checks. /
FilltypeWhat only the filled page shows (Sprint 7): the options every row select of a collection lists. */
FillDatatypeSprint 7: what only the filled page shows (e.g. the options every row select lists). */
fillProjectionfunctionFills one view. Returns the view's HTML followed by its resume block. */
fillStaticPagesfunctionSprint 10 (ADR-046): static views, filled once per slots variant with a state read without a session, a placeholder view token no gateway accepts and no CSRF token (the runtime then asks for a form token before each send). Sprint 11: exported, so luxel sign hashes the very pages the host will serve (ADR-048); a load that returns something else at start-up stops the host. /
FormTokenClaimsinterface—
FormVerifyResulttype—
GatewayOptionsinterface—
GatewaySessioninterface—
hashSessionIdconstWhat a store keeps instead of the id (and the key of everything about it). */
HostConfiginterface—
HostModuleinterfaceA universal runtime module as the host serves it. */
hostNamefunctionThe Host header's name without its port, lower-cased; '' when there is none or it is malformed. */
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.