LuxelEspañol

Luxel v0.2 · Start · part 2 of 2

Concepts (2)

The contract

server/contract.ts is the one place where the server's side of each view is declared:

  • state: a tree of paths with typed leaves (text(), money(), collection(…)…);
  • events: every event the view can send, each with its authorization policy;
  • messages: the templates the server sends as compiled references, with {0}…{9}.

The compiler checks every bind and every event of your views against it, and generates the handler types from it. Only the message templates are public text; paths and event handlers stay on the server.

Where to go next

  • Views for writing TSX views.
  • Server for the handler side.
  • Security for the model behind the gateway.
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. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.