1
Discord SDK
OAuth and activity state live inside the Embedded App SDK context.
Mark Perera
Discord Activity + shared puzzle room
Sudoku Together is a React and Vite Discord Activity with solo and co-op play, daily puzzles, streaks, XP, coins, cosmetics, Supabase persistence, and multiplayer synchronization through a Vercel proxy.
Layer 1
Discord
Layer 2
Vercel
Layer 3
Supabase
Technical Problem
The Activity runs inside Discord constraints, so multiplayer state is routed through CSP-safe proxy endpoints. Serverless handlers own Supabase access, while the client focuses on board state, presence, progression, and game feel.
Session Architecture
1
OAuth and activity state live inside the Embedded App SDK context.
2
The client talks to CSP-safe /.proxy/api routes instead of reaching the database directly.
3
Game sessions, progression, coins, streaks, and shared board state persist in Postgres.
4
Adaptive polling and version checks keep multiplayer play stable inside iframe limits.
Build Notes
React and Vite Discord Activity for solo and co-op Sudoku, with daily puzzles, progression, cosmetics, Supabase persistence, and secure game-state storage via Vercel proxy.