> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chardb.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CharDB

> Better Auth-owned SQLite and live queries inside a Cloudflare Worker.

# 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](https://docs.chardb.dev/plan-ahead.md) before using CharDB with data you cannot recreate.

> [card] [Run the starter](https://docs.chardb.dev/quickstart.md)
>
> Generate the exact starter and run it through Miniflare.

> [card] [Set ownership](https://docs.chardb.dev/ownership.md)
>
> Choose organization, organization-and-user, or user ownership.

> [card] [Connect a client](https://docs.chardb.dev/clients.md)
>
> Use registered queries and mutations from React or Rust.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.