Social accountability for LeetCode grinders. Small friend groups, weekly quotas, hybrid streaks. A LeetCode tracker for friends — compete on amount done, see what areas teammates are working on, get auto-synced from LeetCode profiles, stay on track together.
npm install
cp .env.example .env # fill in EXPO_PUBLIC_SUPABASE_URL + ANON_KEY
npx expo start- Create a project at supabase.com
- SQL editor → run migrations in order:
supabase/migrations/0001_init.sqlsupabase/migrations/0002_streaks.sqlsupabase/migrations/0003_cron_and_webhooks.sql(set theapp.functions_urlandapp.service_role_keyDB settings first — see file)
- Seed the problem catalog:
SUPABASE_URL=... SUPABASE_SERVICE_ROLE_KEY=... npx tsx scripts/seed-problems.ts
- Deploy edge functions:
supabase functions deploy leetcode-sync supabase functions deploy notify-friend-solved
- Copy URL + anon key into
.env
Mobile app (Expo Router)
- app/_layout.tsx — auth gating, push registration, onboarding redirect
- app/(auth)/sign-in.tsx — email/password auth
- app/(auth)/onboarding.tsx — username + LeetCode link
- app/(tabs)/feed.tsx — group activity feed with realtime subscribe
- app/(tabs)/leaderboard.tsx — this-week leaderboard
- app/(tabs)/log.tsx — log a solve (search problems)
- app/(tabs)/profile.tsx — quota ring, streaks, my groups
- app/group/create.tsx — create + share invite code
- app/group/join.tsx — join via code
Client lib
- src/lib/supabase.ts, src/lib/push.ts
- src/stores/auth.ts (Zustand)
- src/components/QuotaRing.tsx
- src/theme.ts
Backend
- supabase/migrations/0001_init.sql — schema + RLS +
join_group_by_codeRPC - supabase/migrations/0002_streaks.sql — solve trigger maintains weekly_stats + daily streak; pg_cron for weekly recompute and daily decay
- supabase/migrations/0003_cron_and_webhooks.sql —
call_edge()helper + notify trigger + LC sync schedule - supabase/functions/leetcode-sync/ — polls LeetCode GraphQL, inserts new solves
- supabase/functions/notify-friend-solved/ — pushes Expo notification to group peers
- scripts/seed-problems.ts — one-shot problem catalog seeder
- Weekly recap image generation (shareable PNG)
- TestFlight build (EAS dev build; also unlocks native Liquid Glass tab bar + real push testing)
- Friend's solve push deep-links into Crew; streak-warning push opens Summary (app/_layout.tsx)
- Sunday-night streak-warning push (
notify-streak-warning+ pg_cron, Sun 20:00) - Reactions on solves (supabase/migrations/0022_solve_reactions.sql, Crew UI)