Introduction
TapeDB is a TypeScript database library for Cloudflare. Describe your models once; tapedb init provisions one Durable Object class and two R2 buckets in your own account. Each workspace gets its own SQLite database inside a Durable Object, every write is appended to a transaction log, the log ships to R2, and a cold start replays it. Reads can be awaited once or kept live over a WebSocket; writes are optimistic and survive going offline.
Quick start
Section titled “Quick start”npx tapedb init # schema, worker, wrangler config, first migrationnpx tapedb dev # local database with a dev claim routenpx tapedb studio # local table browser on http://127.0.0.1:4400The package is not published yet, so these commands describe the intended flow. Setup & entry points covers what init provisions and which entry point to import.
TapeDB runs in your own Cloudflare account. Your application supplies identity; TapeDB manages workspace data, access rules, migrations, files, presence and recovery. React hooks are available through tapedb/react.