Skip to Content

Architecture

One Hono service and its worker on a Sprite with SQLite, a sandboxed workshop Sprite, an Expo app for web, iPhone and Android, and a static site, all in one repo.

Your web app, iPhone and Android talk to the rusuban-agent Sprite (HTTP API, worker, SQLite); QStash wakes it; the site reads the redacted feed; the worker sends signed jobs to the workshop Sprite; both reach your accounts only through Sprites connectors
The whole system.

The agent (apps/agent)

PieceBuilt with
HTTPHono on Node 24, one process, port 8080: /api (device token), /pair, /public, /hooks/tick, /s/<token>, /health
DataSQLite on the Sprite's disk (better-sqlite3, WAL, a 5-second busy timeout), Drizzle migrations run at boot
Workan in-process worker that only runs while something woke the Sprite: due timers, the outbox, model runs, sorting, meeting prep, money evidence, visitor drafts
BrainVercel AI SDK 7 ToolLoopAgent, provider chosen from the gateway list (Models)
Live updatesan append-only events table, replayed and streamed over Server-Sent Events with a ping every 15 seconds; events kept 7 days
PushExpo push for iPhone and Android, web push with VAPID keys made on the Sprite
Deployan esbuild bundle with dependencies installed on the Sprite (npm ci, Linux builds), then a checkpoint

Handlers only write rows; the worker does the work. A tick answers 202 and then drains. Every outward effect goes through the outbox, which claims, re-checks and runs each send once.

The workshop (apps/workshop)

A second Hono service on its own Sprite. Every route but /health checks an HMAC signature from the agent (method, path, time, body hash; five minutes either way; each request once). One job at a time: unpack the repo, install dependencies with scripts off, run Codex or Claude Code in a sandbox with capabilities dropped and a minimal environment, return the changed files and steps. Code tasks.

The app (apps/app)

PieceBuilt with
FrameworkExpo SDK 58, Expo Router, React Native 0.88, one code base for web, iOS and Android
Weba single-page export (web.output: "single") served as static files
Navigationnative tabs on phones; a sidebar and slide-over panels on the web; native sheets for details
DataTanStack Query for every resource, one live event stream patching the cache, Home, Approvals and the list of chats kept on the device for 24 hours
ChatAI SDK useChat streaming from the agent, resumed when you come back
LookNativeWind (Tailwind) on Rusuban's design tokens, Figtree, real service logos

The site (apps/site)

Next.js 16 static export with Fumadocs for these docs, Tailwind 4 and Motion. The live feed is fetched in the browser from the agent's public endpoint every 20 seconds while it's on screen. The site also serves install.sh, the release tarballs, and latest.json with each tarball's SHA-256.

The repo

packages/shared holds every constant (undo windows, cadences, limits) and the shared types; packages/sprites the gateway client, Tasks leases, checkpoints and request signing; packages/brand the design tokens and service logos.

On this page