LUXEL / DOCUMENTATION / v0.2 (alpha)
Build for the server. Keep the browser light.
Explore compiled views, server-owned interactions, and a shared runtime that carries none of your application code.
This version documents Luxel 0.2.0-alpha.1: it adds identity from a trusted gateway (stage S1-A), the support matrix and its start-up refusals, and the upgrade from 0.1.0-beta.2.
To try the alpha, create the app with npm create luxel@alpha. Getting started, as tagged, still installs 0.1.0-beta.2 with npm create luxel@beta.
Compile once. Project information. Not application code. Luxel is a framework for CWP (Compiled Web Projection); the model is defined in plain words, with how it differs from SSR, in the README.
Luxel compiles your views once, at build time, into a public HTML template. Per request the server fills the template's slots with escaped text. The browser runs one shared runtime that contains none of your code. It resumes the page that is already painted and sends your events to the server. The server is the only authority: it computes, formats and decides everything.
This guide is for React and Next.js developers who have never seen Luxel.
Read in this order
- Getting started: from create-luxel to a first view in production. (En español)
- Concepts: compiled projection, slots, resume instead of hydration, and why the browser computes nothing.
- Views: TSX views, components, typed binds, layout, styles, static data, determinism.
- Forms: Field, Action, Status, Select, and validation on the server.
- Collections: lists, tables, server pagination, search, row actions, rows with inputs, versioned lists.
- Charts: Chart and Bar: a section, a scale and values, all from the server.
- Server: defineLoad, defineEvent, the full ctx API, policies, scopes, versions, idempotency, the EventStore, bindings.
- Sessions: session stores, sign-in and sign-out, static public views, rate limits, several nodes.
- Internationalization: several languages from catalogs, messages and plurals, formatting by the host.
- Polling: refreshing data that changes on the server.
- Security: the security model, and what Luxel does not do.
- Production: commands and environment variables, then the full checklist.
- Tooling: luxel build, luxel check, luxel dev, luxel-host, pack:local, create-luxel.
- Migrating from React: a mapping table and worked examples from a real Next.js app, with the honest cost of the move.
Preview
- Screens: one file per view, with its state, policies, handlers and view (Sprint 12.3; not frozen).
- Testing screens: luxel test, screen tests without a browser, on the built app and the real host (Sprint 12.3; not frozen).
- Luxel behind a gateway: identity from a trusted gateway (Envoy Gateway with Keycloak, oauth2-proxy, Cloudflare Access): the forwarded JWT verified on every request, the session bound to its subject (Sprint 13.5).
- Support matrix: what gateway identity supports in stage S1-A, and what luxel-host refuses at startup (LUXEL-M001, LUXEL-M002).
- Upgrading to 0.2.0-alpha.1: what changes from 0.1.0-beta.2 (gateway identity, the support matrix, allowlist logging) and the known gaps of the alpha.
Reference
- API reference, generated from the types.
- Typical React mistakes: the mistakes a React developer makes in Luxel, each with its diagnostic.
- Diagnostic catalog: every LUXEL-E… and LUXEL-W… code.
- Deploy checklist.
- What Luxel can claim, with its evidence.
Status
Luxel is a research framework. Its current release is a beta (0.1.0-beta.2), with no external security review. Install it from npm with npm create luxel@beta, or from tarballs you pack locally from a checkout (see Getting started). Nothing in this guide claims that Luxel is production ready, or WCAG or OWASP conformant.