cd /news/developer-tools/show-hn-cloudflarebase-open-source-f… · home topics developer-tools article
[ARTICLE · art-77830] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Cloudflarebase – open-source Firebase alternative on Cloudflare

Cloudflarebase, an open-source Firebase alternative that runs entirely on a user's Cloudflare account, has been released. Each project gets its own Durable Object running Better Auth on embedded SQLite, plus a dashboard with live counters, analytics, an AI copilot, and a generated API reference. Auth is the first primitive, with database, storage, and more to follow.

read2 min views1 publishedJul 28, 2026
Show HN: Cloudflarebase – open-source Firebase alternative on Cloudflare
Image: source

Live demo ·

Deploy your own·

Contributing

An open-source Firebase alternative that runs entirely on your Cloudflare account. Each project gets its own Durable Object running Better Auth on embedded SQLite, plus a dashboard with live counters, analytics, an AI copilot, and a generated API reference.

Auth is the first primitive. Database, storage, and the rest will follow the same shape.

git clone https://github.com/cloudflarebase/cloudflarebase.git
cd cloudflarebase
npm install
npm run dev

Open http://localhost:5173/dashboard. There are no secrets to set up. Local dev runs in demo mode, so you get a throwaway project without signing in.

Two Workers. The agent goes first because the dashboard binds to it by name (Cloudflare's deploy button does one Worker per click).

Or from a clone: npm run deploy:all

.

Then open the dashboard and create the first account. That account owns the console and sign-up closes behind it. Your install is private by default.

A deployment trusts its own origin automatically, so sign-in works right after deploy with nothing to configure. If you serve the console from another domain or call the API from other apps, add those origins to TRUSTED_ORIGINS

(the CSRF allowlist) or per project under Settings.

Optional extras, all off until configured: Google/GitHub sign-in, email delivery, Sentry, and analytics SQL reads (CF_ACCOUNT_ID

CF_ANALYTICS_API_TOKEN

with Account Analytics Read).

The console is optional. The agent is a normal npm package, and the CLI wires it into an existing Worker project:

npm install -g @cloudflarebase/cli

cloudflarebase init my-backend   # or `cloudflarebase add auth` in an existing project
cd my-backend
npx wrangler login
cloudflarebase deploy            # sign-in works right away

add

merges the agent's wrangler config into yours without overwriting anything you set, exports the Durable Object class from your entrypoint, and adds a type assertion so a missing binding fails at compile time with its name.

The API is Better Auth, so its client works as-is:

import { createAuthClient } from 'better-auth/client';

const authClient = createAuthClient({
	baseURL: 'https://your-dashboard.workers.dev/api/projects/my-app/auth'
});

await authClient.signUp.email({ name, email, password });

Browsers get a cookie; everything else uses the set-auth-token

bearer token. Add your app's origin under the project's Settings tab first. Each project also serves an OpenAPI 3.1 document at /api/projects/<id>/openapi.json

, rendered in the dashboard under API Reference.

npm run check   # svelte-check
npm run lint    # prettier + eslint
npm test        # Playwright against real workerd

Report vulnerabilities privately via SECURITY.md. Keep DEMO_MODE

unset anywhere real users live.

Apache-2.0. Cloudflarebase is an independent project, not affiliated with or endorsed by Cloudflare, Inc. See NOTICE.

── more in #developer-tools 4 stories · sorted by recency
── more on @cloudflarebase 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-cloudflareba…] indexed:0 read:2min 2026-07-28 ·