Skip to content

loveliiivelaugh/analytics-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

$0 Open-Source Product Analytics (React · Bun/Hono · Supabase · Slack)

Build a free-tier analytics stack: events → realtime → Slack alerts. Minimal.

Deploy to Render Deploy to Netlify

diagram

Quickstart

  1. Clone & env
git clone https://github.com/your/repo
cd repo
cp .env.example .env

Supabase Create project → run the SQL in supabase.sql. Toggle Enable Realtime for public.analytics_events.

Backend

bun install
bun run dev  # http://localhost:8787

Frontend

bun run dev  # http://localhost:5173

Slack 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


About

A "roll-your-own" custom analytics solution using free and open source tools. This is the demo code to a tutorial on the WoodwardStudio blog.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published