Build a free-tier analytics stack: events → realtime → Slack alerts. Minimal.
- Clone & env
git clone https://github.com/your/repo
cd repo
cp .env.example .envSupabase
Create project → run the SQL in supabase.sql.
Toggle Enable Realtime for public.analytics_events.
Backend
bun install
bun run dev # http://localhost:8787Frontend
bun run dev # http://localhost:5173Slack Use a webhook or a bot token with chat:write. Deploy Deploy backend to Render · Deploy frontend to Netlify
Env
See .env.example.
Notes
Don’t ship SERVICE_ROLE_KEY to the browser.
Use INGESTION_SECRET to authenticate ingestion requests.
RLS is enabled; see supabase.sql.
License
