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
Frontend runtime — `@elyra/runtime`

Frontend runtime — @elyra/runtime

The npm package the Svelte app imports. It speaks the binary wire format so you don't have to.

import { invoke, channel, CommandError } from "@elyra/runtime";

invoke(command, ...args)

Call a Rust #[command] by name. Arguments are MessagePack-encoded; the result is decoded into the resolved type.

const greeting = await invoke<string>("greet", "world");
const sum = await invoke<number>("add", 2, 3);

If the command returns an error (a Result::Err, or a middleware/decode failure), the promise rejects with a CommandError carrying the command name and message.

try {
  await invoke("checked_div", 1, 0);
} catch (e) {
  if (e instanceof CommandError) console.error(e.message);
}

channel(name)

Subscribe to a server-pushed event channel. The return value is a Svelte-readable store, so $channel(...) works in a component; it's also usable standalone.

<script>
  import { channel } from "@elyra/runtime";
  const cursor = channel("cursor");
</script>
<pre>{JSON.stringify($cursor)}</pre>
const unsub = channel<number>("tick").subscribe((v) => { /* ... */ });
// later: unsub();

All channels are multiplexed over one long-poll connection with automatic reconnect/backoff.

listen(channel, handler)

Listen to a Laravel private channel while the window shows what it's about (RFC 0023). The channel must be one Backend::listen(..) lists; see A Laravel backend.

import { listen, listening } from "@elyra/runtime";

const stop = listen(`task.${id}`, (data, e) => { /* e.event, e.channel */ });
const stopOne = listen(`task.${id}`, "RunOutput", (data) => { /* … */ });
// later: stop(); stopOne();
  • The handler gets (data, event), as onBackendEvent's does: event is { channel, event, data }.
  • listening(channel) is a Svelte store, { channel, joined, last }: whether the server took the subscription, and the last event heard.
  • Every listen and listening of a channel in the app shares one subscription. The last one to stop unsubscribes, 300 ms later, so a quick unmount and mount doesn't subscribe again; a closed window's listens are dropped.

The generated api.* facade

After rata codegen you get bindings.ts with a fully typed facade — prefer it over stringly-typed invoke:

import { api } from "./bindings";
const todos = await api.list_todos();        // Promise<Todo[]>
const todo  = await api.add_todo("milk");    // Promise<Todo>

The facade delegates to invoke under the hood, so error handling is identical.

Live queries — live.*

A #[command(live)] (see commands) gets a store in the generated bindings next to its api.* call. Rust re-runs the command whenever the data it read changes — written in this window, another window, or a background job — and the store updates:

<script>
  import { live } from "./bindings";
  let query = $state({ search: null, sort: "name", direction: "asc", page: 1, per_page: 25 });
  const customers = $derived(live.customers_index(query));
</script>

{#if $customers.loading}
  <p>Loading…</p>
{:else if $customers.error && !$customers.value}
  <p>{$customers.error.message}</p>
{:else}
  {#each $customers.value?.data ?? [] as c (c.id)}<p>{c.name}</p>{/each}
{/if}

The store's value is a Live<T>:

Field
value the latest result (undefined until the first one)
error the latest re-run's failure — a CommandError, or a ValidationError — with the previous value kept
loading true until the first result

The subscription opens with the store's first listener and closes with its last, so a component's $store is the whole lifecycle. With $derived, a changed query opens a new subscription and closes the old one. Without codegen, live<T>(command, ...args) from @elyra/runtime does the same, untyped.

Origin, CORS, and the IPC token

Everything is same-origin under elyra://localhost (the app is served there, IPC and events too), so fetch needs no CORS handling in production — and the shell sends no Access-Control-Allow-* headers there, so a foreign origin can't read an IPC response. Under rata dev the page loads from Vite's http://localhost:5173; only then does the shell add CORS, and only for that exact origin (from ELYRA_DEV_URL).

On top of the origin rule, every /__* request must carry this run's IPC token. The shell generates a random token per launch and injects it into the webview before any page script runs (globalThis.__ELYRA__.token); @elyra/runtime attaches it as x-elyra-token automatically. Requests without it get 403 and the runtime throws ForbiddenError:

import { invoke, ForbiddenError } from "@elyra/runtime";

try {
  await invoke("greet", "World");
} catch (e) {
  if (e instanceof ForbiddenError) {
    // Refused at the security gate. `e.detail` is the shell's own explanation:
    // a bad token, an ungranted capability, or a command's `can = "…"` ability.
    console.error(e.detail);
  }
}

ForbiddenError covers every refusal at the gate, not only the token — an ungranted capability and an ungranted command ability arrive the same way. e.detail names which one, so read it before assuming the token is at fault.

If you talk to the bridge without @elyra/runtime (a raw fetch), send both x-elyra-token and x-elyra-client-id yourself.

Routing

A hash-based router (#/customers/12) — it needs nothing from the shell, and reload / Back / Forward behave as in a browser. rata new scaffolds it: a route table in src/routes.js, pages in src/pages/, and a Router.svelte that renders the current one.

// src/routes.js
export const routes = {
  "/": () => import("./pages/Home.svelte"),
  "/customers": () => import("./pages/Customers.svelte"),
  "/customers/new": () => import("./pages/CustomerForm.svelte"),
  "/customers/:id": () => import("./pages/Customer.svelte"),
  "/*": () => import("./pages/NotFound.svelte"),
};

Each page is loaded on demand (its own chunk) and receives params and query:

<!-- pages/Customer.svelte, for /customers/12?tab=notes -->
<script>
  let { params, query } = $props();   // { id: "12" }, { tab: "notes" }
</script>
  • Precedence: the most specific pattern wins, whatever the table's order — static segments beat :params, and a * wildcard only matches when nothing exact does. So /customers/new beats /customers/:id.
  • Links: <a href={href("/customers/12", { tab: "notes" })}> builds the #… href; $route.path / $route.query give the current location (e.g. to mark the active nav item).
  • In code: navigate("/customers"); navigate("/login", { replace: true }) for redirects, so Back skips them.
  • Deep links: deepLinkPath("myapp://customers/12") → /customers/12, so a URL from the elyra:deep-link channel can be handed to navigate.
  • matchRoute and resolveRoute are exported for other renderers — the router itself has no Svelte dependency.

The runtime and the shell, one release

VERSION is the runtime's release. In a debug build the shell tells the page its own (__ELYRA__.version), and the runtime says in the console when they differ, as when app/package.json was moved and Cargo.toml wasn't:

@elyra/runtime is 0.57.0, the app's elyra crate 0.58.0: the page and the shell may not agree. Run `rata upgrade 0.58.0`, then `rata check`.

rata check finds the same before the app runs (elyra-versions-differ). A release build says nothing of its version to the page.

Related