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#
| # | Decision | Summary | Status |
|---|---|---|---|
| 0001 | Tauri as the desktop shell | Use 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 small | Accepted |
| 0002 | Canvas 2D, no WebGL requirement | Render 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 hardware | Accepted |
| 0003 | Shoelace as the design system | Vendor Shoelace (autoloader, components, themes, a subset of icons) and theme it with a small token layer, instead of writing every control | Accepted |
| 0004 | Plain ES modules, no framework, no build step in development | Native modules with a tiny hyperscript helper, an event emitter and explicit panel and tool classes. app/ is served as is; production bundles with esbuild | Accepted |
| 0005 | Scene graph compiled to a display list | Nodes 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 exports | Accepted |
| 0006 | .ofini is a ZIP of JSON plus assets | document.json, original image bytes, one PNG per pixel layer and a thumbnail, inspectable with standard tools | Accepted |
| 0007 | English text is the translation key | t("English text") with a generated catalog; untranslated strings fall back to English, and adding a language is one JSON file | Accepted |
| 0008 | Vibe hub | Concurrent chats with a fair document write lock and tag-based run undo, so several chats and sub-agents can work without interleaving inside a step | Accepted |
| 0009 | Bundled extensions are data | Packed from source into .ofext packages and a catalog, installed on demand through the normal consent dialog; none is enabled by default | Accepted |
| 0010 | Collaboration through a dumb relay with end-to-end encryption | Rooms 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 server | Accepted |
| 0018 | Built-in relay, FTP/FTPS and SMTP in the desktop shell | The 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 in | Accepted |
| 0025 | A terminal in the Code studio without a shell or PTY | The 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 only | Accepted |
Write a new ADR#
- Copy the format of an existing record: title
NNNN: Decision,Status,Context,Decision,Consequences. - Use the next number, keep it short (a page), and state the alternatives you rejected and why.
- Add a row to
docs/adr/README.mdand to the table on this page. - 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