Laravel ergonomics,
compiled to a binary
.
A Rust + Svelte 5 framework for hyper-responsive desktop apps. A container, providers, middleware and a typed bridge — Laravel's feel — but native, binary, and without runtime overhead. The CLI is Ratatosk (rata).
One command,
a running app.
With Rust 1.94+ and Node installed, rata new scaffolds a Rust bin crate and a Svelte 5 frontend wired together over the typed bridge. Elyra is distributed as a tagged GitHub release rather than through crates.io or npm, so a new project depends on the tag — and rata new --elyra <path> points it at a local checkout when you are working on the framework itself.
# Install the Ratatosk CLI (from the repo — not yet on crates.io) $ cargo install --git https://github.com/kwhorne/elyra-framework ratatosk # Scaffold and run a desktop app $ rata new myapp $ cd myapp && rata dev ✓ Rust core + Svelte 5 UI, hot-reloading # Generate the typed TS bridge from your commands $ rata codegen
A real framework,
not a wrapper.
A dependency-injection container, a middleware pipeline, an event bus, a typed IPC bridge, an Active Record ORM, plus windows, tray and an updater — all in the Rust core, with a Svelte 5 crown.
Binary IPC
MessagePack over an elyra://localhost custom protocol — no JSON in the hot path, no per-call serialization tax.
Commands + middleware
#[command] async fn is dispatched through a middleware pipeline, resolved from a container with providers — the Laravel request lifecycle, in Rust. A command can require an ability, #[command(can = "...")], and a refusal names which gate said no; #[command] also rejects an attribute it cannot parse rather than ignoring it. Since 0.37.0 rata codegen writes a command's doc comment as JSDoc above its api.* entry in bindings.ts, with its can = "…" and, for a live command, its live.* store; name::run(ctx, ..) is the command called from Rust, with its own signature, doc comment and attributes, and not the pipeline: no middleware, ability check, window scope or rate limit. And App::problems() checks the configuration at once: everything that would fail or do nothing — stay_in_tray() without a tray, listen(..) without broadcasting, an updater that couldn't verify an update, a middleware name that doesn't resolve — as one list, which App::run() returns as Error::Config before anything starts.
Live queries
A #[command(live)] is a command the frontend subscribes to. Elyra records the tables it reads, re-runs it when a write changes one, in that window, another one or a background job (a write through the model layer: since 0.51.0 App::capture_changes() has the database itself say which tables changed, so a raw UPDATE, a migration, a sidecar or another process on the same file or server re-runs the live lists too; off unless called, it adds triggers and _elyra_changes; until 0.56.0 a write made after the triggers were installed but before its first look was taken for the baseline, not a change), and pushes the new result to every window watching, coalesced over one frame, with nothing pushed when the result is unchanged. On the frontend it is one store, live.customers_index(query), typed by codegen, whose value is { value, error, loading }, and a failed re-run keeps the last value. A re-run that writes fails, a window holds at most 64 subscriptions, and db.touch(key) or ctx.invalidate(key) cover what is not a table, such as settings:theme. Since 0.9.0. Since 0.30.0 a write re-runs what showed that record: over the backend, a GET of /api/customers/42 in a live command depends on that record, and a list on the resource's lists, so a write to /api/customers/40, or Laravel's CustomerUpdated naming customer 40, re-runs the lists and the views of customer 40, not every view of customers. Measured first: with a list and ten detail views open, every write re-ran all eleven, and over the Laravel backend each was a request to the server; now an edit is one request instead of eleven. An event that names no record still re-runs everything. Tested against Reverb in the Laravel CI job.
Every app is an MCP server
App::mcp(Mcp::new().allow_abilities([..])) chooses which commands an AI agent may call: those whose can ability it grants, in a grant separate from the frontend's, and a command without an ability never is. Nothing is exposed until the app calls it. The commands become tools for Claude, Cursor or VS Code, the doc comment is the description, and JSON Schemas (2020-12) for the arguments and the result are built from the types after serde's renames, tagging and flattening. A call runs through the same middleware and validation as one from the frontend, and a validation bag, a command error, a panic or a type mismatch comes back as a tool error the model can act on. The client launches myapp --mcp: when the app is open the agent works inside it, with the same database, live queries and events, and the windows update as it goes; when it is not, the app serves MCP without a window. The open app answers on a private 0600 Unix socket, after a challenge-response on a per-install token that never crosses the wire, so a process that takes the socket path first learns nothing and the shim runs headless instead. rata mcp install prints the config for Claude, Cursor or VS Code and edits nothing. Since 0.10.0, with one small break: CommandRequest has a new field, origin, so code that builds one by hand sets origin: Origin::Frontend. Since 0.64.0 a prompt speaks the user's language: its title, description, text and arguments' descriptions come from the app's translations where they have them (prompts.<name>.title and so on), in the locale the app is in, to an MCP client and in the assistant's panel.
The agent asks before it deletes, and can be watched
A tool whose ability Mcp::confirm names runs only once the user says yes, in the client: the question names the client and the tool and gives the first line of the command's doc comment and the arguments. The state of the question is signed with a key that lives only in the process, bound to the tool, the arguments and the client, valid for five minutes, and it runs the call at most once, so an accepted delete cannot be replayed. A client that cannot be asked gets a tool error and the tool does not run, and so does a decline or no answer within ten minutes. Tools are rate limited per tool, across connections, at 60 calls a minute unless Mcp::rate_limit says otherwise, and a throttled call is refused before the user is asked to confirm it. Every call dispatches AgentCalled { tool, client, ok, millis } for an audit log, without the arguments, which may be personal data, and the elyra:mcp channel tells every window, so onAgent(handler) in @elyra/runtime can drive a Claude is adding a customer indicator.
Live commands, as things an agent can watch
A granted #[command(live)] that can run with no arguments given is an MCP resource, app://<command>: every argument an Option, or a struct whose fields all are, and not one that needs confirmation. resources/list lists them, resources/read runs one as the agent, and a subscription gets notifications/resources/updated whenever the live registry would push a new result to a window: coalesced, only when it changed, only for what it read. Through the shim one agent sees another's writes, and the window's, because they share the running app's live registry; two headless processes do not. Since 0.10.0. And since 0.11.0 a live command that takes arguments is a resource template the agent fills in: customers_show(id) becomes app://customers_show/{id}, and customers_index(query) app://customers_index{?direction,page,per_page,search,sort}. The agent reads app://customers_show/12 and subscribes to it, and is told only when what its arguments select changes. A value that does not convert, a parameter the template does not name or a repeated one is answered Invalid arguments, with what is wrong per variable, and templates add no reach: the agent could already call each command as a tool with any arguments; a template lets it watch the result.
Coding agents know the framework
Since 0.16.0 an agent working on an Elyra app knows the framework instead of guessing at Tauri's or Laravel's API, the way Laravel Boost does it for Laravel. rata ai:install writes the framework's guidelines as a block in AGENTS.md, and in CLAUDE.md unless it imports AGENTS.md: commands and abilities, middleware, the container, models and migrations, live queries, rata codegen after a type changes, which generator to use, and the checks. Six skills in .agents/skills and .claude/skills, loaded only when they apply, cover commands, models and migrations, resources, live queries and the Laravel backend, and since 0.21.0 @elyra/ui: which component to use and what they already handle. Only the block and rata's own skills are rewritten, a skill without rata's marker is yours and is left alone, and rata ai:update refreshes them after upgrading rata. Since 0.46.2 the guidelines and skills catch up with 0.38–0.46: name::run, App::problems(), the app's identity and icons, capabilities and the microphone; elyra-laravel-backend a server chosen at sign-in, several servers, speech to text and every Route::elyra…(); elyra-ui TreeView, NotificationBell, AccountSwitcher and Microphone. Run rata ai:update in an app to get them.
An MCP server for the agent writing the app
rata mcp dev, embedded in rata and added to .mcp.json by ai:install next to the servers already there, tells the agent working on the code what the app is: every command with its abilities and middleware, the models, the database schema, the migrations applied or pending, the newest error in the app's log and the entries before it, and the guides for this version, searched. Every tool only reads: nothing is migrated, run or written, a SQLite database is opened read-only, and the code is read with syn, so it needs no build. Elyra Workspace gives the server to every agent once you allow it, and rata mcp install --client workspace adds the app's own server there too. Since 0.16.0. Since 0.37.0 the agent sees the debug build it's working on, and clicks in it: rata mcp dev has app_windows, window_snapshot (the window as an accessibility tree in text, with refs, the route, and the page's console errors), window_screenshot, window_act (click, type, press, select, scroll, navigate, then the page after) and app_calls, answered by the running debug build through a 0600 socket in the app's folder with the MCP endpoint's challenge-response. Debug builds only: a release has no endpoint and no script in the page. Since 0.38.0 window_snapshot and window_act end with showing, the window's live queries with their arguments, and the whole walk is checked on Linux in CI under Xvfb.
The Laravel half, kept as the desktop expects
elyracode/elyra-backend, a Composer package in the repository's laravel folder, gives the Laravel app the routes and middleware the desktop relies on, Route::elyraAuth() for the Sanctum token routes, Route::elyraNotifications() and the Idempotent middleware, and gives its agents the same knowledge from the other side: Laravel Boost guidelines and an elyra-desktop-backend skill about the 422s per field, the status codes, Idempotency-Key, If-Unmodified-Since, broadcasting and notifications, and that changing an API resource means changing the desktop's types and running rata codegen. A project with both halves gives an agent both servers, Boost's for the API and elyra-framework for the desktop. Since 0.18.0 it has Route::elyraAbilities() (spatie's permissions, or the Gate abilities in config('elyra.abilities')) and AbilitiesChanged, broadcast when spatie's roles or permissions change. Since 0.39.1 it answers the desktop's settings and updates too: Route::elyraBroadcasting() gives the default Reverb or Pusher connection's key, host, port and scheme, as Backend::broadcasting_from(..) reads them, and Route::elyraUpdates() with php artisan elyra:release puts a release on a private disk with its size and SHA-256 and offers the newest newer one for the platform asked, at a path on the server's own origin, to a signed-in user. Since 0.46.0 Route::elyraTranscription() turns the desktop's recordings into text with the user's token, the key kept on the server; since 0.46.4 it streams the recording on from the upload's temporary file instead of reading it into PHP's memory. Since 0.46.3 its Laravel Boost skill and guidelines cover the server's side of 0.34–0.46: the user route a desktop that adopts a token reads, a revoke route for that token, a 401 that ends only one workspace's token, channels named from the user, several servers, and the assistant's code mode behind ELYRA_ASSISTANT_CODE_EXECUTION; php artisan boost:install in the Laravel app picks them up. Since 0.50.0 php artisan elyra:contract --as=<email> describes the Laravel API (the routes under /api, each FormRequest's rules, the abilities, and each GET's answer sampled as that user, never a value), and rata check --backend compares the desktop app with it: a route a command calls that isn't there, a field its type needs that isn't sent, comes as null or has another type, an input field the rules require or drop (in 0.50.0 rules that ask for $this->user() couldn't be made, and an app crate that's a workspace member had no calls found, so the check found nothing there; update elyracode/elyra-backend to v0.50.1); and until 0.50.2 it took a field's items' rules (tags.*) for the field's own, so tags => 'required|array' beside them was never said to be required, and a file edited in its own app wasn't checked, so it may find more now. Not published yet. Since 0.16.0.
A Laravel backend
Since 0.12.0 an Elyra app can be the desktop half of a product whose web half is Laravel, served by Askr or any other server, calling the same API as the web. Http is Laravel's facade in Rust, over reqwest: queries, JSON bodies, bearer tokens, a 30 s timeout by default, retries after a failed connection or a 5xx for idempotent methods, HTTPS only except to loopback, and a redirect to another host does not carry Authorization. Backend maps Laravel's answers: a 422 lands in a form per field, as local validation does, a 401 or 419 forgets the token, and 403, 404, 429, 5xx and no answer at all each get their own kind, so offline is an error the UI can tell apart. Page<T> reads both of Laravel's paginator shapes, and CI runs against a real Laravel app.
Signed in, and the page never sees the token
Auth signs in with Laravel's documented Sanctum token route, reads the user from /api/user, and names the device for the machine and the app, so the user recognizes it on the web. The token lives in the OS keychain only, is put back to use when the app starts, is forgotten on a 401 and revoked on sign-out, as far as the server can be reached. With no keychain, sign-in fails and the token the server just issued is revoked: there is no plain-text fallback. The frontend gets auth.signIn, auth.signOut and auth.state from @elyra/runtime, behind the new Capability::Auth, granted by default, and a wrong password throws the ValidationError per field. Tests use MemoryTokens and never touch the keychain. Since 0.12.0. Since 0.18.0 the app also knows what the signed-in user may do, by Laravel: Backend::abilities() reads the user's list from GET /api/abilities after sign-in, and a #[command(can = "..")] runs from the frontend only when the app grants the ability and the user has it; otherwise it is refused with kind denied, as Laravel's 403, without a request and before it could be queued offline. The list holds offline, and is read again on focus, when the connection comes back, and when Laravel broadcasts AbilitiesChanged; $can(..) hides in the frontend what the user can't do. Since 0.34.0 the server can be chosen at sign-in: Backend::chosen_at_sign_in() is a backend with no server until the user signs in, and the server is remembered in the keychain beside the token, so the user stays signed in to it across restarts; signing out, or a 401, forgets it. Auth::sign_in_with_token adopts a token the app got another way (OAuth's device grant in the browser, say), and while signed in it switches to another token on the same server, another workspace or another user, never signed out between: the broadcaster reconnects with the new token, the abilities are read again and everything live that read the backend re-runs. Backend::follow_user follows a private channel named from the signed-in user, and Backend::broadcasting_from reads the Pusher key from the server, as the user, each time the broadcaster starts. And since 0.35.0 a user can be signed in to more than one server — a company's own and a customer's, one active, switched between without signing out: with multiple_servers() each server they sign in to keeps its own token, user id, offline copy and outbox, kept in the keychain across a restart. Auth::accounts() lists them, Auth::switch_to(server) makes another active, revoking nothing, and requests, broadcasting, presence, abilities and live queries move there; Auth::sign_out_of(server) revokes that server's token there and forgets it and its copy. A queued write is sent only to its own server, with that server's token, and waits while another server is active. Since 0.45.0, on a server where a token names one workspace, Backend::token_per_workspace("workspace.id") keeps each workspace's token and user beside the others' on its server, across restarts: Auth::switch_workspace(server, id) puts another in use without a sign-out, Auth::sign_out_of_workspace(server, id) revokes one, and a 401 ends the workspace, not the server.
Screens over the Laravel API
rata make:resource Customer --backend /api/customers --generate with the fields makes the same resource, with the same screens, types and events, but its commands call the Laravel API instead of the local database: index sends the search, sort, direction and page and reads either of Laravel's paginators, and show, store, update and destroy are one request each. There is no migration or seeder, because the table is the server's; rata prints the Laravel side, and the tests run against an HttpFake. Inside a live command a Backend GET depends on its resource, so a successful POST, PUT, PATCH or DELETE re-runs what read it and an open list follows this app's writes. Since 0.13.0 the resource follows its Laravel channel too, so a change made on the web reaches the open list, and since 0.14.0 its writes work offline. For now the project needs both the database and the backend features. Since 0.12.0. Since 0.21.0 make:resource --view builds the screens from @elyra/ui: the list a Table over the live index command, the form a Card with a Form and a Field per field, the command's or Laravel's validation under its field, and the detail view a Card with its actions; since 0.24.0 it picks a reference in a Combobox, and since 0.25.0 a model's date fields are DatePickers and each resource with a name field registers a search, so typing Ada in ⌘K lists Customers: Ada Lovelace, and Enter opens /customers/42. Since 0.63.0 make:resource writes a typed {Model}Filters into the index command, a filter per field by its type (a local resource's: until 0.64.0 a list over a Laravel backend had neither 0.63's filters nor its totals), and --view makes its lists choosable, with the user's views in the route's ?view=; a list made before 0.63 takes them by adding {Model}Filters, filter, choosable, views and bind:view, as a new one is written. Since 0.64.0 it has them: Backend::query sends nested values as PHP reads them (filters[status][]=open), where they used to be refused; the Laravel package's ->elyraList($request, [...]) answers a desktop list on any Eloquent query, the search, the filters by kind, the sort and per_page each through the options' allowlist, with totals over every matching row that a Table's foot shows as the list's; and make:resource --backend writes a typed {Model}Filters into its list's query and prints the call that matches. A controller that ->paginate()s still reads, without them. Since 0.65.0 make:resource --inline writes lists edited in the table, through {plural}_update, {plural}_store and {plural}_destroy; a grouped list sends group, and elyraList's groups order by it first and answer each group's whole in the page's groups, so a group the page cuts still says its count and totals; and a Laravel app that wants saved views on the server calls ElyraBackend::views() and Route::elyraViews() inside auth:sanctum, without which views stay in the settings store as before. Since 0.66.0 the package's ->elyraUpdateMany, ->elyraDestroyMany and ->elyraRestoreMany answer a desktop's many rows, each row's own update, delete or restore policy through the query, the rows that pass in one transaction, answered { updated, failed }, and make:resource writes {plural}_update_many and {plural}_destroy_many, with soft_deletes {plural}_restore_many and the index's trashed, and ref for a parent with a resource, so its lists show names.
Changes on the web, in the open windows
Since 0.13.0 a change made on the web shows in the desktop app's open windows. Laravel announces it with broadcasting, and Elyra listens the way Laravel Echo does in a browser, over the Pusher protocol that Askr (--pusher), Reverb and Pusher speak. Backend::broadcasting(Broadcasting::pusher(key)) connects once the user is signed in and closes on sign-out, and .follow("customers", "/api/customers") follows Laravel's PrivateChannel, authorized by the backend as the signed-in user. An event on a followed channel re-runs the live queries that read its resource, and those under its path, coalesced and pushed only when the result changed; a reconnect re-runs everything followed, since events sent while it was away are lost. While connected, Backend sends X-Socket-ID, so Laravel's toOthers() skips this app. wss only, except to loopback. The frontend gets onBackendEvent and the broadcasting store, and CI runs a real Laravel app's broadcasting through Reverb and through Askr. Since 0.26.0 presence: two people open the same customer, one in the browser and one in the desktop app, and each sees the other before either saves. The app joins Laravel's presence channels the way Echo does, once for all its windows, and Laravel's channel rule decides who gets in; make:resource --backend .. --presence puts the other members on the detail view and the edit form. Since 0.27.0 CI runs it end to end against Reverb: Ada has a customer open in the desktop app, Bob opens it in a browser tab, and each sees the other come and go through Laravel's customers.{id} channel rule; a customer the rule refuses leaves the window unjoined and the connection up. Since 0.29.0 who's editing: Ada changing a customer in the desktop app shows as Ada is editing to Grete in the browser, and the other way round, as Echo whispers it on the presence channel — information, not a lock. make:resource --presence's edit form passes it, changed from the record as loaded. Not on Askr's --pusher, which doesn't pass whispers on. Since 0.36.0 a window follows a private channel while it shows what the channel is about, an agent's run as it happens: Backend::listen(["task.*"]) lists the private channels a window may listen to, as presence(..) does for presence channels, and a name it doesn't cover is refused before anything is sent. Each is authorized at the broadcasting auth route as the signed-in user, and Laravel's 403 leaves it unjoined, logged, and the connection goes on. listen(channel, handler) in @elyra/runtime returns its unsubscribe, listening(channel) is a Svelte store, and a listened channel is joined again after a reconnect, another workspace's token and a server switch.
Working offline
Since 0.14.0 a desktop app keeps working when the network goes, once it calls Backend::offline(). A successful GET keeps its answer in the app's database, per user and URL, hashed and kept only while signed in, and a GET that gets no answer returns that copy and says when it was kept. A write marked .queue_offline() that gets no answer waits in a durable outbox and is sent in order once the server is back, one at a time, each with the Idempotency-Key it was first tried with, so it happens once; no answer, a 5xx or a 429 backs off, honouring Retry-After. Signing out refuses while writes wait, unless the user signs out discarding them, and signing in as someone else clears the others' copies. CI runs a real Laravel app offline, through a proxy the test pulls the plug on. Since 0.17.0 an upload marked .queue_offline() waits with its own copy of the file, up to 500 MB per user by default, and is sent from the copy once the server is back. Since 0.22.0 the StatusBar's 3 changes waiting and 1 change refused are buttons that open the OutboxDrawer, which lists the writes Laravel refused, each with what the server said: a conflict offers Keep mine and Take theirs, any other refusal Send again and Discard. Since 0.42.0 a user who moves between workspaces on one server, as in Slack, keeps a copy and an outbox per workspace with Backend::offline_scope_path(..): switching back offline still shows what it last read, and a write waits for its own workspace, sent with its token. Since 0.50.0 a PUT, PATCH or DELETE to a record marked .optimistic() shows in every window's live lists and views the moment the command sends it, stays applied while it's on its way or waits in the outbox (across a restart), and is taken back when the server refuses it (until 0.52.0, once confirmed, the lists could go on showing the copy, not the server's answer; they re-run once it's no longer pending); <Table pending>'s dot marks rows not yet sent, since 0.50.1 only the signed-in account's and workspace's.
A refused write waits for the user
A queued write the server refuses, a 422, 403, 404 and so on, moves aside with the server's errors and the next writes go on; it waits for the user to fix it, keep theirs or discard it. .unless_changed_since(updated_at) sends If-Unmodified-Since, so a stale update is a conflict instead of last-write-wins: a 412 or a 409 is BackendError::Conflict, and from the outbox Keep mine sends it again without the precondition, while Take theirs drops it and re-reads the record. The frontend gets the connection and outbox stores, and rata make:resource --backend generates all of it: writes marked .queue_offline(), an offline banner, the writes waiting and those refused (Fix, Keep mine / Take theirs, Discard), a form that says Saved, it will be sent, and a test that saves offline and checks the write is sent once. Since 0.14.0. Since 0.17.0 it has a file field too: a FileField in the form, a download link in the detail view, and the controller's lines printed. Since 0.18.0, with abilities, the screens it generates hide New, Edit and Delete the user can't do, preferring a record's can; generated backend views made before 0.18 show every button until they are regenerated with --force.
Files to and from Laravel
Since 0.17.0 a desktop app attaches a file to a record on the Laravel backend and hands one back. An upload is multipart/form-data, what Laravel's $request->file(..) reads, streamed from disk so a large file costs no more memory than a small one. A download is streamed to disk through a .part file, named as the server says but cleaned, and marked as from the internet: quarantine on macOS, the Mark of the Web on Windows. Laravel's 422 on a file and the web server's 413 land on the field. Since 0.50.0 Backend::edit(path).open() opens a file on a record in the user's app for it, Excel, Word or Preview, and sends each save back, checked against the version the download had: someone else's change meanwhile is a conflict, keep mine or take theirs, put beside the user's file and never over it, and sign-out is refused while a save hasn't reached the server. Since 0.56.0 the <StatusBar> says Editing contract.docx, Saving …, 2 saves waiting or 1 file needs you, and opens the new <EditingDrawer>: each file with its state and what the server said, Keep mine and Take theirs for a conflict, Open, Show in Finder/folder, and Done, which asks first when the last save hasn't reached the server.
Only the files the user chose
The frontend hands over only files the user chose in a dialog or dropped on a window, as ChosenFiles, so a script in the page cannot make the app upload any other path: a command argument of type ChosenFile decodes only from the shell's grant, and a path the frontend changed is ignored. dialog.open, dialog.save and onFileDrop return ChosenFiles instead of path strings, the one change in 0.17.0 that breaks frontend code. Since 0.54.0 the files the OS opens with the app (double-clicked, dropped on its icon, "Open With", the command line, a second launch through single-instance) arrive as ChosenFiles of the new kind document: [[bundle.documents]] in elyra.toml declares the app's file types, and rata bundle registers them on macOS, Linux and Windows; until then on macOS such a file went to elyra:deep-link as a file:// string, ungranted and unfiltered by type. Until 0.56.0 the tray's popover could take the documents the app was launched with, since it loads the same page as the main window, and an icon that isn't a file was ignored; the launch's documents go to the main window alone now, and such an icon is an error from rata bundle and rata check alike. Since 0.60.0 files.save(data, options) opens the save dialog, then writes only to the file chosen there, once, and clipboard.writeImage(png) puts an image on the system clipboard, on Linux with Wayland too.
Every transfer, with its progress
Uploads and downloads are in the transfers store while they run, with their progress, and transfers.cancel(id) stops one. .max_size(..) refuses a larger file before sending, and .idempotent() adds an Idempotency-Key so a retried POST is safe. CI uploads and downloads a customer's contract against a real Laravel app, online and offline. Since 0.17.0.
Laravel's notifications, on the desktop
Since 0.15.0 what Laravel sends with $user->notify(..) through its database and broadcast channels reaches the desktop. Backend::notifications() follows the signed-in user's private channel, Laravel's App.Models.User channel, authorized by the backend like any private channel. With no window of the app in front a notification is shown in the OS; with one, it is for the app to toast, and .notification_previews(false) shows only New notification, for a locked screen. A click brings the app forward and opens the notification's url when it is a path in the app; a full URL is never opened by itself. The unread count is on the app's icon (the dock on macOS, the launcher on Linux, an overlay on the taskbar button on Windows) and in the tray's tooltip, and signing out clears it. It needs .broadcasting(..); the app will not start without it.
Read here, read on the web
Notifications::refresh() reads GET /api/notifications, Laravel's paginator over the notifications table with unread beside it, and the count is the server's; offline, it is the last copy. mark_read and mark_all_read count down at once and post to the server, through the outbox when it cannot be reached, and a click on a notification reads it. The list is read again when a window gets focus and when the web broadcasts NotificationsRead, so reading it on the web reads it on the desktop too. What came while the app was offline or closed is caught up: one as itself, more as 4 new notifications, which opens /notifications; a first sign-in on a machine shows nothing. Since 0.15.0.
rata make:notifications
It writes the page at #/notifications, with Mark all read, More and the offline banner, a nav item with the unread count, and the toasts and click handling, set up once for the app, and prints Laravel's side: the table, NotificationController and its routes, the NotificationsRead event and an example notification. The frontend gets the notifications store, onNotification and onNotificationClicked from @elyra/runtime, through Capability::Auth: the page may read the list and mark it read, nothing else. Notifier shows notifications from the container and Notifier::fake() records them for a test, and CI runs a real Laravel app's notifications through Reverb: a customer created on the web is shown on the desktop, and reading it on either side reads it on the other. Since 0.15.0.
Event bus
EventBus + channel() push from Rust to the frontend, batched per flush over a long-poll, so the UI thread never blocks. Since 0.6.0 there are domain events on the Rust side as well — App::listen for a typed event — and App::broadcast forwards one to the frontend on a channel, so the same event can drive a listener and a view.
Typed bridge
rata codegen turns specta types into TypeScript plus a typed api.* facade — call your Rust commands with full type safety. Since 0.8.0 serde_json::Value crosses it as a JSON type rather than an error, translation keys can be generated as types so a misspelt key, or one missing a placeholder it needs, is a compile error instead of rendering its own name, and @elyra/runtime has a small hash router (#/customers/12) for the screens make:resource writes. Since 0.51.0 codegen_bigint() is bigint all the way: it typed 64-bit integers as bigint while the runtime decoded them as numbers, past 2^53 lossily, and couldn't send a bigint argument; now the page gets bigints, small or past 2^53, as the type always said, so order.id === 42 is false and 42n is what to write. Since 0.52.0 a map keyed by integers crosses both ways: as a command argument, where the page sends an object's keys as strings and it failed to decode, and, with codegen_bigint(), in a result with keys past 2^32, which failed to decode and was typed as invalid TypeScript. Until 0.56.0 not inside an enum variant: {"SetQty": {"3": 2}} for SetQty(HashMap<i64, u32>) failed to decode; and with codegen_bigint() a map keyed by a newtype over a wide integer was typed { [key in LineId]: T }, which TypeScript refuses, and is keyed by string now.
Active Record ORM
One Database over SQLite/MySQL/Postgres, rata migrate migrations, and #[derive(Model)] with a query builder, relations and auto-hydration — plus joins, where_between / where_null / or_where_eq, count / sum / avg / exists, paginate, chunk, bulk update and delete, soft deletes, transactions, and a Schema builder that renders DDL per driver so migrations can be written in Rust. Since 0.6.0: belongs_to_many through a pivot, casts, local and global scopes, and model factories for tests. And two things this card listed before they fully held: find and all returned soft-deleted rows until 0.6.0, and count, sum and avg dropped a query's joins. Both are fixed, and #[derive(Model)] now rejects an option it does not know instead of discarding it. A third, fixed in 0.9.1: a cast = "json" field on a t.json() column, which is JSONB on Postgres, could not be written (column is of type jsonb but expression is of type text) or read (the Any driver rejected the whole row), and the docs told you to use t.text() there. On Postgres the cast now converts in SQL both ways, so t.json() works on every driver; a TEXT column keeps its JSON exactly as written, a JSONB one normalizes it (key order, whitespace) and reads back as the same value, and make:resource --generate now makes a json field with t.json. Nothing breaks on upgrade, and nothing moves an existing column to JSONB for you: that is a migration you write. A fourth, fixed in 0.10.1: rata migrate answered Nothing to migrate and created no tables for the Rust migrations that make:resource and make:migration --rust write, because they are compiled into the app. It now runs the app in its migrate mode when src/ has one, which applies both kinds in one batch. A rollback used to drop the records of the other kind without running their down, leaving the tables in place and the next migrate failing on them; every migration in the batch now runs its own down, and a batch holding one that is neither a file nor registered is not rolled back. ELYRA_MIGRATE=up applies the pending SQL files too and prints what it did, and elyra_db::Error has a new variant, UnknownMigration, which an exhaustive match needs an arm for. In 0.46.0 cargo deny ignores RUSTSEC-2026-0459 (CVE-2026-119375) for now: SQLite before 3.54.0 can return uninitialized page-cache memory when a database is opened with a crafted -wal file, and the bundled SQLite comes through sqlx-sqlite 0.9.0, the latest sqlx, which doesn't allow the fixed one yet. The attack is local, an app opening its own database in its own data folder; the ignore goes once sqlx allows it. Since 0.51.0 a model whose row is named by more than one column, an order's lines, a translation per locale, a pivot with columns of its own, has composite keys: more than one #[model(id)], OrderLine::find(&db, (42, 3)), update and delete by every key column, and save() as an upsert on the key; a second #[model(id)] used to be silently ignored, so a model that marks two fields by mistake now has a two-column key. Since 0.52.0 models relate on whatever names their rows: has_many, has_one and belongs_to from and to a model keyed by a String, or by more than one column, and belongs_to_many(Role, using = RoleUser) reads and writes a pivot's own columns, each related row with its pivot row. Two relations this card listed held less: a belongs_to with a nullable foreign key never found its owner, and relations on a String-keyed model didn't compile, until 0.52.0. Until 0.56.0 a pivot whose key fields aren't i64, an i32 or a cast, wrote its rows with 0 for the ids, silently, and is an error now, saying which field; and updating a pivot row with a JSON column failed on Postgres. Until 0.61.0 an app's own SQLite database was put in WAL only if rata migrate had made it: the pragmas (WAL, the busy timeout, foreign keys) were set once, on an eager pool's first connection, and an app's database is opened lazily, so on a user's machine its readers blocked its writers; they're set on every connection now, and a -wal and a -shm file appear beside it.
Queue, Cache & Storage facades
An in-process background job Queue, a TTL-aware Cache, and a filesystem Storage disk — each with the same ergonomic surface as its Laravel counterpart. Plus a cache-backed RateLimiter (too_many_attempts / hit / attempt, self-expiring per key) and a Scheduler for recurring work — every / hourly / daily with async closures, bound through a provider. Since 0.6.0 the Queue can be durable, backed by the app's database, so a job queued before a crash is still there after it; in memory it is not, and the docs say so.
The bridge is gated, not open
The IPC surface used to answer any origin: Access-Control-Allow-Origin: * went out on every response, including the routes for commands, the filesystem, the clipboard and process spawning. Production builds now send no CORS headers at all, every /__* request must carry a per-run token, and each route maps to a capability — with StoreClear, CacheFlush, StorageDelete and UpdaterInstall opt-in rather than granted. Sidecar spawn from the frontend is deny-by-default, shell.open refuses file: URLs and anything executable, a strict CSP is served by default, and request bodies are size- and depth-bounded so a 10 KB payload cannot overflow the stack. Since 0.28.0 a window can be given less than the app grants — fewer abilities, fewer capabilities, no assistant — with only_abilities, only_capabilities, deny_abilities and deny on its WindowConfig. In that window a command or live query whose ability it doesn't allow is refused, a capability it lacks is forbidden, can says no so buttons hide, and the assistant is offered only what it allows. The shell knows the window by its own protocol handler, never by what the page sends, and it only narrows: the app's grant and the user's abilities still apply. And a client id belongs to one window: a page could send another window's x-elyra-client-id and read its events, open live queries in its name or answer its assistant's questions; the shell now gives each id to the first window that uses it and refuses it from any other. Until 0.54.0 the IPC token went to whatever page the webview loaded, and three things could load another: ELYRA_DEV_URL was read by release builds too, so an installed app started with it set loaded that page and gave it full IPC access; a link or a script setting location could take the webview to any site; and window.open and target="_blank" weren't refused. Now only a debug build reads ELYRA_DEV_URL, the webview may go only to the app's own origin, the dev server's exact origin under rata dev, and about:blank, and a link elsewhere is handed to the OS when shell.open's policy allows its scheme, and dropped otherwise.
Testable without a window
TestApp invokes commands through the real middleware pipeline with no window at all — invoke_ok, invoke_err, invoke_validation_errors, assert_emitted — and TestShell drives the actual /__* routing when you want to test the bridge itself rather than around it. Desktop code that can only be verified by clicking is how desktop code rots. Since 0.6.0 Queue::fake(), Storage::fake() and Dispatcher::fake() record instead of act, and App::swap replaces a binding after every provider has run, so a test can put a fake mailer behind the real wiring. Since 0.20.0 Ai::fake is a scripted model for tests, with no network and no key (until 0.46.4 an App::swap(Ai::fake(..)) lost to the server and the keychain in the microphone's transcription and the assistant, so a test of the app's own build reached the server or, with a key kept, made a real call; a fake now comes first) — text, tool calls run through the agent's real tools, refusals and API errors — and Secrets::fake keeps secrets in memory; since 0.26.0 PusherFake speaks presence, with join_as and leave_as for someone on the web; and since 0.28.0 TestShell::window, handle_in and close send requests from a window with limits; and since 0.31.0 AiFake::tool_call_saying and .pace, with AssistantTurn::written, for a streamed turn. Since 0.55.0 the window itself is a feature, gui, on by default: off, elyra builds with no tao, wry or GTK, for a command-line twin of an app, a worker or a headless test job, and commands, the container, events, codegen, migrations, --mcp, the IPC layer and TestShell stay; elyra::testing::http gives the Request and Response TestShell::handle takes, so a test needs no wry, and Prepared::call(name, args) calls a command by name from Rust, through the page's middleware, validation and abilities (until 0.56.0 not all of the page's checks: Capability::Commands, the inspector's mask, the signed-in user's abilities with a backend and the size and depth of the arguments were left out; now it is held to what the page's calls are, and Prepared::call_json reads any answer as JSON). An app that turned the defaults off adds "gui" to its features.
The Elyra Inspector
Since 0.24.0, in debug builds only, ⌘⌥E opens the inspector's drawer: the abilities with a switch each, the window note as the assistant would see it, the window's live queries, and its last 200 calls with names, outcomes, times and sizes. A masked ability is gone from the guard, the can store, the assistant's tools and window note, an MCP agent's calls and Abilities::allows, for the run; it only takes away. Since 0.25.0 its offline switch unplugs the backend, so the app goes offline the way it would for real — reads from its copy, writes to the outbox, broadcasting closed — and the StatusBar says Offline (simulated). Since 0.27.0, in an app with presence, a Presence section shows the channels the windows joined, who's in each, how many windows want it, and the channels not joined (offline, signed out, refused by Laravel), so a why don't I see Bob? is answered without a debugger. Since 0.28.0 it shows a narrowed window's limits, This window, and marks the abilities it doesn't allow, and since 0.30.0, per live query, how often it re-ran and how many re-runs found the result as it was. A release build has none of it, and CI checks that. Since 0.49.0 four tools show the app while it's made: the State Matrix (⌘⌥⇧E, Matrix, or rata dev --matrix) opens the screen in several frames side by side, each a real window with its own look and limits, dark or light, more contrast, a size, fewer abilities, all following the code; Point at it, ⌘⌥-drag over part of a window and say what should change, makes a UI task with the pictures and the Svelte file and line that drew each element, for the agent; the Theme Studio changes the design tokens in every window at once, with every readable pair checked as you go and Copy as CSS for what changed (until 0.50.2 the checks read other values under more contrast than the windows drew and app.css got; the windows, Copy as CSS and the checks now agree); and rata check checks the app as a whole, for CI and the agent: an ability nothing grants, a write that needs none, stale bindings, each with how to fix it. Since 0.58.0 rata upgrade moves the app to a release everywhere it names one, the elyra crates' tags, the @elyra/runtime and @elyra/ui tarballs and the Laravel package's clone, with the Upgrading notes of every release in between, and rata check says when they've drifted apart (elyra-versions-differ).
Log, Config & Secrets
A Log facade with levels, targets, a rotating file sink and log_path() for a “send us your log” button — every command dispatch is traced with its duration. Config merges elyra.toml, config/*.toml, .env and process env into one dotted-key map with ${VAR} expansion. And Secrets keeps tokens in the OS keychain — macOS Keychain, Windows Credential Manager, Linux Secret Service — instead of the clear-text settings file, with get_or_migrate_env to move off environment variables. Since 0.5.8 a read returns a Secret rather than a String: it derefs to &str, so it is used the same way, but its Debug prints Secret(***), so a token that strays into a log line does not arrive in it, and since 0.48.0 every record is redacted before it's written anywhere, a token that isn't a Secret too: bearer tokens (Sanctum's too), Authorization headers, the values of token, password, secret, signature and api_key fields, and a signed URL's query become ••• (until 0.49.0 not a URL's password, as in postgres://app:s3cr3t@db.internal, nor a bare sk-ant-… or sk-proj-… key, which had none of the words redaction looked for). Since 0.20.0 rata bundle warns about API keys in the app: it scans the release binary, with its embedded frontend, for what looks like an Anthropic or OpenAI key, and shows only its start and length. Since 0.48.0 the user can send diagnostics: App::diagnostics() adds Help → Save Diagnostics…, one plain-text file with the app's and Elyra's versions, the system, the connection, the outbox, the updates, the windows, the page's errors and the end of the log, to read and attach to an email or a ticket. Nothing is sent by the framework, and no token, password, signature, record or name is in it (until 0.49.0 the home folder on Windows written with a forward slash, C:/Users/kari as in a sqlite: or file: URL, kept the user's name). Since 0.49.0 they also say when the app last heard from the server, when the outbox last sent and how much memory the app uses. The log keeps its last 1,000 records in memory, and the page's uncaught errors and unhandled rejections reach it in every app, at error level with the target page.
Validation, all the way to the form
Check command input against a rule string — “required|email|min:18” — and get a per-field error bag back. Return it with ? from a command and the frontend reads the structured errors through validationErrors(err) in @elyra/runtime, so a field error stays a field error across the IPC boundary instead of collapsing into one message. Since 0.7.0 fields can be paths — address.city, items.*.name, with errors keyed items.1.name — fourteen rules became forty-four, and unique and exists check the database through the async validator. An unknown rule now panics, naming the rule and the field: a misspelt required used to be ignored, which quietly let invalid input through. Since 0.8.0 the messages can be translated from the same files as the rest of the app. And since 0.10.2, when the database cannot be asked (a locked database, a dropped connection, a missing table), unique and exists fail the field with The email could not be checked right now rather than panicking, and the input is not let through; a count that could not be read used to pass unique silently.
One set of translations, both halves
Since 0.7.0 one JSON file per locale serves both sides of the app: __() and trans_choice() in Rust, $t and $tc in Svelte, with placeholders and plurals the way Laravel does them. A string the backend puts in an error and the same string on a button come from the same file, so they cannot drift into two translations of one sentence. Since 0.58.0 the framework's own words go through them too, in English and Norwegian: every word @elyra/ui shows has a key, elyra.<component>.<word>, and the runtime's panels and the Edit and Help menus follow, relabelled when the locale changes, so an app with lang/nb.json has a Norwegian date picker, outbox drawer and Edit menu without writing a word of them; an English-only app stays English on a Norwegian Mac, and an app's own elyra.* keys win over them.
Artisan-style generators
rata make:command, make:provider and make:model scaffold a file under src/ with names normalised the way you would expect — BlogPost becomes blog_post.rs with a BlogPost struct and a blog_posts table. It prints the mod line and registration rather than editing main.rs for you, and it never overwrites an existing file: generated code is a starting point, not something that owns your wiring. Since 0.8.0 rata make:resource Customer writes the vertical slice a desktop app needs for each kind of record — list, search, paging, a validated form, a detail view, delete with a confirmation, and the Rust commands, events and tests behind them — in three tiers: for a model you wrote, with --view for the Svelte screens, and with --generate name:string email:email:unique for the model, migration, factory and seeder too. The safety rails are in the generated code, not around it: the sort column goes through an allowlist, per_page is capped at 100, and every command needs an ability the app has not granted yet. Everything is checked before anything is written, it prints the Cargo.toml lines it needs rather than editing Cargo.toml, and an existing resource is only replaced with --force. Only the two registries are rata's, and it refuses to overwrite one whose first line says it isn't. Since 0.9.0 the generated list and detail views read from live.*, so a customer added, edited or deleted in another window shows up without a reload, while the form still reads once so it never overwrites what is being typed. A resource made with 0.8 keeps its non-live views until you regenerate it, and regenerating a --generate resource without --generate is refused, with the command to use instead.
AI SDK
A Laravel-inspired elyra-ai crate: text, chat, tools and structured output — plus retries with backoff, provider failover (until 0.52.0 it sent the fallback the primary's model whenever text_model(…) was set; a fallback now gets its own model, and one without a model is skipped), response caching, rate limiting + token budgets, native web search/fetch, and text-to-speech + transcription. Since 0.19.0 the driver sends Anthropic's API version 2026-10-21 and no longer sends temperature, which that version refuses on every model; the default Anthropic model is claude-sonnet-5-5 (was claude-sonnet-5); a turn Anthropic's server-side tool loop pauses is sent back so the server carries on, instead of returning the partial text; and Error::Refused says when Claude declines a request, where it used to surface as Error::Empty. Since 0.31.0 Chat::on_text streams a prompt that uses tools: each step over SSE, the tool loop as before, the whole response returned. Since 0.52.0 it reaches beyond two labs: Provider::Gemini, Groq, Mistral, DeepSeek, XAi, OpenRouter, Ollama (no key) and Compatible (any OpenAI-shaped endpoint), on the OpenAI driver, each with its own model through text_model_for(provider, model); and web search on OpenAI as on Anthropic, through the Responses API, so a search can fail over between them. Since 0.53.0 Response::citations() gives the sources a web-search answer cites, in text order, each with its url, title and the words it backs: the same on Anthropic and OpenAI, so a failover between them keeps the sources, and a command can return them to the page as they are.
An assistant in the app, over its own commands
Since 0.20.0 App::assistant gives each window a conversation with a model whose tools are the commands the grant covers. A tool is offered only when the signed-in user has its ability, and checked again at each call, and a confirm ability asks the window first. openAssistant opens a panel with the conversation, the commands run and the answer, and in the ⌘K palette a query no command matches offers Ask the assistant. It reaches Claude through Laravel with the user's Sanctum token, where Route::elyraAssistant adds the server's ANTHROPIC_API_KEY, allows only the configured models and caps max_tokens and requests per user; without a backend route, the user's own key in the keychain is used. rata assistant inspect lists the commands it may use, each marked asks first, read-only or runs without asking, for a review of what a prompt-injected model could do. Since 0.22.0 the assistant sees the window: each turn carries a short note of the window it was asked from, with names and ids, never rows, and assistant.selected tells it what is selected, so send these a reminder knows which. Since 0.29.0 an app's prompts are tasks it offers by name, with arguments, a description and the abilities each needs: Mcp::prompt lists one to an agent, and Assistant::prompt suggests it in the panel before the first message, to a user who may do it in that window. Since 0.30.0 a prompt's argument, or a resource template's variable, completes from the app's own data: its values come from a live command, what's typed is its search, and each row's field is a value. Over MCP, completion/complete answers with them, run through the agent's grant and rate limit; in the assistant's panel, typing a suggestion's argument shows them in a list, run as the user in the window's limits. Since 0.31.0 the panel shows what Claude writes as it writes it, through the turn's tool steps, over the user's key and through Laravel's Route::elyraAssistant alike, where a turn with a tool step or two took five to fifteen seconds of nothing, then the whole answer at once. Stop helps while the answer is coming, keeping what was written; a server that won't stream is asked whole, and OpenAI answers whole, as before. Since 0.35.0 Assistant::max_tokens(n) sets what each request to the model may write, thinking included: 16 000 by default, where the AI client's 4096 cut answers short on models that always think, and Laravel's assistant route lowers it to the server's cap. Since 0.38.0 it can write a loop instead of taking a turn per record: with Assistant::code_mode() Claude writes code that runs in Anthropic's code execution sandbox and calls the app's tools from it, so only what the code prints reaches the model. Each call is checked as any call is, a tool behind confirm is direct-only, and the panel shows a run as one step with its code, its calls and its output. Off by default: the results of code's calls go to Anthropic's sandbox, kept up to 30 days, outside zero data retention. Since 0.56.0 the assistant searches the web and cites its sources, Assistant::web_search(..), off by default: the panel marks the words each page backs ([1]) and lists the pages under the answer, a page is a link only when it's http(s) and opens in the browser, and through a Laravel backend the server allows it with ELYRA_ASSISTANT_WEB_SEARCH=true.
Windows, menus & tray
Multi-window management with window-state persistence, a native application menu, global shortcuts and a system tray — each wired from a single builder call (tao + wry). Since 0.28.0 /__window/* acts on the window that asked, so appWindow.close() closes its own window, not the focused one; a page that meant to control another window does it from Rust, with the window's label. Since 0.32.0 a window opens from the tray: a left click on the icon shows a small window of the app's below it, kept on the monitor, and a click elsewhere, Esc or another click hides it, the menu moving to the right click. It is scoped as any window, shown on macOS without bringing the app's other windows forward, and on Linux, where the icon sends no clicks, the tray's menu gets an item that opens it by the cursor. And a window's path("settings") opens the app's page at that route in a built app, as in rata dev; it was a 404. And since 0.33.0 an app can stay in the tray: App::stay_in_tray() starts it with the tray icon only, closing the main window hides it, and it runs until a quit — the tray's Quit item, ⌘Q, or quit() in the runtime. On macOS it's an accessory, with no Dock icon, ⌘Tab or menu bar, while no window shows, and a regular app while one does; opening it again from Finder, Spotlight or the Dock shows the main window. It turns on single instance and needs a tray, and rata bundle writes LSUIElement into the .app so its Dock icon doesn't show for a moment at launch. And since 0.38.0 an Elyra app runs on Linux: its window opens, and what the page sends arrives, found by running the window in CI for the first time. The webview is built in tao's GTK box, where it failed with WindowHandleError(Unavailable), and every request from the page had arrived with an empty body; WebKitGTK 2.40 or newer is needed (Ubuntu 22.04 and later). Since 0.38.1 Windows works too: WebView2 serves the page from http://elyra.localhost, so every call the runtime made to elyra://localhost (commands, events, the window controls, the store) failed with Failed to fetch, and the shell now tells the page where to call it. Since 0.38.2 rata dev works on every platform: it runs npm on Windows, and closing the app stops Vite, which kept running everywhere and held port 5173. CI walks a coding agent through the example app's window on Linux and Windows, built and under rata dev, and since 0.40.1 on macOS too, where it had been checked by hand: Linux, Windows and macOS are all checked the same way. Since 0.39.0 the tray's icon is the app's own, drawn by macOS in the menu bar's colour when it's a template, and it changes while the app runs: a timer's 01:24 beside it, a syncing icon, the unread count, which an app in the tray with its windows closed had nowhere to show. On Windows and Linux the windows get the app's icon, and a window remembered on a screen that's since been unplugged opens on one that's there. Since 0.57.0 the menu can be what a document app's is: check items whose mark follows the app's state, items greyed out until they can be used, the system's own Cut, Copy and Paste, nested submenus and entries for one platform, all changed from the page with menu.set(id, { enabled, checked, label }) or from Rust with AppMenu::set, on every window's menu bar; a check item's mark doesn't flip on a click, the app sets it, and a read-only window may read the menu, not change it. Since 0.61.0 an app prints: print() opens the system's print dialog for the window on macOS, where window.print() did nothing, Windows and Linux, print({ element }) prints a part of the page alone, the page is in the light theme and @elyra/ui prints its content without the app's chrome, ⌘P asks the window in front, and pdf() makes a PDF of the page or a part of it without a dialog, on A4 or letter, for files.save, an attachment or the backend. Since 0.66.0 ⌘/ (Ctrl+/), ? outside a text field, the ⌘K palette's Keyboard shortcuts and the Help menu's Keyboard Shortcuts show a sheet of the keys that work where the focus is, the focused component's first, then the app's, then the window's, each written as the platform does (⇧⌘Z, Ctrl+Shift+Z), with a filter; the default macOS menu has a Help menu now.
Signed auto-updater
An ed25519-verified updater with a built-in auto-update toast — ship updates safely with one builder call. Since 0.36.0 an app distributed from each customer's server updates from there: UpdaterConfig::from_backend asks the signed-in user's active server, with their token, and a url not on that server's origin is refused, so the token goes nowhere else. On macOS a Developer ID can stand instead of, or as well as, the ed25519 key: the download's SHA-256 and size are checked and the bundle must pass codesign --verify --strict --deep, signed by that team over that bundle id; an older version is refused. The .app is replaced whole, by a rename, put back if that fails, and from the backend installing stops at ready until Restart. Since 0.37.0 an updater configuration that can't verify an update stops the start; it used to be logged, with the update flow off.
Sidecar processes
Spawn and supervise child processes (a Node server, a Python worker) from the app, with autostart-at-login so it comes up with the user's session.
Settings store
A persistent key-value store (store in @elyra/runtime) for app preferences — typed, synced to disk, no boilerplate.
System integration
Native desktop essentials — window controls, file drop, notifications, single-instance and deep-linking — exposed through @elyra/runtime. Since 0.44.0 a notification on Windows is shown as the app, with its name and App::icon, not as Windows PowerShell's, as every one had been: App::identifier("com.example.notes"), as [bundle] identifier, is the app's AppUserModelID, its name and icon are written under it at each start, and the installer's uninstaller removes the key. Since 0.46.0 an app can let its user speak instead of type: App::microphone(why), behind the microphone feature, records natively on macOS, Windows and Linux alike, hands the page the recording as a ChosenFile, and turns it into text through the app's Laravel server, which holds the key. A recording of nothing but zeros, which is what macOS hands an app it won't let listen, is an error that says where to allow the microphone, and @elyra/ui has <Microphone>: a click starts and stops it, Space or Enter held records until let go, and since 0.49.0 so does holding it down with the mouse, a finger or a pen: past 300 ms it records until let go, and a shorter press is a click (until 0.50.1 a hold let go where no click followed made it ignore the next click, from the keyboard or a screen reader). 0.46.1 closed six gaps in it, found in a review, the worst a hidden window that went on recording where no one could see it: a tray app's closed main window or a popover clicked away from stays hidden, not closed, and the shell now stops the recording and tells the page. A recording under a tenth of a second isn't sent, and /__mic/transcribe is rate-limited, 20 a minute, like the assistant: each call is a paid model call. 0.46.4 closed what a review of those fixes found: a <Microphone disabled> while recording kept recording with no way to stop it, and now throws the recording away; and with two on a screen, one could take the other's recording. Since 0.47.1 <Microphone> works like the other controls: can and canMode as on Button, a recording taken away with the ability thrown away; <Microphone transcribe={false}> in a <Field> is the field's control; and what it hands over makes a <Form> dirty. Its disk and device work runs on tokio's blocking threads, so the app's other requests are no longer held up meanwhile. Since 0.54.0 exit hooks, App::on_exit(|ctx| …), run once, last added first, however the app ends: the last window, Quit, a relaunch into an update, the end of an --mcp run, SIGINT, SIGTERM and SIGHUP, Ctrl-C and a closed console on Windows, and Windows log-off and shutdown; the process used to end without running anything, so a tunnel or a server the app started lived on after it. A sidecar still running is killed when the app ends; it used to be left behind.
Built-in UI components
Themed, dependency-free primitives plus a wired About dialog and update toast — consistent, native-feeling chrome for free. Since 0.21.0 they read the design tokens: dialogs, toasts, the ⌘K palette, context menus, the About dialog, the update toast and the assistant panel read --elyra-* first, and an app on the old names keeps its look. Until 0.60.0 the context menu did not work from the keyboard: now it's a menu to a screen reader, its first item has focus, ↑/↓, Home/End, Enter, Esc and Tab work, and focus goes back where it was.
@elyra/ui: desktop components that know the app
Since 0.21.0 a package for Svelte 5 with design tokens — --elyra-* CSS variables for surfaces, text, borders, accent, states, shadows, radii and fonts, dark by default and light under [data-theme=light], on the Tokyo Night palette — and the components on them: Button with can for the user's abilities and confirm through the runtime's dialog, Form and Field with Laravel's 422 or a command's ValidationErrors under each field, a searchable Select, Modal and Drawer with focus trapped and given back, a Table over a live page with search, sort and page written into the query, and an AppShell whose StatusBar shows offline since when, the outbox, transfers and the assistant's button. All are keyboard-first with ARIA. rata make:ui copies one into the app, the app's own, never overwritten without --force. Since then SplitPane, Combobox and FileField (0.23.0), Kbd and selecting rows in a Table (0.24.0), DatePicker, Avatar and AvatarGroup (0.25.0), Presence (0.26.0), and column widths in a Table (0.29.0): resizable gives each header a grip to drag or to move with the arrow keys, and persist keeps the widths in the settings store, as SplitPane keeps its size; make:resource --view's lists are resizable, kept under the resource's name. Since 0.37.0 things move a little, and not at all for a user who asked for less motion: motion tokens read by every transition and animation, 0ms under prefers-reduced-motion; the tabs' line glides to the shown tab, a switch's knob settles with a little spring, and dialogs, side panels, menus, popovers and pickers open into place. And a user who asked for more contrast gets it: muted text 7:1 or more, and borders and focus 3:1 or more, against every surface, in both themes. Since 0.38.0 the runtime's own pieces move the same way: the About dialog, dialogs, toasts, ⌘K, the context menu, the update toast, the assistant panel and the inspector open into place, and appear at once under prefers-reduced-motion. Since 0.40.0 it has the two things every app with a Laravel backend built itself, following the runtime's stores: NotificationBell, Laravel's notifications behind a bell with the unread count on it and the newest in a panel, so one read on the web is read here; and AccountSwitcher, the servers the user is signed in to in a menu, where a click switches and signing out asks before it drops changes that haven't been sent; since 0.41.0 it shows how many of each server's changes are waiting and how many were refused under each server, with a dot on its button while another server has refusals, where the other server's changes had waited out of sight until a sign-out was refused. And TreeView, for folders, categories and charts of accounts: a WAI-ARIA tree with the keyboard Finder and Explorer have, children read when a branch first opens. Since 0.47.0 popups keep inside the window: Dropdown, Popover, Select, Combobox, DatePicker, Tooltip and NotificationBell open above their button when there's more room there, move in from the window's edges and scroll when neither side has room, where they opened below their button, always, and on a Table's last rows, in a container with overflow: hidden or at the window's edge were cut off or ran out of it. And a form says when the user has changed something: <Form bind:dirty>, with <Modal beforeclose> (and <Drawer>) asking before unsaved changes are lost; after a 422 the first field with a message takes focus (a <Microphone transcribe={false}> field too since 0.49.0: it was found by aria-invalid, which a button can't carry). Since 0.49.0 --elyra-muted reaches 4.5:1 on every surface: it was 3.93–4.40:1 in the dark theme and 4.25:1 on --elyra-inset in light; and @elyra/ui's tests now hold every look to its ratios. Since 0.50.0 <Table preview={(row) => route}> is Quick Look: Space on a row shows the record in a read-only window beside the list (until 0.50.1 that window could still set or delete the assistant's key, say it was editing, answer or stop following and choose the whole app's locale; its routes now each only read), ↓/↑ move it along and Enter opens the row, and since 0.50.2 Esc closes it wherever the focus is in the window (Space still opens a row in a table without preview); and <Presence channel="office" follow /> lets you follow a colleague, who allows it in their app, your window going where theirs goes, only the route travelling, until either presses Stop, or, since 0.50.1, the window leaves the channel or closes, where following outlived it. Since 0.57.0 Stat, a figure on a card, how it changed, coloured by which way is good news, with its numbers as a Sparkline; Progress, how far along, or as a meter how full, turning warning and danger past low and high; Breadcrumbs, through the router, the middle of a long trail folded; and DateRangePicker, two months, presets a click away. Since 0.58.0 @elyra/charts is a third package: LineChart, AreaChart, ColumnChart, BarChart, PieChart and ScatterChart on tree-shaken ECharts, with WireCharts' data, the design tokens in every theme, live queries, and a summary and a hidden data table for the screen reader and the assistant. Since 0.59.0 it has all 72 of WireCharts' charts, each a component with WireCharts' props and its builder ported to JavaScript, held to WireCharts by fixtures made from its docs: funnels, gauges, a ticking clock, heatmaps, candlesticks, trees, sankeys, races that draw themselves, a chart that plays its series as sound, and 3D from @elyra/charts/gl with echarts-gl; an app ships only the charts, and the builders, it draws. Until 0.59.0 the hidden data table stretched the page, a long series making it that much taller; it's hidden in a box now. Since 0.60.0 every chart has a menu, by right-click, Shift+F10 or the Menu key, to copy it as an image, save it as PNG or SVG with the theme's surface behind it, or copy or save its data as CSV in the app's locale (semicolons and decimal commas in Norwegian); exportable={false} turns it off, and save(), copy() and csv() are there for an app's own button. Since 0.61.0 a chart over a long series zooms, with the wheel, a pinch, a drag and a slider: bind:range is the window in the axis's own values for the app to read and set, + and − zoom, Shift+←/→ pan and 0 shows all, and live data keeps the window. Until 0.61.0 a chart with data from the start dropped its first new value: a live query's first update after the chart was drawn was skipped. Since 0.62.0 charts over the same time are linked by a name, link="name": zoom one and the others follow, point at a day in one and each shows it, by the axis's values rather than position; and brush lets the user select points or a span, by the pointer or the keys (Space, ←/→, Esc), with bind:selection as data the app filters a table with. Since 0.64.0 targets={{ label, data, tone?, lower? }} give each category its own goal, a budget a month, drawn as a tick across each column or bar (the bullet chart) or a dashed step line through a line, and said as met or not (Budget: 8 of 12 met). Since 0.63.0 a chart draws marks, a target, a threshold or a period, and its summary says how the data stands against them (Budget 120,000: 6 of 12 over). And Report lays content out on pages of A4 or letter, each with the app's header and footer and Page 2 of 5, tables split between rows with their head again, seen on screen as its pages and printed or made a PDF of as them. Since 0.63.0 a Table answers questions: a column's filter gives its header a funnel and a chip over the table while it's on, in query.filters from the first page, so a rows table filters itself and a live page's command gets them; a column's total is in the table's foot, over every row as searched, not only the page; choosable gives a Columns menu to show, hide and order them; views keeps a list's question by name, the app's and the user's own; and its rows go to the clipboard as cells or to a CSV file in the app's locale, from its own menu, where the browser's was. Since 0.65.0 a Table is one you work in: a column's edit and the table's onedit(row, key, value) let the user change a cell where it is, the table then a grid with the arrows, Enter or F2 or a character to edit, Tab across and Esc to leave it; a failure takes the value back with a toast, and a ValidationError for the field opens the editor again with its message. Shift with the arrows marks a range of cells, ⌘V pastes a block from a spreadsheet from the cursor, right and down, ⌘D fills down, and ⌘Z / ⇧⌘Z undo and redo the table's own changes, leaving a cell someone else changed since; the selection bar has Set, one column for every selected row; and with oncreate(values) an edited table has an empty row at its end, a paste on it making a row a line. A paged table's Copy table and Save as CSV… take every row the user's query matches, fetched page by page, 100 at a time, with Cancel, and Select all 340 that match selects every match; group shows the rows in groups of a column's value, each under a header with its count and the columns' totals for the group; a column's pin: true keeps it at the table's start while the rest scroll sideways; and a list's saved views are the user's on every machine they sign in on, a user with the ability elyra.views.share sharing a view with the team. Since 0.66.0 lists change in bulk: a table's onsetmany(ids, values) sets a column for many selected rows in one call for 500 keys at a time, with progress and Cancel between calls, the answer's failed keys taken back and marked; ondeletemany(ids) gives the selection bar Delete, asked once with the count, the failed staying selected; and a table's trash gives the Views menu Trash, the deleted rows read-only with when, and the selection's Restore, a delete then a step for ⌘Z and ⇧⌘Z. A column's ref shows a key by its record's name, found once each, six at a time, edit: "ref" picks one in a Combobox over search, a paste, Set and the new row taking the one record with exactly that name, and filter: "ref" filters the list by the chosen records.
Compiled, no overhead
A single binary with no embedded runtime — fast startup, low memory, and Rust's safety across the whole app. Since 0.43.0 rata bundle makes installers too: on Windows the .exe carries the app's icon and version, so Explorer, the Start menu and the taskbar show its icon, and with NSIS there an installer that needs no administrator and puts the app where its updater can replace it; on Linux, with appimagetool there, an AppImage that runs on most distributions, beside a .deb that says what it needs, so apt install ./app.deb installs a working app. Since 0.57.0 rata bundle makes a .dmg on macOS, <Name>_<version>_<arch>.dmg: the .app, copied with ditto, its signature intact, and a link to Applications to drag it onto; signing and notarizing it stay the app's release pipeline's.
@elyra/ui, running
Desktop components that know they're in an Elyra app
They check what the user may do, show Laravel's validation errors under the fields they belong to, ask through the
runtime's dialog before what can't be undone, and run a live.* list. They're themed by the
design tokens, work from the keyboard and carry ARIA. These are the package's own documentation examples, from
v0.66.0, running in this page: click them.
button/variants
date-picker/basic
combobox/search
table/live
presence/basic
status-bar/basic
Every component, with its code beside it: the @elyra/ui docs.
Native desktop apps,
the way you build for the web.
Free and open source. Scaffold an app with rata new and read the docs to go deeper.