How sahishnucb/vibe works
Vibe is a Phoenix LiveView experiment for synchronized YouTube playback and chat in shared rooms. The main workflow is client intent handled by a LiveView, authoritative room-state updates, PubSub broadcasts, and other clients reflecting the state. Room selection and YouTube search/playback are additional product branches. The README documents the event flow and integrations; the sampled source confirms room-state operations, PubSub broadcasting, supervision, and routes. Some LiveView and YouTube implementation details were not excerpted, so those links rely on README documentation.
Main entry points: room_live.ex Room interface · application.ex OTP supervisor · router.ex LiveView routes · yt_search_live.ex YouTube search
Components 18
Live web experience
- LiveView routes
lib/vibe_web/router.ex - Room selection
lib/vibe_web/live/choose_live.ex - Room interface
lib/vibe_web/live/room_live.ex - Core UI components
lib/vibe_web/components/core_components.ex - Page layouts
lib/vibe_web/components/layouts.ex
Room coordination
- Room state process
lib/vibe/room_server.ex - Phoenix PubSub
- Room chat
lib/vibe/room_server.ex - Playback state
lib/vibe/room_server.ex
Media discovery
- YouTube search
lib/vibe_web/live/yt_search_live.ex - Search suggestions
lib/vibe_web/live/yt_suggest.ex - YouTube API
- Video playback embed
lib/vibe_web/live/you_tube.ex
Application runtime
- OTP supervisor
lib/vibe/application.ex - Phoenix endpoint
lib/vibe_web/endpoint.ex - Telemetry
lib/vibe_web/telemetry.ex - Ecto repository
lib/vibe/repo.ex
Other components
- Room clients
Connections 17
- Room clients → LiveView routes: opens room
lib/vibe_web/router.ex - LiveView routes → Room selection: routes to
lib/vibe_web/router.ex - LiveView routes → Room interface: routes to
lib/vibe_web/router.ex - LiveView routes → YouTube search: routes to
lib/vibe_web/router.ex - Room clients → Room interface: sends events
README.md - Room interface → Room state process: updates state
README.md - Room state process → Phoenix PubSub: broadcasts state
lib/vibe/room_server.ex - Phoenix PubSub → Room clients: broadcasts updates
README.md - Room interface → Room chat: handles chat
README.md - Room interface → Playback state: controls playback
README.md - YouTube search → YouTube API: searches videos
README.md - YouTube search → Search suggestions: uses suggestions
- YouTube API → Video playback embed: provides media
README.md - OTP supervisor → Room state process: starts process
lib/vibe/application.ex - OTP supervisor → Phoenix PubSub: starts service
lib/vibe/application.ex - OTP supervisor → Phoenix endpoint: starts endpoint
lib/vibe/application.ex - OTP supervisor → Telemetry: starts service
lib/vibe/application.ex