Managed Databases & Storage Overview
Provision and manage Cloudflare D1 (Edge SQLite), Neon Serverless Postgres, and Supabase directly in BhaiCode.
BhaiCode includes built-in database provisioning so you can add persistent storage without leaving your workspace.
Supported Engines
| Engine | Type | Best For | Default Tooling |
|---|---|---|---|
| Cloudflare D1 | Edge SQLite | Ultra-fast reads, content management, lightweight apps | Drizzle ORM |
| Neon Postgres | Serverless PostgreSQL | Relational schemas, branch-based testing, autoscaling | Drizzle ORM, Prisma, @neondatabase/serverless |
| Supabase | PostgreSQL + BaaS | User authentication, storage buckets, realtime features | @supabase/supabase-js, Drizzle ORM |
Automated Setup
When you provision a database in Cloud Studio:
- Credentials are bound to project environment variables (
DATABASE_URL, API keys). - Client libraries and ORM configuration are installed.
- When you describe data models in chat, Bhai creates and runs the SQL migrations automatically.