OpenFini

Docs / Develop

Decision Records

Architecture decision records (ADRs) capture the decisions that shape OpenFini and are hard to reverse. They live in docs/adr/ in the repository; this page indexes them with a short summary of each. New decisions get the next number; superseded ones stay in place and are marked as such.

Index#

#DecisionSummaryStatus
0001Tauri as the desktop shellUse Tauri v2 with the operating system's web view and ship the same web app as a PWA. The frontend uses no Tauri npm packages: app/src/platform talks to injected globals, so one code base runs in a browser too. Installers stay smallAccepted
0002Canvas 2D, no WebGL requirementRender with Canvas 2D only. Vector content is drawn with Path2D; groups are isolated into pooled offscreen canvases only when needed; adjustments run on the viewport region. Works on old and low-power hardwareAccepted
0003Shoelace as the design systemVendor Shoelace (autoloader, components, themes, a subset of icons) and theme it with a small token layer, instead of writing every controlAccepted
0004Plain ES modules, no framework, no build step in developmentNative modules with a tiny hyperscript helper, an event emitter and explicit panel and tool classes. app/ is served as is; production bundles with esbuildAccepted
0005Scene graph compiled to a display listNodes compile to a backend-neutral display list (paths, images, text runs, groups), cached per node revision and independent of zoom. Canvas, SVG and PDF backends consume only it, so what you see is what exportsAccepted
0006.ofini is a ZIP of JSON plus assetsdocument.json, original image bytes, one PNG per pixel layer and a thumbnail, inspectable with standard toolsAccepted
0007English text is the translation keyt("English text") with a generated catalog; untranslated strings fall back to English, and adding a language is one JSON fileAccepted
0008Vibe hubConcurrent chats with a fair document write lock and tag-based run undo, so several chats and sub-agents can work without interleaving inside a stepAccepted
0009Bundled extensions are dataPacked from source into .ofext packages and a catalog, installed on demand through the normal consent dialog; none is enabled by defaultAccepted
0010Collaboration through a dumb relay with end-to-end encryptionRooms use a relay that forwards opaque encrypted frames (or a same-device channel); keys travel only in the invite's URL fragment; no accounts and no OpenFini serverAccepted
0018Built-in relay, FTP/FTPS and SMTP in the desktop shellThe desktop app runs the collaboration relay (plain ws://) and FTP/FTPS and SMTP clients in Rust with the system TLS stack and trust on first use; no Node.js needed. Browsers keep the Node relay and helper; SFTP is not built inAccepted
0025A terminal in the Code studio without a shell or PTYThe Code studio's Terminal tab runs one program with arguments per line in the project folder through the same no-shell command, allow and deny lists, time limit and output cap as the assistant's run_command; desktop onlyAccepted

Write a new ADR#

  1. Copy the format of an existing record: title NNNN: Decision, Status, Context, Decision, Consequences.
  2. Use the next number, keep it short (a page), and state the alternatives you rejected and why.
  3. Add a row to docs/adr/README.md and to the table on this page.
  4. Mark a superseded record as such instead of deleting it.

Write an ADR for decisions that are hard to reverse: a new dependency, a file-format change, a security model, a new platform layer.

See also#

Edit on GitHub → wiki/Decision-Records.md