LuxelEspañol

Luxel v0.1 · Project

Changelog

All notable changes to the published packages (@luxel-framework/* and create-luxel). The format follows Keep a Changelog (https://keepachangelog.com/en/1.1.0/), and the packages follow semantic versioning (in 0.x, a minor version may break). The protocol (VSA), the runtime and the manifest have separate versions. Security fixes are also recorded in docs/security/CHANGELOG.md.

[Unreleased]

[0.1.0-beta.1] - 2026-12-03

The first public release, a beta. No external security review yet; not "production ready"; no WCAG or OWASP conformance is claimed. Install it with npm create luxel@beta. Luxel is a framework for CWP (Compiled Web Projection; defined in README.md). The authoring API (screen files) ships as a draft (ADR-061), and no session with a developer outside the project has run.

Added

  • @luxel-framework/compiler: TSX views written with @luxel-framework/ui compiled once into public HTML templates, slot maps and VSA manifests, deterministic and content-hashed, with diagnostics that give file:line:column, a code and a suggestion (packages/compiler/DIAGNOSTICS.md), including 26 common React habits.
  • @luxel-framework/runtime: a set of universal modules (core, forms, collection, poll, styles, dynamic, bridge, numeric, canvas). Each has the same hash in every app; a page loads only the modules its manifest declares. It resumes the server's page without hydrating, writes values and sends events. No third-party run-time dependency; core 8 113 B Brotli (8 106 B before ‹Logout>, below, added 61 B raw and 5 B Brotli; the scope rename then moved it by 2 B Brotli with no source change).
  • @luxel-framework/protocol: VSA 0.9 (docs/spec/vsa-0.9.md): closed-grammar validators, the compact wire, reads without an event id, and the capability extensions.
  • @luxel-framework/gateway and luxel-host: the single business event endpoint (POST /_luxel/event), view tokens (HMAC-SHA256), CSRF and exact Origin checks, Fetch Metadata, idempotency in the same transaction as the effect, state-version control, static public views, sign-in limits, a strict CSP with the runtime modules' hashes and Trusted Types, signed build provenance (ed25519, with an SBOM) and build revocation. Production mode refuses to start unsafe.
  • @luxel-framework/server: defineLoad and defineEvent, typed from the compiled contract; policies, scopes, versions and one transaction per event.
  • @luxel-framework/check and @luxel-framework/cli: luxel build, luxel dev (rebuild and reload on save), luxel check (JS budget, ASEF = 0, exposure, bounded collections, allowed events and components), luxel sign, luxel verify, luxel keygen, luxel revoke.
  • @luxel-framework/ui: the author components (View, Stack, Row, Text, Field, Action, Collection, Status, Select, Chart, Bar).
  • @luxel-framework/postgres: a shared session store and a shared rate limiter for several nodes.
  • create-luxel: npm create luxel@beta ‹dir> makes an app with a static sign-in, a form validated on the server, a paginated table, an E2E test and luxel check in the build.
  • Screen files (the authoring API, a draft: ADR-061 is not accepted, and names and shapes can still change): src/screens/‹view id>.screen.tsx holds everything one view needs, declared once with screen() from @luxel-framework/server/screen: its state, its messages, who may load it and send each event, the handlers and the view. The build generates the contract from it. The view names state, events and inputs with typed references (bind={state.summary}, event={events.add}), never with strings (LUXEL-E061, LUXEL-E062). At build time a screen's server imports are replaced by inert stand-ins (LUXEL-E060) and the screens are evaluated in a separate Node process with nothing allowed (a guard against a build that reads server code by mistake, not a sandbox). A project written with src/views/, server/contract.ts and server/events.ts keeps working and can live next to screens (docs/guide/screens.md).
  • ‹Link to="view"> in @luxel-framework/ui: a plain ‹a href> to another view of the app, its address a view id fixed at build time (LUXEL-E059 for a target that is not a route; ADR-058). Pages follow links without JavaScript, and crawlers can follow them. The documentation site navigates with links.
  • A view with no events and no bound state needs no handler (@luxel-framework/server).
  • ‹Logout to="view"> in @luxel-framework/ui: a sign-out button that works without JavaScript, compiled to a same-origin form (‹form method="post" action="/_luxel/logout">). POST /_luxel/logout answers that form with 303 to one destination per app, a public view fixed at build (LUXEL-E066), after checking Fetch Metadata and Origin; a script's request keeps the CSRF header and its 204. ctx.signOut() is unchanged.
  • Routes: a view declares a clean, static address with path (route: { path: '/pricing' } in a screen; views.‹id>.path or pages.‹id>.path in luxel.config.ts). The set of paths, plus the id addresses of the views without one, is the app's route table, fixed at build: luxel build writes it to the host configuration (routes), links are written with the table's addresses, and luxel-host answers a page at no other address (anything else is a 404; nothing is decoded or case-folded). Two views cannot declare one path (LUXEL-E065); a path outside the grammar, a reserved prefix or a parameter segment does not build (LUXEL-E064; route parameters are not available yet). An app that declares no path keeps its addresses and builds to the same bytes. home is optional when a view declares /.
  • luxel test and @luxel-framework/cli/test (preview, not frozen; ADR-061 §5): screen tests without a browser. A test opens a page of the built app on the real host, fills fields and presses actions by the names the served page shows, and reads its texts, status and rows; the page is driven by the runtime's own core. --mutate-bindings removes each bound zone of each compiled view in turn and reports the zones no test would miss. It refuses LUXEL_ENV=production. Guide: docs/guide/testing-screens.md.
  • luxel dev: with the memory session store, a session survives the host restart a server edit causes. Under luxel dev, and only there, each session is also kept in a file under node_modules/.cache/luxel/dev-sessions-‹project>/ (the user, the roles and the two times; never the session id or the CSRF token). luxel-host never reads or writes these files and does not start with LUXEL_DEV_SESSION_FILE set (docs/guide/tooling.md).
  • collection({ …, page: false, maxItems }) exempts a short, fixed list from policies.pageSize where it is declared (C14); luxel check lists every declared exemption with its bound.

Changed

  • The create-luxel template is written as screen files (src/screens/login.screen.tsx at /sign-in, src/screens/contacts.screen.tsx at /): no server/contract.ts, server/events.ts or src/views/, and the sign-out is ‹Logout>. It has screen tests (tests/app.test.mjs; npm test is luxel build && luxel test).
  • luxel dev: saving a screen file whose server bundle changed starts a new host process, so an edited handler is the code that runs next. The host used to be reloaded in place and kept the old handlers. The comparison is with the bundle the running host process loaded, so a handler edited while the build was broken, or before a host start that failed, also runs once the build is good (apps with server/events.ts included).
  • A composite page and a view can no longer share an id (LUXEL-E024): the page used to replace the view silently in the host configuration.
  • home must be an address of the app: a home that names no page now fails the build, luxel check and the start of luxel-host (LUXEL-E024).
  • luxel.config.ts, the server contract and each view file are evaluated synchronously under the build-time traps a view function already ran under. Reading process.env, the clock, Math.random or the network there no longer builds (LUXEL-E054, LUXEL-E026, LUXEL-E052), and neither does a top-level await. The configuration and the contract must be plain data (text, numbers, booleans, lists, plain objects): a function, a class instance, a Date or a Map in them no longer builds (LUXEL-E024). Write literals; read per-environment configuration on the server.
  • A collection's maxItems is enforced wherever its state leaves the server, for every collection and every adapter (the gateway checks what any adapter gives, a hand-written one too): a load (the filled page, GET /_luxel/view) and an event's answer (set/update, sync, its inserts). A list over its bound is refused whole (HTTP 500, CollectionBoundError, LUXEL-E029 in the log), never shortened. Before, only the filled page was refused. A handler that returned more items than its ‹Collection maxItems> now fails.
  • An insert into a list the answer does not give whole (ctx.insert alone) is settled on the server. For form rows the event carries (a row collection with inputs declared in the action's fields), the count is on the rows received, with no load. For any other list the view's load runs once more inside the event's transaction: the answer must match that state (its inserted keys in the list, its removed keys not) and the list its bound. ctx.sync or ctx.set avoids the second load. A handler that answered an insert without storing the row now fails. The runtime does not change: the browser applies what the server answers.
  • A ‹Collection> bound by a path string always writes maxItems (LUXEL-E029), also for an exempt list; only a screen's accessor carries the declared bound.

Security

  • A process.env read at the top of a view file, or anywhere in luxel.config.ts or the contract, was compiled into public outputs (a template, a page title, a message, a route and the links to it). It is now a build error (docs/security/CHANGELOG.md, S12.3-C5-1).
  • See docs/security/threat-model.md for what Luxel protects and what it does not, and docs/security/CHANGELOG.md for every issue found and fixed before this release.

[Unreleased]: https://github.com/IntiOps/luxel/compare/v0.1.0-beta.1...HEAD [0.1.0-beta.1]: https://github.com/IntiOps/luxel/releases/tag/v0.1.0-beta.1

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.