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

Printing

An Elyra app prints the window, or a part of it, with the system's print dialog, the same on macOS, Windows and Linux, and makes a PDF of it without one (RFC 0062). What prints is made for paper: the light theme, no app chrome, @elyra/ui's components in their print form.

<script>
  import { print, onPrint } from "@elyra/runtime";
  import { Button } from "@elyra/ui";

  let invoice;
  // File → Print… (⌘P) prints the invoice, not the list around it.
  onPrint(() => print({ element: invoice }));
</script>

<Button onclick={() => print()}>Print…</Button>
<Button onclick={() => print({ element: invoice })}>Print the invoice…</Button>

<article bind:this={invoice}>…</article>

print(options?)

  • The system's dialog for the window that asked: wry's print, an NSPrintOperation on macOS (where a page's own window.print() does nothing), WebView2's on Windows, GTK's on Linux. It resolves once the dialog is up; whether the user printed isn't said.
  • window.print() is routed here in the shell, so code that already calls it prints on macOS too.
  • element prints that part of the page alone: everything around it is hidden while it prints, and the part is let out of its scroller and its dialog.
  • Outside the shell (a browser, rata dev in one), it's the browser's print, with the same preparation.
  • Under Capability::Window (/__window/print); a read-only window, a Quick Look, may print.

pdf(options?)

The page, or a part of it, as a PDF without a dialog: what print() would print, laid out by the webview on pages of the size asked for.

<Button onclick={async () => files.save(await pdf({ element: invoice }), { defaultName: "Invoice 1042.pdf" })}>
  Save as PDF…
</Button>
Option Default
element the whole page As print()'s.
paper "a4" Or "letter".
landscape false Turned on its side.
margins 10 mm each { top, right, bottom, left }, in millimetres.
  • How: an NSPrintOperation that saves to a file (macOS), WebView2's PrintToPdf (Windows), WebKitGTK's print to GTK's file printer (Linux); the shell reads the file back and removes it. The bytes come as they are (application/pdf).
  • The page is put back as soon as the PDF is made: there's no dialog to wait for.
  • Backgrounds print where the page asks (print-color-adjust: exact), as on paper.
  • Only in the shell: in a browser, pdf() rejects (a browser makes a PDF only through its print dialog).
  • Under Capability::Window (/__window/pdf), like print.

What prints

While it prints, <html> has data-theme="light" (and data-elyra-printing), so the app's light tokens are what paper gets; <html data-print-theme="current"> keeps the window's theme instead. The page is put back when the dialog is closed (afterprint, or the first touch of the page after it).

  • data-print="hide" on what never prints (a filter bar, a hint); data-print="only" on what only paper shows (a letterhead, a signature line).
  • @elyra/ui: AppShell prints its content alone, as long as it is (no toolbar, sidebar or status bar). Table prints the rows it has loaded with the head repeated on each page and no row split, without its search, selection, actions, paging or resize grips. Card and Stat aren't split across pages. A Modal prints as its page, without the room behind it.
  • The runtime's own layers (toasts, the ⌘K palette, the context menu, About, the assistant, the inspector) don't print.
  • Charts (@elyra/charts) redraw at once in the light colours, with no animation; a zoomed chart prints its window.
  • Everywhere: no shadows, no motion; a link to the web shows its address.

The app's own CSS adds to this with @media print, as on the web.

For a document of pages, with a header, a footer and "Page 2 of 5" on each, put it in a Report (RFC 0064) and print or make a PDF of report.element(): its paper is the dialog's and the PDF's, and its margins the only ones.

File → Print…

SystemItem::Print in a menu (.system(SystemItem::Print)) is "Print…" with ⌘P / Ctrl+P, in the framework's words (elyra.menu.print). It asks the window in front: with onPrint handlers, they run; without, the window prints. Only a menu that adds it has it: an app with nothing worth printing doesn't offer ⌘P.

Submenu::new("File")
    .item_accel("file.new", "New", "CmdOrCtrl+N")
    .separator()
    .system(SystemItem::Print)