Luxel v0.1 · Reference · part 7 of 12
API reference (7)
| Export | Kind | Description |
|---|
| TextLeaf | interface | — |
| ValueOf | type | What a path takes. */ |
| VersionedItem | interface | An item of a versioned collection: its key, the version of the row behind it, its fields. */ |
| viewRef | const | — |
| ViewRef | interface | A view, as the generated views object exposes it. */ |
| ViewSpec | interface | — |
| withoutEventId | function | Sprint 12 (LUXEL-E055 at run time, ADR-050): a read has no event id. The build refuses a read handler whose own text reads it; code it calls (a helper, hand-written bindings) is caught here instead: reading eventId throws a clear error, while 'eventId' in x stays false and spreads never see it. / |
| WriteOutcome | type | — |
@luxel-framework/gateway
luxel-host, sessions, rate limits (what bindings use).
| Export | Kind | Description |
|---|
| ACCOUNT_DELAY_MAX_MS | const | Sprint 11 (ADR-049): the longest an attempt waits for its account's next slot (accountLimit "delay"). */ |
| addressGroup | function | Sprint 11 (red team RT-5): the key of an address for rate limits. An IPv6 client usually holds a whole /64, so its buckets are per /64; an IPv4-mapped IPv6 address is its IPv4 address. / |
| API_HEADERS | const | API response header policy (ADR-006): the same minimal set as the lab's baselines (examples/shared/server/api-headers.mjs). Documents keep securityHeaders(); JSON answers are never rendered, so they carry only nosniff, no-store and same-origin CORP (they hold user data). / |
| Bindings | interface | — |
| BodyResult | type | — |
| BUILD_DIGEST | const | — |
| buildApp | function | Everything public, hashed and validated. Pure: reads files, starts nothing. */ |
| buildDigest | function | The build digest: sha256 of provenance.json (or of build.json for an unsigned build), hex. */ |
| BuiltApp | interface | — |
| canonicalJson | function | JSON with sorted keys and no spaces: the bytes that are hashed and signed. */ |
| checkBuildFiles | function | Step 1, before anything of the build is loaded or run: the signature, then every build file (changed, missing or added). Returns the problems and, when the signature verifies, the provenance and the build digest. Never names a key or a file's content. / |
| checkDependencies | function | The installed dependencies against the signed provenance: missing, changed or added files. */ |
| checkProvenance | function | Both steps (luxel verify). */ |
| checkServed | function | Step 2, once the host has computed what it will serve: every URL and its bytes, exactly. */ |
| clearedSessionCookie | const | — |
| clientAddress | function | The address a rate limit keys on. Behind a proxy every request comes from the proxy, so with LUXEL_TRUST_PROXY=1 the host takes the LAST address of X-Forwarded-For (the one the proxy in front appended). Only for a host that is reachable through that proxy alone. / |
| CompiledProjection | interface | — |
| compileProjection | function | Splits a template at its slots. Throws on anything a compiled template never contains. options.routes (Sprint 12.3, C5): the route table's paths a link of the template may name. / |
Edit this page on GitHub