IdealOS

Database-Centric Desktop OS — Feature List

Snapshot of the living doc as of 2026-11-20. The live, commentable version is at https://claude.ai/artifact/TPqCusvLEnsRnSztbSBtas; the implementation plan is in implementation-plan.md.

Vision

A research desktop OS built around one question: what would a desktop look like if a persistent, versioned, syncable database replaced the filesystem?

Decisions made

These choices are settled. The implementation plan builds on them.

Area Decision
Linux base Minimal Linux; init and libc are implementation details
OS image Immutable, read-only root with A/B update partitions; only the database is writable
Users Single user
Legacy apps No existing GUI apps; CLIs and system utilities reused under the hood
Display protocol New protocol built on message passing; assumes GPU acceleration
Graphics WebGPU (wgpu) on DRM/KMS; fast 2D first, effects later
Compositor model Scene graph, thick: owns widgets, input, scrolling, text editing
Text Compositor shapes and lays out all text
Window management Standard overlapping windows plus workspaces
Data model Schemaless documents plus system-defined common schemas
Storage SQLite
Versioning CRDT per document; undo anything, anywhere
Sync Designed in via CRDTs; built later
Links First-class links between documents, with graph-style queries
Queries TypeScript query filter, live subscriptions, full-text search
Blobs Content-addressed, deduplicated, versioned with their document
Import and export Importers turn files into records; records export back to files
Permissions Apps start with none, including network access; runtime prompts; grants by type, collection or rule; apps own what they create; revocable and audited
Message bus JSON, request/response plus pub/sub; the bus is the permission broker
Core language Rust
App language TypeScript on QuickJS, one process per app
App UI SolidJS-style signals
App install Apps are database documents
Browser engine Servo, shown through an external-surface node
Shells Both a raw Linux shell and a database-aware shell
Chat Dummy chat service for testing; real protocols later
Networking Existing network daemon, controlled by Settings over the bus
Backup Backup and snapshots are early features
Repo One monorepo: Rust workspace plus TypeScript apps

Architecture overview

┌────────────────────────────────────────────────────────────────────────┐
│ Apps · TypeScript on QuickJS, one process each                         │
│ [Settings] [Documents] [Terminal] [Editor] [Email] [Music] [Chat] [Browser]
└───────────────────────────────────┬────────────────────────────────────┘
                                    │ SDK calls, UI trees, input events
┌───────────────────────────────────┴────────────────────────────────────┐
│ Message bus · JSON request/response + pub/sub · permission broker      │
└───────┬─────────────────┬──────────────────┬─────────────────┬─────────┘
┌───────┴───────┐ ┌───────┴───────┐ ┌────────┴──────┐ ┌────────┴────────┐
│ Compositor+WM │ │ Database      │ │ Permissions   │ │ System services │
│ wgpu scene    │ │ Loro CRDT docs│ │ grants by type│ │ network, audio  │
│ thick widgets │ │ SQLite + FTS5 │ │ runtime prompt│ │ email sync, chat│
│ windows, wksp │ │ live queries  │ │ audit, revoke │ │ importers       │
│ Servo surfaces│ │ blobs, history│ │               │ │ backup          │
└───────┬───────┘ └───────┬───────┘ └────────┬──────┘ └────────┬────────┘
┌───────┴─────────────────┴──────────────────┴─────────────────┴─────────┐
│ Minimal Linux base                                                     │
│ DRM/KMS · libinput · PipeWire · network daemon · CLIs · RO root, A/B   │
└────────────────────────────────────────────────────────────────────────┘

Apps never talk to services directly. Every message crosses the bus, which checks the sender’s grants before delivering it. The compositor and the database are peer services behind the bus.

Phase 0: Bring-up

Goal: boot to pixels. The compositor draws a scene graph on screen in both QEMU and on the Pi.

Phase 1: Core OS (MVP)

Goal: a working system where TypeScript apps run in windows, read and write the database through the bus, and ask for permissions.

Message bus

Database service

Permissions

App runtime

Compositor and window manager

Shell UI

First apps

Phase 2: Daily driver

Goal: the author can use the system every day for writing, mail, music, chat and browsing, without losing data.

Phase 3: Later

Technical risks and early spikes

Each of these should be prototyped before the plan relies on it.

Risk Why it matters Spike
wgpu output to KMS wgpu does not present to KMS directly Render to a texture, export a dmabuf, import it as a KMS framebuffer and page-flip; fall back to copying into a dumb buffer on lavapipe
GPU in QEMU on macOS Vulkan pass-through is unreliable on macOS hosts Confirm lavapipe works on plain virtio-gpu, then try virgl GLES through UTM
Pi 4 GPU limits V3DV is Vulkan 1.2 with low fill rate Measure frame time at 1080p with 20 or more windows; set downlevel wgpu limits
Servo on aarch64 Servo renders with its own GL stack, separate from wgpu Build Servo for the Pi and share its frames with the compositor as dmabufs
CRDT plus SQLite Two copies of each document must stay consistent and fast Benchmark Loro writes plus JSON updates and FTS5 indexing on the Pi
Live query cost Re-running queries on every change can get expensive Start by re-running queries; add incremental updates where needed
QuickJS memory and speed 8 or more app processes on the Pi Measure resident memory per app and signal-update throughput
Gmail API access Needs a Google Cloud OAuth client; restricted Gmail scopes in an unverified app stay in testing mode, which limits test users and shortens how long sign-ins last Register an OAuth client, sign in from the device, sync one mailbox, and check how long the refresh token lasts

Open questions for the implementation plan