Open Source · MIT License
Open-source edge-native BaaS.
Low cost. Low latency. Scale-out by design.
Open-source edge-native BaaS for Database, Auth, Storage, Functions, Room, and Admin UI.
Same app, same behavior — local, self-hosted, or global edge.
npm create edgebase@latest my-appChoose Your Path
Start with the angle you care about most: why the architecture matters, how to ship fast, how to extend the platform, or where to find the exact API surface.
Why EdgeBase
Understand cost, scaling, physical isolation, and why this architecture behaves differently from server-centric BaaS platforms.
Getting Started
Initialize a project, wire up auth and database, and ship your first backend without deciding infrastructure first.
SDKs
Choose the right client or admin surface, compare language coverage, and see the runtime verification matrix.
Plugins
Install, configure, or author plugins with lifecycle hooks, config injection, migrations, and runtime APIs.
Architecture
Study request routing, security boundaries, deployment internals, and the control-plane pieces behind the product.
API Reference
Jump straight to the REST surface for auth, database, storage, database subscriptions, functions, admin, and system endpoints.
Why Lower Cost at Scale?
Auth MAU billing and transfer charges are two of the biggest cost drivers at scale. EdgeBase removes the first, avoids separate egress and bandwidth fees on the Cloudflare edge stack it builds on, and keeps realtime inside DO compute instead of turning it into a per-recipient bill.
| 1M MAU scenario | Firebase | Supabase | Appwrite | EdgeBase |
|---|---|---|---|---|
| Auth | $4,415 | $2,925 | $2,400 | $0 |
| Egress (100 TB) | $12,000 | $8,978 | $14,700 | $0 |
| DB Subscriptions (900M msg) | $5,400 | $2,263 | $630 | $0 |
| DB + Compute + Storage | $233 | $131 | $136 | $149 |
| Total | $22,048/mo | $14,297/mo | $17,866/mo | ~$149/mo |
1M MAU social app scenario — ~$149/mo. $5/mo is account-level — one subscription covers unlimited projects. Self-hosted (Docker / Node.js): VPS cost only.
Why ~0ms Cold Starts?
V8 isolates at 300+ edge cities worldwide. No container boot, no runtime warm-up.
| Firebase | Supabase | Appwrite | EdgeBase | |
|---|---|---|---|---|
| Cold start | Seconds | ~1s | ~1s | ~0ms |
| Edge locations | ❌ single region | ❌ single region | ❌ single region | 300+ cities |
Why Scale-Out by Design?
Split data across independent DB blocks — per user, per workspace, per tenant, however you design it — without redesigning around a central app-server bottleneck.
Isolated DB Blocks
Dynamic DB blocks can give each user, workspace, or tenant its own isolated SQLite-backed Durable Object. Heavy traffic in one workspace does not slow down another.
DB Blocks — Physical Isolation
db('user', id) — per-user, per-workspace, or per-company. Each gets an independent database. Zero config sharding.
Shared DB Block + JOIN
Tables in the same DB block share one SQLite backing database, enabling SQL JOINs. Single-instance blocks can default to D1, while isolated multi-tenant blocks stay on Durable Objects.
Everything Built In
Database · Auth · Storage · Functions · Room · Admin UI — no third-party services needed.
Database
SQLite across D1 and Durable Objects — full SQL, JOINs, transactions, FTS5 full-text search (CJK included), automatic schema migrations, UUID v7 cursor pagination, plus PostgreSQL-backed static blocks when you need them.
Authentication
Email/password, magic link, phone/SMS, MFA, 14 OAuth providers (Google, GitHub, Apple, Discord, Kakao, Naver & more), anonymous auth — $0 forever, no MAU charges.
Database Subscriptions
WebSocket live queries via onSnapshot with server-side filters. Hibernation API keeps idle connections at $0.
Storage
R2-based file storage with $0 egress, signed URLs for upload & download, multipart uploads, and bucket-level access rules.
App Functions
DB triggers, HTTP endpoints, cron schedules, and auth hooks (beforeSignUp, afterSignIn, beforePasswordReset) — all server-side TypeScript.
Access Rules
Deny-by-default TypeScript access rules with auth, resource, request, and context accessors. No eval(), bundled directly into the runtime.
One Codebase, 3 Deploy Modes
The same code runs identically everywhere — no rewrites, no vendor lock-in.
Cloudflare Edge
npx edgebase deploy- ~0ms cold start
- 300+ global cities
- Auto-scaling
- From $5/month (all projects)
Docker
npx edgebase docker run- Full data ownership
- Single container
- Volume persistence
- VPS cost only
Node.js
npx edgebase dev- Zero dependencies
- Dev & production
- Local filesystem
- Free
30+ SDK packages across 14 languages
Client and admin SDKs generated from the same API contract.
At a Glance
| Firebase | Supabase | PocketBase | EdgeBase | |
|---|---|---|---|---|
| Deploy | Managed | Managed | Self-host | Edge / Docker / Node |
| Cold Start | Seconds | ~1s | 0ms | ~0ms |
| Auth Cost | $275/100K | $25/mo | Free | Free |
| Egress | $0.12/GB | $0.09/GB | Server | $0 |
| Self-Host | ❌ | ⚠️ Complex | ✅ | ✅ 3 ways |
| Multi-Tenancy | Manual | RLS manual | Manual | DB blocks (1 line) |
| FTS | ❌ | pg_trgm | ❌ | FTS5 (CJK) |
| KV / D1 / Vector | ❌ | ❌ | ❌ | ✅ |
| License | Proprietary | Apache-2.0 | MIT | MIT |
Ready to Build?
Your backend is 30 seconds away.