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

UI components

@elyra/runtime ships themed, dependency-free UI primitives so apps don't have to reinvent them (or fall back to the webview's unstyled window.confirm). They read Elyra's design tokens — --elyra-raised, --elyra-bg, --elyra-text, --elyra-muted, --elyra-accent, --elyra-border, --elyra-danger, … from @elyra/ui/tokens.css (RFC 0012) — and, for an app on the names used before 0.21, --surface/--panel, --bg, --text, --muted/--text-dim, --accent and --border, with dark defaults. So they match the app's theme, light or dark, out of the box.

They open into place as @elyra/ui's do, timed by its motion tokens (--elyra-duration, --elyra-ease, …): a dialog rises a little, ⌘K and the context menu drop in, a toast comes up, the assistant and the inspector slide in from their side. For a user who asked the OS for less motion (prefers-reduced-motion) they appear at once, with or without @elyra/ui/tokens.css.

Dialogs

Promise-based replacements for alert / confirm / prompt:

import { alert, confirm, prompt } from "@elyra/runtime";

await alert("Saved.", { title: "Done" });

if (await confirm("Delete this item?", { danger: true, confirmLabel: "Delete" })) {
  // ...
}

const name = await prompt("Project name", { defaultValue: "untitled" });
if (name !== null) { /* user confirmed */ }
  • confirm → Promise<boolean>, prompt → Promise<string | null>, alert → Promise<void>.
  • Enter activates the primary button, Esc / overlay-click cancels.
  • danger: true styles the primary button as destructive.

Toasts

In-app notifications (distinct from OS notifications via notify):

import { toast } from "@elyra/runtime";

toast("Copied to clipboard");
toast("Export finished", { variant: "success" });
const t = toast("Uploading…", { duration: 0 }); // sticky
t.dismiss();

Variants: "info" (default), "success", "error". duration is milliseconds (default 3500; 0 keeps it until clicked). Toasts stack bottom-right.

Command palette (⌘K)

Register commands once; the palette opens on ⌘K / Ctrl-K automatically:

import { registerCommands, openCommandPalette } from "@elyra/runtime";

registerCommands([
  { id: "new", title: "New file", subtitle: "Create a file", keywords: "add create", action: () => {} },
  { id: "about", title: "About this app", action: () => openAbout() },
]);

// or open it yourself (e.g. from a button):
openCommandPalette();

Type to filter (title + subtitle + keywords), ↑/↓ to move, Enter to run, Esc to close. The ⌘K binding is only active once commands or searches are registered, or once the app's assistant has been used.

Searching the app's records

A search source is asked as the user types, and its results come after the commands, under its title. Typing Ada finds the command and the customer:

import { navigate, registerSearch } from "@elyra/runtime";
import { api } from "./bindings";

const off = registerSearch({
  id: "customers",
  title: "Customers",
  can: "customers.view",           // not asked without it
  search: async (query, { signal }) => {
    const page = await api.customers_index({ search: query, per_page: 5 });
    return page.data.map((c) => ({
      title: c.name,
      subtitle: "Customer",
      action: () => navigate(`/customers/${c.id}`),
    }));
  },
});
  • When: once typing settles (150 ms), from 2 characters (minChars). Only the latest query's answers are shown, and a newer one aborts the older one's signal.
  • Who: a source with can is asked only when $can allows it, and is asked as soon as the user's abilities say so.
  • Trouble: a source that fails is left out; the others still show.
  • make:resource --view registers one for each resource with a name to show it by, through resources/index.js. Its can is the resource's .view ability when the views are gated by the backend's abilities.
  • search(query) asks every source the way the palette does, for a search page of the app's own: [{ id, title, results }].

With the app's assistant (App::assistant), a query that matches no command or record offers Ask the assistant: “…”, which opens its panel with that question.

The palette is a dialog with a combobox and a listbox: the active result is the input's aria-activedescendant, and each source's results are a group named by its title.

