Architecture at a glance
One container is the computer. One port serves the desktop + API. The browser is the display.
pixels · input
window manager · z-order · focus · input routing · taskbar
system handle — the seam (brief 48)23 apps
import nothing from core · receive a capability handle at mount
Alpine Linux
NestJS = the syscall bridge · FS · PTY · /proc · git · http-proxy
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.
Full detail: Architecture · OS layering · Decisions.