Elur Universal — framework
A single framework: one IR, one reconciler, pure backends. Master document:
../Elur-Universal-Documento-Arquitectura-v6.0.pdf (the v5 proposal lives in
../planes/PROPUESTA-DOCUMENTO-MAESTRO-v5.md).
Current status: docs/ESTADO.md (living source per commit) · pending and
deferred work: docs/PENDIENTES.md · consolidated native implementation:
docs/IMPLEMENTACION-NATIVA-v5.md · SOTA audit and roadmap:
docs/AUDITORIA-STATE-OF-THE-ART-2026-11.md.
Structure
src/
ir/ IRNode/IRDocument, irVersion, ui`` builder, semantics.ts
reconciler/ IR + signals → DisplayOps (DOM-free, engine-agnostic)
transport/ Binary Display List (runtime) + JSON (debug)
router/ Universal router — DOM-free core + adapters
adapters/ Kit integration (bridge, SSR, request, history, nav)
ssr/ SSR applicator (createHtmlApplicator) + render-page
hydration/ Reserved (data-elur / hydrate() pending consumer)
sdui/ Server-driven UI: envelope, lowering, A2UI renderer
(v0.9 + v1.0), gateway live (/serve + /publish + MCP)
backends/ JS side of the applicators: web/ (DOM) + native/
(marshaling to the ElurBridge host object)
native/ Native module contract: def/manifest, wire registry,
codegen (TS/Kotlin/mock), sharedMemory (CESM facade +
ring), binaryCodec, platformView, trace, tck, webModule
animations/ Worklets: main-thread + UIThreadRunner, gestures,
scroll, compositor binds, capture check
app/ mountApp/mountEmbeddedApp, embedded host, state snapshot
platform.ts Escape hatch: platform({ web, native, default })
layout/ Reserved (the Yoga instance lives in the target)
cli/ Toolchain: elur build/dev/doctor/create/debug/engines,
sdui (gateway/mcp/sign), plugin manifest|check|sync|codegen|
create|add, gen-es5 (Babel ie11), gen-hbc (hermesc HBC 99),
gen-qjsc, gen-bundle, gen-host-integration, layout-oracle,
run-tck/run-parity
targets/
android/ Kotlin shell + JNI/C++ (QuickJS/Hermes bridges, Platform
Views renderers, vendored Yoga 3.2.1, CESM glue)
linux/ Native GTK4 host (GtkFixed applicator, Pango measure,
AT-SPI a11y, platform views, packaging appimage/deb/rpm)
windows/ Native WinUI 3 host (C++/WinRT, UIA a11y, unpackaged
self-contained)
ios/ Future — spec ready (ADR-0010, requires Mac)
web/ Reference Vite/SSR server
native/ Shared host C++, platform+engine agnostic:
cesm/ (core + qjs/hermes adapters, host tests) and
layout-oracle/ (binary against vendored Yoga)
packages/ Workspace packages (lockstep platform targets + domain modules):
Platforms: @elurjs/android, @elurjs/linux (+ @elurjs/linux-x64),
@elurjs/windows (+ @elurjs/windows-x64)
Modules: @elurjs/i18n, @elurjs/kv, @elurjs/location
tests/ unit (vitest+jsdom) · parity (same tests on QuickJS-ng and
real Hermes) · stress · e2e (Playwright) · tck ·
wire corpus · layout corpus · i18n corpus · bench
docs/adr/ ADR-0013 … ADR-0223 (index in docs/adr/README.md)
Golden rules (from the ADRs / A.7)
src/reconciler, src/router, src/ir, src/transport: zero
DOM/platform imports. They must transpile to ES5 and run identically on
V8, QuickJS-ng and Hermes — enforced by the parity lanes.
- No
TextEncoder/TextDecoder/SharedArrayBuffer/class fields in embedded
code → binary encoding lives in src/transport/ with a native encoder in
targets.
effect() runs synchronously on registration: render pass ≠ update pass;
the flush belongs to the reconciler/backend, never to the effect.
remove-child = detach (keeps node/state); delete-node = destroy
(frees resources and auxiliary indexes).
- The reconciler's tree is the single source of truth for child order.
- Per-frame logging is forbidden in benchmarks.
Build your app
@elurjs/universal ships lightweight Core + Web + SDUI out of the box. Native
targets live in separate lockstep packages (Capacitor-style, ADR-0223) with
automatic OS/CPU prebuilt host binaries (@elurjs/windows-x64,
@elurjs/linux-x64) so consumers do not need MSVC or a GTK4 C++ toolchain to
develop and run:
The elur CLI runs directly on Node.js 20+ (or Bun) with no extra runtime
required, and works with any package manager (npm, bun, pnpm, yarn) —
elur add detects yours from the lockfile:
npx @elurjs/universal@latest create my-app # lightweight Web + Core scaffold
cd my-app && npm install
npm run dev # Web dev server + SSE reload
# Add only the native platforms you need:
npx elur add windows # @elurjs/windows (+ prebuilt .exe on win32-x64)
npx elur add linux # @elurjs/linux (+ prebuilt host on linux-x64)
npx elur add android # @elurjs/android (+ scaffolds targets/android/)
elur build --target web --app src/entry.ts
elur build --target windows --app src/entry.ts # dist/windows/elur-windows.exe + bundle
elur build --target linux --app src/entry.ts # dist/linux/elur-linux + bundle
elur build --target android --app src/entry.ts [--apk|--aab]
elur dev --target <web|android|linux|windows> # watch → rebuild → relaunch/push
elur doctor # checks enabled platforms
--app is the composition root: mountApp() resolves to
mount.<platform>.ts at build time (ADR-0101). Native plugins:
npm install @elurjs/x + import { createX } — the import auto-declares the
module (ADR-0099/0100); elur build generates ElurModuleRegistrar.kt,
the permission merge and the sourceSets (ADR-0102/0103).
License
Code (framework, hosts, CLI, packages and TCK): Apache-2.0 —
see LICENSE, NOTICE and THIRD_PARTY_NOTICES.md (ADR-0173).
The specification (Master Architecture Document) is published under
CC-BY-4.0, with the owner's OWFa 1.0 for host implementers —
see LICENSE-SPEC.md and OWFA-1.0-Elur-Universal.md.
"Elur" is not licensed: trademark usage in TRADEMARKS.md — claiming to
be "Elur compatible" requires a public green run-tck report.
Contributions: CONTRIBUTING.md (DCO 1.1 — git commit -s).