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
Release notes
Changelog
Elyra
Opening documents

Opening documents

A document app opens its files the way the OS offers them: double-clicked in Finder or Explorer, dropped on the Dock icon, chosen in "Open With", or named on the command line. Elyra registers the app's document types when it bundles the app, and hands the page each file the OS opens as a ChosenFile (RFC 0052).

# elyra.toml
[[bundle.documents]]
name = "Kver document"
extensions = ["kver"]
mime = "application/vnd.kver.document+json"
App::new()
    .opens(["kver"])        // what the running app takes
    .single_instance()      // so a second double-click reaches this process
    .command(read_document)
    .run()?;

#[command]
async fn read_document(_ctx: Ctx, file: ChosenFile) -> elyra::Result<String> {
    std::fs::read_to_string(file.path()).map_err(|e| elyra::Error::Command(e.to_string()))
}
import { documents } from "@elyra/runtime";

// Subscribe first, then take the launch's files, so none falls between.
documents.onOpen((files) => files.forEach(openTab));
for (const file of await documents.initial()) openTab(file);

async function openTab(file) {
  const text = await api.read_document(file);   // the ChosenFile, as it is
  // …
}

Declaring the types

Each [[bundle.documents]] is one type, with:

key
name required what the OS calls it ("Kind: Kver document")
extensions required lowercase, without the dot
mime optional default application/x-<app>-<first extension>
role editor (default) or viewer macOS's role for the app
icon optional the document's own icon; otherwise the OS's generic one
uti optional macOS's type identifier; default <identifier>.<first extension> for a type the app owns
owned true (default) the app defines the type and becomes its default app; false for a type defined elsewhere (md, txt), which is only offered in "Open With"

rata bundle writes them for each platform:

  • macOS: CFBundleDocumentTypes, with an exported type declaration for each type the app owns.
  • Linux (.deb): MimeType in the .desktop entry, a shared-mime-info file for the types it owns, the icons, and a postinst that refreshes the caches. An AppImage can't register types by itself.
  • Windows: a ProgID per type in the installer, under HKCU like the rest, removed by the uninstaller. A type the app owns becomes the extension's default app.

The types are registered by installing the app, never at runtime: a build run from target/ doesn't claim them.

App::opens([..]) says what the running app takes; a file of another type that reaches it is turned away. rata check reports an extension [[bundle.documents]] registers that the app doesn't open, and one it opens that nothing registers.

What the page gets

Each file is a ChosenFile of kind document: one the user opened, which a command may read and save back to. As with a dialog's file, a command takes it by its grant alone, so the page can't make a command read a path the user didn't open.

  • documents.initial(): the files the app was launched with, handed out once. A second call, or another window's, gets [].
  • documents.onOpen(cb): each batch opened while the app runs (on elyra:open-documents), sent to every window. The app decides which one opens it.
  • App::on_open(|ctx, files| …): the same batches in Rust first, to open a window per document or keep a list of recent ones. The page still gets them.

How they arrive: macOS's open-documents event; on Windows and Linux, the command line, and a second launch's files forwarded through single-instance. A Quick Look or other read-only window can't take the launch's files.

Related