r/Supabase • u/titansb-_- • 4h ago
realtime Showcase: a live pixel canvas built only on Supabase (RLS, RPCs, Realtime, pg_cron batching)
Built a New Year pixel canvas where everyone paints together live. All logic lives in Supabase:
- Anonymous auth plus security-definer RPCs for every write, with RLS so clients can only read
- Per-IP rate limits from request headers, reserved usernames, chat slow mode
- To avoid pixels × viewers messages, a trigger records changed squares and a pg_cron job sends one realtime.send broadcast every 2 s (only when something changed)
- Presence for the online count, postgres_changes for chat and votes
check it out here: https://saharshbaiju.github.io/tandem/easteregg/