LuxelEspañol

Luxel v0.1 · Reference · part 7 of 12

API reference (7)

ExportKindDescription
TextLeafinterface—
ValueOftypeWhat a path takes. */
VersionedIteminterfaceAn item of a versioned collection: its key, the version of the row behind it, its fields. */
viewRefconst—
ViewRefinterfaceA view, as the generated views object exposes it. */
ViewSpecinterface—
withoutEventIdfunctionSprint 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. /
WriteOutcometype—

@luxel-framework/gateway

luxel-host, sessions, rate limits (what bindings use).

ExportKindDescription
ACCOUNT_DELAY_MAX_MSconstSprint 11 (ADR-049): the longest an attempt waits for its account's next slot (accountLimit "delay"). */
addressGroupfunctionSprint 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_HEADERSconstAPI 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). /
Bindingsinterface—
BodyResulttype—
BUILD_DIGESTconst—
buildAppfunctionEverything public, hashed and validated. Pure: reads files, starts nothing. */
buildDigestfunctionThe build digest: sha256 of provenance.json (or of build.json for an unsigned build), hex. */
BuiltAppinterface—
canonicalJsonfunctionJSON with sorted keys and no spaces: the bytes that are hashed and signed. */
checkBuildFilesfunctionStep 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. /
checkDependenciesfunctionThe installed dependencies against the signed provenance: missing, changed or added files. */
checkProvenancefunctionBoth steps (luxel verify). */
checkServedfunctionStep 2, once the host has computed what it will serve: every URL and its bytes, exactly. */
clearedSessionCookieconst—
clientAddressfunctionThe 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. /
CompiledProjectioninterface—
compileProjectionfunctionSplits 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

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.