diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-06 00:24:21 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-06 00:24:21 +0200 |
| commit | e62227914a539dbc7d7c03922173ffd9d45b585a (patch) | |
| tree | be6852ba0c255162e874a89818517c98076be665 /AGENTS.md | |
| parent | 44d8c4c8764d49a8e8d0ae713432c07f07cb7597 (diff) | |
| download | opencut-e62227914a539dbc7d7c03922173ffd9d45b585a.tar.gz | |
docs: document rust/apps architecture in AGENTS.md
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,13 +1,19 @@ # Agents.md -## Apps +## Architecture -- Web -- Desktop +An ongoing migration is moving all business logic into `rust/`. Each app under `apps/` is a UI shell — it owns rendering, interaction, and platform-specific concerns, but never owns logic. The UI framework for any given app is a replaceable detail. -## Rust +### `rust/` -Shared code between apps live in `rust/`, not in `packages/` +The single source of truth for all non-UI code. Everything platform-agnostic belongs here: no components, no hooks, no framework imports. + +### `apps/` + +Each app is a frontend that calls into Rust. Logic is never duplicated between apps — only UI is, because each platform may use an entirely different framework and language to build it. + +- `web/` — Next.js +- `desktop/` — GPUI ## Web |
