Deploy to Cloudflare
Get the code
git clone https://github.com/flarepanel-dev/flarepanel.git
cd flarepanel
bun install
bunx wrangler loginCreate the resources
bunx wrangler d1 create flarepanel
bunx wrangler queues create flarepanel-jobs
bunx wrangler queues create flarepanel-jobs-dlq
bunx wrangler r2 bucket create flarepanel-eventsPut the D1 database id from the first command into apps/worker/wrangler.jsonc (d1_databases[0].database_id).
Point it at your domains
In apps/worker/wrangler.jsonc, set the routes custom domain and the API_URL, DASHBOARD_URL and CUSTOM_COOKIE_DOMAIN vars. In apps/start/wrangler.jsonc, set the dashboard's custom domain and the same two URLs.
Add the secrets
cd apps/worker
openssl rand -hex 32 | bunx wrangler secret put COOKIE_SECRET
openssl rand -hex 32 | bunx wrangler secret put AUTH_SECRETCosts
Idle projects cost nothing: no alarms run once their sessions have ended. Each tracking request is one Worker request and one Durable Object request; events are written in batches, so storage writes stay well below one row per event at steady traffic. Set per-Worker CPU limits and a billing alert in your Cloudflare account.
To send account emails, onboard your domain under Compute → Email Service → Email Sending (or wrangler email sending enable your-domain.com) and keep the send_email binding in apps/worker/wrangler.jsonc. Workers Paid includes 3,000 emails a month.