Elyra Framework documentation
A Rust + Svelte 5 framework for hyper-responsive desktop apps — Laravel's
ergonomics (container, providers, a typed bridge), compiled and binary, with no
runtime overhead. The CLI is Ratatosk (rata).
Also hosted at elyracode.com/framework.
Start here
- Getting started — install, scaffold, run.
- Architecture — the big picture and the Laravel map.
- Configuration (
elyra.toml) — the project descriptor,Configat runtime, and the app's configuration checked at start (App::problems()).
Backend (Rust)
- Validation — Laravel-style input validation for commands (
Validator). - Translations (i18n) —
lang/*.json,Translatorin Rust,$t/$tcin Svelte. - Commands —
#[command],Ctx,Resultcommands, and calling one from Rust (name::run). - Container & providers — DI + wiring.
- Middleware — the dispatch pipeline.
- Events —
EventBus, batched Rust→frontend push. - Windows — window config, multi-window, control, persistence, file drop.
- Opening documents — the app's file types, opened from Finder, Explorer or the command line.
- Application menu — native app menu from
App::menu(macOS). - About dialog — built-in About window from
App::about. - Printing — the window or a part of it on paper or as a PDF, in the light theme,
@elyra/uiin its print form, and ⌘P. - System integration — dialogs, shell-open, clipboard, notifications, and the files the user chose (
ChosenFile) (systemfeature). - Global shortcuts — OS-level keyboard shortcuts (
shortcutsfeature). - Autostart — launch at login (
autostartfeature). - The microphone — record in the shell, as a
ChosenFile, and turn it into text through the server (microphonefeature). - Sidecar processes — spawn + stream child processes (
sidecarfeature). - When the app ends — exit hooks: end what the app started, however it ends.
- Single-instance & deep-linking — one instance + custom URL schemes.
- System tray — tray icon + menu (
trayfeature). - Diagnostics — one plain-text file the user can save and send: versions, system, connection, outbox, the page's errors and the log, without secrets (
App::diagnostics()). - Auto-updater — verified updates from a manifest or the backend: ed25519, or a Developer ID on macOS (
updaterfeature).
Data (Rust)
- Settings store — persistent key-value store (
store/Store). - Cache — in-process TTL cache facade (
cache/Cache), Askr-compatible surface. - Rate limiting — cache-backed
RateLimiter(Laravel-style). - Storage — jailed filesystem disk facade (
storage/Storage). - Queue — in-process background job facade (
queue/Queue). - Scheduler — recurring background jobs (
Scheduler). - Shared substrate — the
substrate-corecontract shared with Askr. - Database — SQLite / MySQL / Postgres via one
Database. - AI SDK — agents, tools, code execution that calls your tools, structured output, images, embeddings (
aifeature). - Migrations —
rata migrate, batches, rollback. - Models —
#[derive(Model)]Active Record + query builder + relations. - Resources —
rata make:resource: commands, screens, model and migration for a table. - Live queries —
#[command(live)]+live.*: results that update themselves, across windows. - A Laravel backend — sign in with Sanctum, call the API, Laravel's 422s in your forms, its broadcasting into the open windows, working offline with an outbox, its notifications in the OS, files up and down with progress, what each user may do (abilities),
make:resource --backendandmake:notifications(backendfeature). - HTTP client —
Http, Laravel's facade: timeouts, retries, HTTPS-only, multipart uploads and downloads streamed to disk, and a fake for tests (httpfeature). - AI agents (MCP) — the app as an MCP server: chosen commands as tools, live ones as resources.
- The app's assistant — an assistant inside the app over its own commands, held to the signed-in user's abilities, asking before what can't be undone, and in code mode a loop over many records (
aifeature).
Frontend & bridge
- Frontend runtime —
@elyra/runtime:invoke,channel,api.*. - UI components — dialogs, toasts, ⌘K command palette, context menu.
@elyra/ui— Svelte 5 components that know the app: buttons, menus, forms with Laravel's errors, selects, dialogs; and the design tokens, with motion and more contrast.@elyra/charts— charts on ECharts, tree-shaken: WireCharts' data, the design tokens, live queries, and a table the screen reader and the assistant read.- Every chart — all of WireCharts' 72 charts, each with its example and props.
- Codegen — specta → TypeScript types + typed
api.*, with each command's docs as JSDoc. - Logging — the
Logfacade, levels, file rotation - Testing —
TestApp, event assertions,TestShell, a command's own function (name::run), andApp::problems() - Secrets — OS keychain storage
- Releasing — version bump, tag, crates.io order
- Security — the IPC surface, capabilities, CSP, secrets
- The inspector — a developer's drawer in debug builds: take an ability away and see what changes, the window as the assistant sees it, the live queries and the calls
- Wire format — the binary IPC contract.
Tooling
- Ratatosk CLI —
new,dev,codegen,build,bundle,migrate,make:*. - Coding agents —
rata ai:install(guidelines, skills) andrata mcp devfor agents working on the app, which also sees and drives the running debug build; the Laravel half's Boost package. - Roadmap — milestones and what's deferred.
- Changelog — released versions and changes.
Repository layout
framework/ elyra — App, Container/Ctx, Command, events, shell (tao+wry)
macros/ elyra-macros — #[command] and #[derive(Model)]
database/ elyra-db — Database, migrations, models (GUI-free)
ai/ elyra-ai — agents, tools, structured output over Anthropic + OpenAI
substrate/ substrate-core — the Cache / Storage / Queue contracts
ratatosk/ ratatosk — the `rata` CLI
runtime/ @elyra/runtime — invoke(), channel(), generated api.*
ui/ @elyra/ui — Svelte 5 components and the design tokens
charts/ @elyra/charts — charts on ECharts
laravel/ elyracode/elyra-backend — the Laravel half: token routes, outbox, abilities, Boost
example/ elyra-example — the demo app / DX benchmark
Cargo features (on the elyra crate)
| Feature | Enables |
|---|---|
gui (default) |
the window: tao, wry and the system webview. Off (default-features = false) for an app without a window; tray, system and shortcuts turn it on |
database |
Database, Model, migrations, App::database |
ai |
elyra::ai — agents, tools, structured output, images, embeddings |
tray |
App::tray, the system tray |
updater |
the updater (ed25519, Developer ID; from the backend with backend) |
system |
native dialogs, shell-open, clipboard, notifications, paths |
shortcuts |
OS-level global keyboard shortcuts |
autostart |
launching the app at login |
secrets |
Secrets — tokens in the OS keychain |
http |
Http — an HTTP client, Laravel's facade |
backend |
Backend, Auth — a Laravel API, Sanctum sign-in (enables http, secrets) |
microphone |
App::microphone — record in the shell, transcribe through the server |
sidecar |
sidecar processes the app starts and manages |
Depend on a tagged release, as Getting started shows: Elyra isn't published to crates.io or npm.