Assistant panel

The app's assistant (RFC 0011) has a built-in panel on the right of the window:

<script>
  import { openAssistant } from "@elyra/runtime";
</script>

<button onclick={() => openAssistant()}>Ask</button>
<!-- or with a question: openAssistant("Which invoices are overdue?") -->
  • It shows the conversation, each command the assistant runs (✓ or failed), and the answer. The model's words are always shown as text.
  • A command whose ability Assistant::confirm names asks first, in the themed dialog, with its description and arguments: Allow or Don't.
  • Stop stops the turn, New starts a new conversation, and Esc or Close closes the panel; the conversation stays.
  • Without a model (/__assistant/source is none), it asks for the user's own Anthropic key and keeps it in the keychain. Forget my key removes it.

For a panel of your own, assistant is a Svelte store of the conversation:

<script>
  import { assistant } from "@elyra/runtime";
  let text = $state("");
</script>

{#each $assistant.items as item}
  {#if item.kind === "user" || item.kind === "answer"}<p>{item.text}</p>
  {:else if item.kind === "tool"}<small>{item.tool} {item.ok === null ? "…" : item.ok ? "✓" : "failed"}</small>
  {:else if item.kind === "error"}<p class="error">{item.text}</p>{/if}
{/each}
<input bind:value={text} /> <button onclick={() => assistant.ask(text)} disabled={$assistant.busy}>Ask</button>

assistant.ask(text), .stop(), .reset(), .tools(), .source() and .setKey(key | null) (write-only) talk to /__assistant/*. Its questions still use the themed dialog. assistant.selected(kind, ids) says what's selected in the window, for the assistant's note of the window.

The keys, shown

⌘/ (Ctrl+/), or ? outside a text field, shows a sheet of the keys that work where the focus is (RFC 0085). So do the ⌘K palette's Keyboard shortcuts and the Help menu's Keyboard Shortcuts (SystemItem::Shortcuts).

import { registerShortcuts, showShortcuts } from "@elyra/runtime";

const off = registerShortcuts("app", [
  { keys: "Mod+N", label: "New invoice" },
  { keys: ["Mod+Shift+Z", "Ctrl+Y"], label: "Redo", when: "In a list" },
]);
showShortcuts(); // from a button of the app's own
  • The groups: the focused element's nearest (a component registers its own with the element it works in, and a title), then the app's ("app", and every command of registerCommands with keys), then the window's (⌘/, and ⌘K when the palette has something).
  • The keys: Mod is ⌘ on a Mac and Ctrl elsewhere, Alt ⌥ or Alt; the sheet writes each as its platform does (⇧⌘Z, Ctrl+Shift+Z). keyText(combo) does it for the app's own labels.
  • @elyra/ui's components register their own: a Table the keys that work in it, by what it does (the grid's when it's edited, the selection's with select, Quick Look's with preview, the new row's with oncreate); a Combobox, a DatePicker, a TreeView, Tabs and a SplitPane their few.
  • The sheet is a dialog with a filter, its groups headings and each a list of keys and what they do; Esc closes it, the focus back where it was.

Context menu

Show a menu at the pointer from a right-click handler:

<script>
  import { contextMenu } from "@elyra/runtime";
  function onMenu(e) {
    contextMenu(e, [
      { label: "Rename", action: rename },
      { label: "Duplicate", action: duplicate },
      { separator: true },
      { label: "Delete", action: remove, disabled: !selected },
    ]);
  }
</script>

<div oncontextmenu={onMenu}>…</div>

contextMenu calls preventDefault(), keeps itself on-screen, and closes on select / click-away / Esc. It's a menu to a screen reader and to the keyboard: the first item has focus, ↑/↓ and Home/End move, Enter or Space chooses, Esc or Tab closes, and focus goes back where it was. Open it from Shift+F10 or the Menu key with a MouseEvent("contextmenu") placed where the element is.

Related