Turn your Drizzle ORM schema into a live Cloudflare D1 database + REST API in seconds.
No backend. No boilerplate. Just define your schema and deploy.
- 🧩 Paste your Drizzle ORM schema
- 🗄️ Auto-provision Cloudflare D1 database
- ⚡ Generate instant REST APIs
- 🔄 Built-in migrations system
- 📊 Visual data explorer
- 📜 Real-time query & request logs
- 🚀 Deploy in seconds
-
Write your schema using Drizzle ORM
-
Deploy it via MyDBSpace
-
We:
- Create a D1 database
- Apply migrations
- Generate REST endpoints
-
You get a live API like:
GET /users
GET /users/:id
POST /users
PUT /users/:id
DELETE /users/:id
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
export const users = sqliteTable("users", {
id: integer("id").primaryKey({ autoIncrement: true }),
name: text("name").notNull(),
email: text("email").notNull().unique(),
createdAt: integer("created_at").notNull(),
});
export const posts = sqliteTable("posts", {
id: integer("id").primaryKey({ autoIncrement: true }),
title: text("title").notNull(),
content: text("content"),
authorId: integer("author_id")
.notNull()
.references(() => users.id),
});Base URL:
https://<project-id>.xyz.example.com
GET /users
GET /users/:id
POST /users
PUT /users/:id
DELETE /users/:id
GET /posts
GET /posts/:id
POST /posts
PUT /posts/:id
DELETE /posts/:id
- Write & validate Drizzle schema
- Live table preview
- Relationship visualization
- Browse tables
- Insert / edit / delete records
- Filtering & search
- Real-time API + SQL logs
- Debug slow queries
- Inspect requests/responses
- Auto-generated migrations
- Apply / rollback changes
- View SQL diffs
- Auto-generated REST routes
- Try-it-out API explorer
- Frontend: React + Tailwind + shadcn/ui
- Backend: Cloudflare Workers
- Database: Cloudflare D1 (SQLite)
- ORM: Drizzle ORM
- API Layer: Auto-generated REST
git clone https://github.com/yourusername/MyDBSpace
cd MyDBSpace
npm install
npm run devCLOUDFLARE_API_TOKEN=
CLOUDFLARE_ACCOUNT_ID=
D1_DATABASE_NAME=
BASE_DOMAIN=xyz.example.comDeploy using Cloudflare Workers:
npm run deploy- GraphQL API support
- Auth & RBAC
- Rate limiting
- Multi-region replication
- Webhooks
- OpenAPI / Swagger export
PRs are welcome. For major changes, open an issue first.
MIT