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

Configuration

Two halves: elyra.toml, the project descriptor rata reads, and Config, the runtime facade your app reads.

elyra.toml

Ratatosk reads elyra.toml from the current directory or any parent (walking up). It describes where your app crate and frontend live, plus codegen, bundle, and database settings.

[app]
crate = "myapp"                  # the cargo package containing your App

[frontend]
dir = "app"                      # directory with package.json / vite

[codegen]
out = "app/src/bindings.ts"      # where `rata codegen` writes bindings
                                 # (default: "<frontend.dir>/src/bindings.ts")

[bundle]                         # optional; used by `rata bundle`
identifier = "com.example.myapp" # default: "com.example.<app.crate>"
name = "My App"                  # default: <app.crate>
version = "0.1.0"                # default: "0.1.0"
icon = "assets/icon.svg"         # source icon (.svg or raster)
deep_link = "myapp"              # registers myapp:// (Info.plist / .desktop)
description = "A demo app"       # Linux package metadata
maintainer = "Dev <dev@x.io>"    # .deb Maintainer:
publisher = "Example AS"         # Windows: the .exe's company, the installer's publisher

[[bundle.documents]]             # optional, any number: file types the app opens
name = "Kver document"           # what the OS calls it
extensions = ["kver"]            # without the dot
mime = "application/vnd.kver.document+json"  # optional
role = "editor"                  # or "viewer" (default: editor)

[database]                       # optional; used by `rata migrate`
url = "sqlite://app.db?mode=rwc" # supports ${VAR} expansion; else $DATABASE_URL
migrations = "migrations"        # migrations directory (default: "migrations")

Sections

[app]

  • crate (required) — the cargo package name of your binary. rata runs cargo run/build -p <crate>.

[frontend]

  • dir (required) — folder containing package.json / vite.config.js.

[codegen]

  • out — path for the generated bindings.ts.

[bundle]

  • identifier, name, version — bundle metadata for rata bundle (macOS Info.plist, .deb control file, the Windows .exe's version and its installer; the identifier keys the installer's entry in Settings → Apps). Pair the identifier with App::identifier("com.example.myapp"): Windows shows the app's notifications under it (system).
  • icon — source icon, an SVG or a PNG; becomes AppIcon.icns on macOS, the .exe's icon and an .ico on Windows, and hicolor PNGs and the AppImage's icon on Linux. See App icon.
  • deep_link — a custom URL scheme. Written to CFBundleURLTypes on macOS, MimeType=x-scheme-handler/<scheme> in the Linux .desktop entry, and registered by the Windows installer. Pair it with App::deep_link("myapp"); without the bundle entry the OS never routes the URL to your app.
  • [[bundle.documents]] — the app's document types: registered on macOS, in the .deb and by the Windows installer, so the OS opens those files with the app. Pair it with App::opens([..]). See opening documents.
  • description, maintainer — Linux package metadata.
  • publisher — who publishes the app: the Windows .exe's company name and the publisher Settings → Apps shows for its installer.

[database]

  • url — a connection URL; the scheme selects the driver (sqlite:, mysql:, postgres:). ${VAR} occurrences are expanded from the environment. If omitted, rata falls back to the DATABASE_URL env var.
  • migrations — the migrations directory, relative to the project root.

Config at runtime

elyra.toml is a build/tooling descriptor; Config is what your app reads at runtime. Bind it with ConfigProvider and resolve it like any service:

use elyra::config::ConfigProvider;

App::new()
    .provider(ConfigProvider::new().with_default("app.theme", "dark"))
    .commands(commands![..])
    .run()
#[command]
async fn settings(ctx: Ctx) -> Vec<String> {
    let config = ctx.get::<elyra::Config>();
    let url = config.string("database.url").unwrap_or_default();
    let debug = config.bool("app.debug").unwrap_or(false);
    let port: u16 = config.get_or("server.port", 8080);
    let db = config.section("database"); // BTreeMap<String, String>
    vec![url, debug.to_string(), port.to_string(), db.len().to_string()]
}

Sources, lowest priority first

  1. defaults registered with ConfigProvider::with_default / Config::default_value
  2. elyra.toml (tables flattened to dotted keys: [app] crate → app.crate)
  3. config/*.toml (the file stem prefixes its keys: config/services.toml [mail] from → services.mail.from)
  4. .env
  5. real process environment variables

A later source wins, so a shipped default can always be overridden by an env var without rebuilding.

Keys

Dotted and lowercase. Environment variables map in by lowercasing, dropping an ELYRA_ prefix and turning separators into dots:

Env var Key
ELYRA_DATABASE__URL database.url
DATABASE_URL database.url
APP__DEBUG app.debug

${VAR} (and $VAR) inside a value is expanded from the environment, matching what rata already does for [database] url.

Accessors

raw · string · get::<T>() · get_or · bool (1/true/yes/on) · int · has · section(prefix) · all() · set · default_value.

The app's configuration, checked at start

Some calls on App need another one: stay_in_tray() needs a tray, Backend::notifications(), presence(..) and listen(..) need broadcasting, UpdaterConfig::from_backend(..) needs a backend, an updater needs a way to verify what it downloads, a command's middleware names must resolve, and the app's and the tray's icons must be readable PNGs, each named icon named once (RFC 0028), and each of the menu's ids used once, its items and submenus labelled (RFC 0055). Elyra checks all of them before anything starts, and reports them together (RFC 0025):

Error: the app's configuration has 2 problems:
  - App::stay_in_tray() needs a tray: add .tray(TrayConfig::new()..), or the app would run with no way to reach it
  - Backend::listen(..) needs broadcasting to listen to the channels: add .broadcasting(Broadcasting::pusher(key)) to the Backend

App::run() returns them as Error::Config (so fn main() -> elyra::Result<()> prints the list and exits non-zero), App::prepare() panics with them, and App::problems() lists them without starting anything, for a test. What a provider binds (the database for Backend::offline(), an assistant) is checked once the providers have run.

Environment variables

Variable Read by Purpose
ELYRA_DEV_URL the app, debug builds only Load the webview from this URL (set by rata dev); also the only origin that gets CORS. A release build ignores it
ELYRA_CODEGEN_OUT the app Write bindings and exit (set by rata codegen)
ELYRA_MIGRATE the app up / down / status — migrate (Rust migrations and the SQL files) and exit; rata migrate sets it when the project has Rust migrations
ELYRA_MIGRATIONS_DIR the app The SQL migrations directory for ELYRA_MIGRATE (default migrations; set by rata migrate)
ELYRA_SEED the app Run registered seeders and exit
ELYRA_LOG the app Log level: error/warn/info/debug/trace/off
DATABASE_URL rata migrate, the app Fallback DB URL when [database].url is unset

ELYRA_DEV_URL and ELYRA_CODEGEN_OUT are normally set for you by the CLI; you rarely set them by hand.

Related