Skip to main content

A real database inside your Worker

CharDB gives a Cloudflare Worker a typed database binding. The Worker owns Better Auth, Durable Object storage, and registered operations. This repository includes React and Rust clients that call those operations through the Worker’s public URL. The generated app includes organization messages, live queries, and an authenticated R2 attachment path. Generate it first. Its schema, tests, Wrangler config, and deployment scripts are the reference application. Review the operational limits in Plan ahead before using CharDB with data you cannot recreate.

Run the starter

Generate the exact starter and run it through Miniflare.

Set ownership

Choose organization, organization-and-user, or user ownership.

Connect a client

Use registered queries and mutations from React or Rust.