Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra

Architecture

Elyra is a Laravel-shaped desktop framework: the same ergonomic building blocks — an application container, service providers, middleware, a typed client — but compiled to a single native binary with no runtime interpreter.

The Laravel map

Laravel Elyra
Application + container App + Container (ctx.get::<T>())
ServiceProvider Provider (register / boot)
routes/web.php commands![...]
Controller action #[command] async fn
Middleware pipeline in CommandRegistry::dispatch
Broadcasting + Echo EventBus + channel() store
Facades generated api.*
HTTP client (Http::) Http
Sanctum + the API, from another app Backend, Auth, working offline with an outbox
Eloquent #[derive(Model)]
Artisan Ratatosk (rata)
Blade / Livewire Svelte 5 (runes)

Processes and threads

  • The event loop + webview live on the main thread (required on macOS).
  • A separate multi-thread tokio runtime owns all IPC work.
  • The custom-protocol handler is asynchronous: each request is spawned onto tokio and responded to from there, so the UI thread never blocks on a command or an event long-poll.
┌─────────────── main thread ───────────────┐     ┌──── tokio runtime ────┐
│ tao event loop  ──  wry webview (WebKit)   │     │  command dispatch     │
│   └ elyra:// custom protocol handler ──────┼────▶│  middleware pipeline  │
│                                            │◀────┼─  EventBus flushes     │
└────────────────────────────────────────────┘     └───────────────────────┘

Request lifecycle (a command)

  1. Frontend calls invoke("name", ...args) (or api.name(...)).
  2. @elyra/runtime MessagePack-encodes the args and fetches elyra://localhost/__cmd/name.
  3. The protocol handler spawns the request on tokio.
  4. CommandRegistry::dispatch runs the middleware pipeline, then the command.
  5. #[command] decodes the arg tuple, runs your async fn, and MessagePack-encodes the result (or maps a Result::Err to an error response).
  6. The bytes are returned; the runtime decodes them into the resolved value.

See wire format for the exact bytes.

The IPC boundary

The webview is untrusted: anything executing in the page — your code, a dependency, injected content — can reach /__*. Three mechanisms gate it, all enforced in shell::guard before dispatch:

  1. a random per-run token injected into the webview before any page script runs,
  2. origin isolation — no CORS headers at all in a production build,
  3. a capability model where destructive routes are opt-in,

plus structural limits on request bodies (size + nesting depth). See security.

Inside shell

The shell is split so the access-control decision is readable on its own — a handler is reached only after guard::check passed the request, and never re-decides who may call it.

Module Concern
shell::guard Token, capabilities, rate limits, body limits, CORS, CSP
shell::protocol The MessagePack success/error shapes and the x-elyra-* headers
shell::router Path → handler dispatch, the event long-poll, command dispatch
shell::facades /__store, /__cache, /__storage, /__queue, /__window, /__sys, /__sidecar, /__autostart
shell::update The updater routes and the elyra:update phase stream
shell::assets The embedded frontend: ETag, conditional requests, byte ranges
shell::webview The tao event loop, window construction, the app menu

State ownership

Rust owns the state; the frontend is a projection. Instead of one IPC round per change, the EventBus accumulates events and flushes them as a single batch to a long-poll the frontend holds open — binary, no base64.

Events: one queue per window

EventBus keeps a queue per connected webview, keyed on a client id the runtime sends. An emit fans out to every window; a single shared queue meant whichever window polled first consumed the batch and the others silently lost it. Events emitted before any window connects are held for the first poll.

Crates

framework/   elyra          App, Container/Ctx, Command, EventBus, shell (tao+wry),
                            security policy, windows, tray, updater, codegen,
                            Log/Config/Secrets/testing
macros/      elyra-macros   #[command], #[derive(Model)]
database/    elyra-db       Database (sqlx Any), schema builder, migrations, models
                            — no GUI deps, so the CLI can use it without tao/wry
ai/          elyra-ai       the AI SDK (agents, tools, embeddings, …)
substrate/   substrate-core the shared Cache/Storage/Queue contracts
ratatosk/    ratatosk       the `rata` CLI
runtime/     @elyra/runtime invoke(), channel(), the generated api.*

elyra-db is deliberately GUI-free so rata migrate (and any headless tool) can drive the database without pulling in the windowing stack.

Without a window

The window is the gui feature, on by default (RFC 0054). Off, elyra builds with no tao, no wry and, on Linux, no GTK or WebKitGTK: for a command-line twin of an app, a server-side worker, or a test job on a machine without a desktop.

elyra = { …, default-features = false, features = ["database", "updater"] }

What stays is what an app is made of: App's configuration (the window, tray and menu methods too, so the app and its twin can share one builder), the container and Ctx, commands and their middleware, the event bus, codegen, migrations and seeders, --mcp, the IPC layer and TestShell, exit hooks, and every feature that needs no window (database, http, backend, secrets, ai, updater, sidecar, autostart, microphone). tray, system and shortcuts need the window and turn gui on.

App::run runs the headless modes as always (ELYRA_CODEGEN_OUT, ELYRA_MIGRATE, ELYRA_SEED, --mcp, …) and otherwise says the build has no window. A twin prepares the app instead, and calls its commands by name through the same middleware, validation and abilities the page's calls take:

#[tokio::main]
async fn main() -> std::process::ExitCode {
    let _exit = elyra::exit::guard();
    let app = App::new().commands(commands![export_csv]).prepare();
    match app.call_json("export_csv", ("customers",)).await {
        Ok(rows) => { println!("{rows}"); std::process::ExitCode::SUCCESS }
        Err(e) => { eprintln!("{e}"); std::process::ExitCode::FAILURE }
    }
}

framework/examples/cli.rs is a complete one; CI builds and runs it on a machine without the webview's packages.

Performance principles

  1. Binary IPC — MessagePack over the custom protocol via fetch(). No JSON in the hot path; streaming and ArrayBuffer for free.
  2. Rust owns state — diffs pushed via the EventBus, batched per flush.
  3. Assets from memory — rust-embed + protocol handler, no disk I/O at start.
  4. Never block the UI thread — every command runs on tokio.