How yourfzz/yapping works
Yapping is an anonymous, real-time chat web app. Users set a display name, create or join a room, then exchange messages while seeing online presence; leaving can trigger deletion of an empty room. The page handles room discovery and selection, while the chat component owns message, presence, and cleanup behavior through the Supabase client. The README documents realtime, anonymous use, room lifecycle, and UI features; source excerpts confirm the main calls. UI primitives are grouped to keep the graph focused.
Main entry points: ChatRoom.tsx Chat Room · page.tsx Room Discovery · supabase.ts Supabase Client · ui UI Primitives
Components 9
Room Entry
- Room Discovery
app/page.tsx
Chat Session
- Chat Room
components/ChatRoom.tsx
Backend
- Supabase Client
lib/supabase.ts - Supabase
- Rooms Table
- Messages Table
UI Components
- UI Primitives
components/ui - App Layout
app/layout.tsx
Other components
- Visitor
Connections 16
- Visitor → Room Discovery: sets identity
README.md - Room Discovery → Supabase Client: loads rooms
app/page.tsx - Room Discovery → Rooms Table: creates rooms
app/page.tsx - Room Discovery → Chat Room: opens selected room
app/page.tsx - Room Discovery → UI Primitives: renders controls
app/page.tsx - Chat Room → Supabase Client: uses client
components/ChatRoom.tsx - Chat Room → Messages Table: loads and sends
components/ChatRoom.tsx - Chat Room → Supabase: subscribes realtime
README.md - Chat Room → Supabase: tracks presence
components/ChatRoom.tsx - Chat Room → Rooms Table: deletes empty room
components/ChatRoom.tsx - Chat Room → UI Primitives: renders chat UI
components/ChatRoom.tsx - Supabase Client → Supabase: connects to
lib/supabase.ts - Supabase → Rooms Table: stores room data
README.md - Supabase → Messages Table: stores messages
README.md - Room Discovery → Visitor: returns to list
app/page.tsx - App Layout → Room Discovery: wraps page