How caiomcg/zoia works
Zoia is a self-hosted social screen-sharing and voice platform, with desktop and Android clients and a Node server. The main workflow is: sign in and join a channel, publish screen/window/camera media (optionally with application audio), and let channel members choose broadcasts to watch. Separate product branches cover voice, chats and direct messages, scheduled events, soundboards, and server-managed addons. The graph combines sampled client/server code with README-documented capabilities; some server routing and integrations are not shown in the excerpts, so those links are omitted or marked unverified.
Main entry points: App.tsx Desktop app · app.js Server application · MainActivity.kt Android client · useChat.ts Chat client
Components 22
Desktop client
- Desktop app
desktop/src/renderer/App.tsx - Desktop IPC
desktop/src/shared/ipc.ts - Android client
android/app/src/main/kotlin/im/zoia/MainActivity.kt - Android API client
android/app/src/main/kotlin/im/zoia/api/ZoiaApiClient.kt
Live media
- Room publishing
desktop/src/renderer/livekit/useRoom.ts - Voice processing
desktop/src/renderer/voice/pipeline.ts - LiveKit SFU
Social features
- Chat client
desktop/src/renderer/chat/useChat.ts - Chat presentation
desktop/src/renderer/components/ChatView.tsx - Events and birthdays
desktop/src/renderer/schedule/useSchedule.ts - Sound cues
desktop/src/renderer/sounds/useSoundCues.ts - Android chat manager
android/app/src/main/kotlin/im/zoia/chat/ChatManager.kt
Server services
- Server application
server/src/app.js - Accounts and approval
server/src/accounts.js - Chat API
server/src/chat-routes.js - Message service
server/src/messages.js - Persistent store
server/src/store.js
Addon system
- Addon API
server/src/addon-routes.js - Addon registry
server/src/addons.js - Addon host
addon-host/src/host.js - Addon containers
Other components
- Participant
Connections 25
- Participant → Desktop app: uses
README.md - Participant → Android client: uses
README.md - Desktop app → Room publishing: starts sharing
desktop/src/renderer/App.tsx - Room publishing → LiveKit SFU: publishes and watches
README.md - Desktop app → Voice processing: processes microphone
desktop/src/renderer/App.tsx - Voice processing → Room publishing: provides audio track
desktop/src/renderer/voice/pipeline.ts - Desktop app → Desktop IPC: uses shared contracts
desktop/src/renderer/App.tsx - Desktop app → Chat client: loads chat state
desktop/src/renderer/App.tsx - Chat client → Chat presentation: feeds chat view
- Chat client → Server application: requests chats
- Desktop app → Events and birthdays: loads events
desktop/src/renderer/App.tsx - Events and birthdays → Server application: requests schedules
- Desktop app → Sound cues: plays cues
desktop/src/renderer/App.tsx - Android client → Android API client: makes API calls
- Android client → Android chat manager: uses chat manager
- Android chat manager → Android API client: sends chat requests
android/app/src/main/kotlin/im/zoia/chat/ChatManager.kt - Android API client → Server application: calls server
- Server application → Accounts and approval: routes account requests
- Accounts and approval → Persistent store: reads and writes
server/src/accounts.js - Chat API → Message service: reads messages
server/src/chat-routes.js - Chat API → Persistent store: reads chat list
- Server application → Chat API: mounts chat API
server/src/chat-routes.js - Addon API → Addon registry: authenticates addons
server/src/addon-routes.js - Server application → Addon API: routes addon requests
- Addon host → Addon containers: manages containers
addon-host/src/host.js