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
Events — the EventBus

Events — the EventBus

The EventBus is Elyra's Broadcasting: Rust pushes events to the frontend, batched per flush. Rust owns the state; the frontend subscribes to changes instead of polling.

Emitting (Rust)

The bus is created by App and bound in the container, so any command, provider, or task can resolve it:

#[command]
async fn tick(ctx: Ctx) {
    ctx.get::<EventBus>().emit("tick", &42u32).ok();
}

emit<T: Serialize>(channel, &value) is non-blocking and callable from any thread. To emit from main or a background thread, grab a clone before running:

let app = App::new().commands(commands![..]);
let bus = app.events();                       // a clone of the bus
std::thread::spawn(move || { bus.emit("tick", &1u32).ok(); });
app.run()?;

Subscribing (frontend)

channel(name) returns a Svelte-readable store, multiplexed over a single connection:

<script>
  import { channel } from "@elyra/runtime";
  const ticks = channel("tick");   // usable as $ticks
</script>
<p>{$ticks}</p>

Or subscribe manually:

const unsubscribe = channel<number>("tick").subscribe((n) => console.log(n));

Transport & batching

Events travel over a long-poll of elyra://localhost/__events: the shell holds the request open until events are ready, responds with a MessagePack batch ([[channel, value], ...]), and the frontend immediately reconnects. Binary, no base64, one connection for all channels. See wire format.

Emits accumulate and flush together, so N state changes cost one IPC round, not N. By default there's no artificial delay — the natural response→reconnect gap coalesces bursts. For sustained, time-spaced streams you can force frame-level coalescing:

App::new().batch_window(std::time::Duration::from_millis(8));

After ~20s idle the poll returns an empty keep-alive batch and the connection refreshes.

Fan-out: one queue per window

Every webview identifies itself with a random client id (x-elyra-client-id, added by @elyra/runtime) and gets its own queue. An emit is fanned out to all connected windows, so a multi-window app can't lose events — previously one shared queue meant whichever window polled first took the batch and the others never saw it.

Events emitted before any window has connected are held and delivered to the first poll (nothing emitted during startup is lost). A window that opens later does not get a replay of what it missed — push current state from a command instead when a new window needs to catch up.

Domain events (Dispatcher)

The EventBus pushes values out to the webview. For events inside the Rust side — one part announces that something happened, others react without the announcer knowing who they are — use the Dispatcher: Laravel's Event::dispatch and listeners.

#[derive(Clone)]
struct OrderShipped { order_id: i64 }

App::new().listen(|e: OrderShipped, ctx: Ctx| async move {
    ctx.get::<dyn Mailer>().send_shipped(e.order_id).await
});

#[command]
async fn ship(ctx: Ctx, order_id: i64) -> Result<()> {
    // … mark it shipped …
    ctx.dispatch(OrderShipped { order_id }).await
}

Listeners can also be registered from a provider — Laravel's EventServiceProvider — in register or boot:

impl Provider for AuditProvider {
    fn boot(&self, ctx: &Ctx) {
        ctx.get::<Dispatcher>().listen(|e: OrderShipped, ctx: Ctx| async move {
            ctx.get::<AuditLog>().record("shipped", e.order_id)
        });
    }
}
  • An event is any Clone + Send + Sync + 'static type; each listener gets its own copy.
  • Listeners run in registration order, one at a time: App::listen calls first, then providers in the order they were added.
  • The first error stops the chain and is returned from dispatch, so the command that dispatched fails with the listener's message. An event nobody listens for is not an error.
  • ctx.dispatch_background(event) returns immediately and runs the chain on its own task; a listener error is logged under elyra::events instead.
  • A listener may dispatch further events.

Broadcasting to the frontend

App::broadcast forwards every dispatched event to the EventBus and declares its channel type for codegen — Laravel's ShouldBroadcast, typed end to end:

#[derive(Clone, serde::Serialize, specta::Type)]
struct OrderShipped { order_id: i64 }

App::new().broadcast::<OrderShipped>("orders:shipped");
<script>
  import { channel } from "./bindings";            // the generated, typed helper
  const shipped = channel("orders:shipped");        // typed as OrderShipped
</script>
{#if $shipped}<p>Order {$shipped.order_id} shipped</p>{/if}

The Rust side dispatches a domain event and never mentions the webview; the frontend gets a typed channel.

Elyra dispatches some of its own. With a Laravel backend: BackendEvent for each broadcast the app follows, OutboxSent / OutboxFailed when a write saved offline is sent or refused, and NotificationReceived / NotificationClicked for Laravel's notifications. With MCP, AgentCalled for every tool call.

Related