How blurzzud/pollakcord works
PollákCord is a school-only communication platform: students verify school affiliation, create private accounts, then use social, messaging, server, class-space, DÖK, forms, and voice features. The React SPA uses the FastAPI REST API and WebSocket; browser-to-browser audio uses WebRTC. The graph combines documented architecture and capabilities with sampled wiring. Several feature routers and services are unsampled, so their documented responsibilities are shown without inferring internal call chains.
Main entry points: base.py Application database · router.py API router · ws.py Realtime and signaling · App.tsx React SPA
Components 25
Browser application
- React SPA
frontend/src/App.tsx - REST client
frontend/src/api/client.ts - Realtime client
frontend/src/realtime/socket.ts - Voice manager
frontend/src/voice/VoiceManager.ts
API and identity
- Authentication routes
backend/app/api/v1/auth.py - API router
backend/app/api/v1/router.py - Session security
backend/app/security/sessions.py - Kréta verification
backend/app/integrations/kreta/flows.py - Kréta adapter
backend/app/integrations/kreta/adapter.py
Communication features
- Profiles and friends
backend/app/api/v1/friends.py - Servers and channels
backend/app/api/v1/servers.py - DMs and messaging
backend/app/services/messages.py - Class spaces
backend/app/services/class_spaces.py - DÖK messages
backend/app/services/dok.py - School forms
backend/app/services/forms.py - Moderation
backend/app/api/v1/moderation.py - Search
backend/app/api/v1/search.py - Notifications
backend/app/api/v1/notifications.py
Runtime foundations
- Realtime and signaling
backend/app/realtime/ws.py - Voice rooms
backend/app/realtime/voice.py - Envelope encryption
backend/app/crypto/envelope.py - Application database
backend/app/db/base.py
Other components
- Student
- E-Kréta
- Other browsers
Connections 29
- Student → React SPA: uses
- React SPA → REST client: requests through
frontend/src/api/client.ts - React SPA → Realtime client: connects through
- REST client → API router: calls REST
- API router → Authentication routes: routes to
backend/app/api/v1/router.py - API router → Profiles and friends: routes to
backend/app/api/v1/router.py - API router → Servers and channels: routes to
backend/app/api/v1/router.py - API router → Realtime and signaling: routes to
backend/app/api/v1/router.py - Authentication routes → Kréta verification: starts verification
backend/app/api/v1/auth.py - Kréta verification → Kréta adapter: delegates to
backend/app/integrations/kreta/flows.py - Kréta adapter → E-Kréta: verifies with
- Authentication routes → Session security: manages sessions
backend/app/api/v1/auth.py - Session security → Application database: reads and writes
backend/app/security/sessions.py - Profiles and friends → Application database: persists records
- Servers and channels → Application database: persists records
- DMs and messaging → Envelope encryption: encrypts content
- DMs and messaging → Application database: stores messages
- Class spaces → Application database: stores conversations
- DÖK messages → Application database: stores messages
- School forms → Envelope encryption: encrypts answers
backend/app/services/forms.py - School forms → Application database: stores responses
- Moderation → Application database: records actions
- Search → DMs and messaging: searches messages
- Realtime client → Realtime and signaling: exchanges events
- Realtime and signaling → Voice rooms: dispatches signaling
- Voice manager → Realtime client: signals through
frontend/src/voice/VoiceManager.ts - Voice manager → Other browsers: sends WebRTC audio
- Voice rooms → Other browsers: relays signaling
- Notifications → Realtime and signaling: pushes events