Quickstart

Run Bellcast locally in a few minutes, send your first notification, and open the inbox.

Install

terminal
git clone https://github.com/pawanhirumina/bellcast.git
cd bellcast
pnpm install

Configure

For local development you can skip Supabase entirely by using the file-backed store. Create apps/web/.env.local:

apps/web/.env.local
BELLCAST_DEV_STORE=1
BELLCAST_API_KEY=dev-key

Without BELLCAST_DEV_STORE the app expects SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY and BELLCAST_API_KEY. See self-hosting for the full environment table.

Run

terminal
pnpm dev

Open http://localhost:3000. Enter the API key when asked — for the dev store that is dev-key. You can also deep-link straight into a signed-in session with http://localhost:3000/connect#key=dev-key.

Send a message

Bellcast has no public notification server — the API lives in your own deployment. Examples below use https://your-instance.example.com; replace it with your own URL. While developing locally that is http://localhost:3000.

terminal
curl -X POST https://your-instance.example.com/api/v1/publish/alerts \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Title: Backup finished" \
  -H "Priority: high" \
  -d "All files were copied."

The message appears in the inbox immediately. A JSON response confirms the stored message:

response
{
  "message": {
    "id": "5f4c…",
    "seq": 1,
    "topic": "alerts",
    "title": "Backup finished",
    "body": "All files were copied.",
    "priority": 4,
    "tags": [],
    "created_at": "2026-01-01T12:00:00.000Z"
  }
}

Next steps