Skip to main content

Architecture at a glance

One container is the computer. One port serves the desktop + API. The browser is the display.

browser tab
pixels · input
Layer 2 · clientCompositor + Display

window manager · z-order · focus · input routing · taskbar

▲ system handle — the seam (brief 48)
first-party
23 apps
Layer 3 · client + routesApps

import nothing from core · receive a capability handle at mount

▼ HTTP / WS — data, never pixels
the machine
Alpine Linux
Layer 1 · serverKernel + Userland

NestJS = the syscall bridge · FS · PTY · /proc · git · http-proxy

The layer stack above is the shape; this is the wiring. Note that the three things on the right are real — a real PTY, a real filesystem, a real home volume — which is the claim the whole project rests on — open full screen, where search, tracing and the guided views are usable.
The load-bearing idea

The compositor is client-side by necessity — rendering happens in the browser. The server streams data (PTY bytes, FS, /proc), never pixels. A server-side compositor would mean VNC, which breaks the slim-image, real-DOM soul.

The seam​

Each app gets an injected system handle at mount and imports nothing from core — like a Wayland client connection or VS Code's ExtensionContext. Same app code, whether the handle is backed by direct calls (today) or a sandboxed iframe (later). The SystemHandle interface is the protocol — and once it lands it appears in the Core reference.

Can't cross postMessage

A component or hook → it's a library (@imbatranim/ui). Build-time import, not a capability.

Can cross postMessage

A data call or effect → a capability on the handle: fs, http, window, intents, notify, on.

We deliberately don't build​

No package manager

manifest.ts is the package system until apps come from outside the repo.

No session daemon

Auth + the per-tab ephemeral session is the session manager.

No app-to-app IPC

Star topology: apps talk to the compositor and the kernel, never each other.

note

Full detail: Architecture · OS layering · Decisions.