How almamun4901/the-whisper works
WhisperChain+ is an anonymous messaging platform: users register and authenticate, senders choose approved receivers and send encrypted messages using round-based pseudonymous tokens, and receivers read or flag messages. Moderators manage flagged content, tokens, warnings, and bans; administrators approve accounts and inspect audit logs. The graph preserves the documented encryption, RBAC, token, and audit capabilities. Backend route wiring and several frontend interactions are only partially sampled, so uncertain links are omitted; dashed links mark documented but unsampled subsystem relationships.
Main entry points: App.tsx Route shell · database.py Application database · message_routes.py Message routes · jwt_auth.py JWT authentication
Components 24
User interface
- Route shell
frontend/src/App.tsx - Registration
frontend/src/pages/Register.tsx - Send message
frontend/src/pages/SendMessage.tsx - Inbox
frontend/src/pages/Inbox.tsx - User dashboard
frontend/src/pages/Dashboard.tsx - Moderator console
frontend/src/pages/ModeratorDashboard.tsx - Admin dashboard
frontend/src/pages/admin/AdminDashboard.tsx
Identity and access
- Auth routes
backend/routes/auth_routes.py - Registration and approval
backend/main.py - JWT authentication
auth/jwt_auth.py - Role access control
auth/rbac.py - User and receiver API
backend/routes/user_routes.py
Anonymous messaging
- Key management
encryption/key_management.py - Key decryption UI
frontend/src/components/KeyDecryption.tsx - Message routes
backend/routes/message_routes.py - Message encryption
encryption/message_crypto.py - Anonymous tokens
encryption/token_manager.py - End-to-end encryption
encryption/e2e_encryption.py
Moderation and audit
- Moderation routes
backend/routes/moderator_routes.py - Moderation logic
backend/moderation.py - Admin and audit API
backend/main.py
Persistence
- Application database
database/database.py - Domain records
database/models.py
Other components
- Platform user
Connections 43
- Platform user → Route shell: uses
frontend/src/App.tsx - Route shell → Registration: routes to
frontend/src/App.tsx - Route shell → Send message: routes to
frontend/src/App.tsx - Route shell → Inbox: routes to
frontend/src/App.tsx - Route shell → User dashboard: routes to
frontend/src/App.tsx - Route shell → Moderator console: routes to
frontend/src/App.tsx - Route shell → Admin dashboard: routes to
frontend/src/App.tsx - Route shell → Key decryption UI: routes to
- Platform user → Registration and approval: registers
backend/main.py - Platform user → Auth routes: authenticates
- Registration and approval → Application database: reads/writes
backend/main.py - Registration and approval → Key management: generates keys
backend/main.py - Registration and approval → Domain records: creates records
backend/main.py - Auth routes → JWT authentication: uses
- User and receiver API → JWT authentication: authenticates
backend/routes/user_routes.py - User and receiver API → Application database: queries
backend/routes/user_routes.py - User and receiver API → Domain records: queries
backend/routes/user_routes.py - JWT authentication → Application database: loads users
auth/jwt_auth.py - JWT authentication → Domain records: queries users
auth/jwt_auth.py - Role access control → JWT authentication: uses
- Platform user → Send message: composes
- Send message → Message routes: sends request
- Message routes → JWT authentication: authenticates
backend/routes/message_routes.py - Message routes → Anonymous tokens: validates tokens
backend/routes/message_routes.py - Message routes → Message encryption: encrypts messages
backend/routes/message_routes.py - Message routes → Application database: reads/writes
backend/routes/message_routes.py - Message routes → Domain records: queries messages
backend/routes/message_routes.py - Platform user → Inbox: reads messages
- Inbox → Message routes: fetches inbox
- Key decryption UI → Key management: decrypts keys
- Platform user → Moderator console: moderates
- Moderator console → Moderation routes: requests actions
- Moderation routes → JWT authentication: verifies moderator
backend/routes/moderator_routes.py - Moderation routes → Anonymous tokens: freezes tokens
backend/routes/moderator_routes.py - Moderation routes → Application database: reads/writes
backend/routes/moderator_routes.py - Moderation routes → Domain records: queries records
backend/routes/moderator_routes.py - Moderation logic → Anonymous tokens: manages tokens
backend/moderation.py - Moderation logic → Application database: accesses data
backend/moderation.py - Platform user → Admin dashboard: administers
- Admin dashboard → Admin and audit API: requests approval
- Admin and audit API → Application database: reads/writes
backend/main.py - Admin and audit API → Domain records: queries records
backend/main.py - Application database → Domain records: uses schema
database/models.py