How jun8k2003/chatransceiver works
Chatransceiver is a browser-based, PWA-capable push-to-talk chat app. A user signs in, joins a community, selects a person or group, then sends a short recording or text; incoming messages can be replayed or spoken aloud, and background notifications support receiving messages when the app is closed. The graph includes the documented group, audio, notification, and customization capabilities. Some backend wiring is documented only at a high level; dashed edges mark relationships not verified in the shown source.
Main entry points: app.ts App orchestration · controller.ts UI controller · FCMService.ts Push client · index.ts Push notification function
Components 22
Chat experience
- App orchestration
src/app.ts - UI controller
src/ui/controller.ts - Community menu
src/ui/community.ts - Chat list
src/ui/list.ts - Chat window
src/ui/chat.ts
Audio interaction
- Audio manager
src/audio/manager.ts - Playback queue
src/audio/queue.ts - Media-button PTT
src/services/mediabutton.ts
Platform services
- Screen wake lock
src/services/wakelock.ts - Push client
src/services/FCMService.ts - Unread badge
src/services/appbadge.ts - Background image store
src/utils/db.ts
Backend services
- Supabase service
src/services/supabase.ts - Supabase
- Token registration
supabase/functions/register-fcm-token/index.ts - Push notification function
supabase/functions/send-push-notification/index.ts - Audio cleanup function
supabase/functions/delete-audio-on-message-delete/index.ts - Transcription function
supabase/functions/transcribe-audio-message/index.ts
Other components
- User
- Firebase messaging
- Discord webhook
- Browser speech APIs
Connections 26
- User → App orchestration: uses
README.md - App orchestration → UI controller: initializes
src/app.ts - UI controller → Community menu: initializes
src/ui/controller.ts - UI controller → Chat list: initializes
src/ui/controller.ts - UI controller → Chat window: renders
src/ui/controller.ts - App orchestration → Supabase service: loads chat data
src/app.ts - Supabase service → Supabase: reads and writes
src/services/supabase.ts - App orchestration → Audio manager: controls recording
src/app.ts - App orchestration → Playback queue: queues playback
src/app.ts - Playback queue → Audio manager: plays audio and speech
src/audio/queue.ts - Audio manager → Browser speech APIs: recognizes and speaks
README.md - App orchestration → Media-button PTT: controls PTT
src/app.ts - App orchestration → Screen wake lock: controls wake lock
src/app.ts - App orchestration → Push client: configures notifications
src/app.ts - App orchestration → Unread badge: updates badge
src/app.ts - App orchestration → Background image store: stores background image
src/app.ts - Push client → Supabase service: gets session
src/services/FCMService.ts - Push client → Token registration: registers token
src/services/FCMService.ts - Token registration → Supabase: stores token · Inferred; not shown in the code that was read.
- Push notification function → Firebase messaging: sends push
README.md - Push notification function → Discord webhook: sends webhook
README.md - Audio cleanup function → Supabase: deletes stored audio · Inferred; not shown in the code that was read.
- Transcription function → Browser speech APIs: transcribes audio · Inferred; not shown in the code that was read.
- Supabase → Push notification function: triggers on messages · Inferred; not shown in the code that was read.
- Supabase → Audio cleanup function: triggers on deletion
README.md - App orchestration → Transcription function: requests transcription · Inferred; not shown in the code that was read.