How payra-team/payra works
Payra is a native desktop messenger. The current user journey is local account registration or sign-in, followed by a chat shell for browsing demo conversations, opening a conversation, composing messages, and viewing profile, group, and shared-media details. The README also describes planned Supabase-backed auth, realtime chat and image storage, plus a separate AI assistant; these are represented as future capabilities, not as verified runtime flows. Sampled code supports the startup/auth gate and UI wiring; some widget relationships rely on SOURCE INDEX references, and unsampled backend behavior is not asserted.
Main entry points: main_window.py Chat shell · demo_data.py Conversation and user data · main.py App controller · detail_panel.py Conversation details
Components 20
App and authentication
- Module launcher
src/payra/__main__.py - App controller
src/payra/main.py - Login and registration
src/payra/ui/windows/auth_window.py
Chat experience
- Chat shell
src/payra/ui/windows/main_window.py - Conversation and user data
src/payra/models/demo_data.py - Navigation sidebar
src/payra/ui/widgets/nav_sidebar.py - Conversation list
src/payra/ui/widgets/chat_list.py - Conversation and composer
src/payra/ui/widgets/chat_pane.py
People and profiles
- Conversation details
src/payra/ui/widgets/detail_panel.py - Chat and profile dialogs
src/payra/ui/widgets/dialogs.py - Avatar widget
src/payra/ui/widgets/avatar.py - Avatar image cache
src/payra/ui/avatar_cache.py
Services and future integrations
- Account and session auth
src/payra/services/auth.py - Local account files
- Supabase client
src/payra/services/supabase_client.py - Chat service (planned)
src/payra/services/chat.py - Image storage (planned)
src/payra/services/storage.py - AI assistant (planned)
src/payra/services/ai.py - Environment settings
src/payra/config.py
Other components
- Desktop user
Connections 28
- Desktop user → Module launcher: launches
README.md - Module launcher → App controller: starts
src/payra/__main__.py - App controller → Account and session auth: checks session
src/payra/main.py - App controller → Login and registration: shows login
src/payra/main.py - Login and registration → Account and session auth: authenticates
src/payra/ui/windows/auth_window.py - Account and session auth → Local account files: reads and writes
src/payra/services/auth.py - App controller → Chat shell: opens shell
src/payra/main.py - Chat shell → Conversation and user data: loads conversations
src/payra/ui/windows/main_window.py - Chat shell → Navigation sidebar: embeds
src/payra/ui/windows/main_window.py - Chat shell → Conversation list: embeds
src/payra/ui/windows/main_window.py - Chat shell → Conversation and composer: shows conversation
src/payra/ui/windows/main_window.py - Chat shell → Conversation details: shows details
src/payra/ui/windows/main_window.py - Chat shell → Chat and profile dialogs: opens dialogs
src/payra/ui/windows/main_window.py - Conversation list → Conversation and user data: renders data
src/payra/ui/widgets/chat_list.py - Conversation and composer → Conversation and user data: renders messages
src/payra/ui/widgets/chat_pane.py - Conversation details → Conversation and user data: renders details
src/payra/ui/widgets/detail_panel.py - Chat and profile dialogs → Conversation and user data: uses user and contacts
src/payra/ui/widgets/dialogs.py - Conversation details → Chat and profile dialogs: opens dialogs
src/payra/ui/widgets/detail_panel.py - Conversation list → Avatar widget: renders avatars
src/payra/ui/widgets/chat_list.py - Conversation and composer → Avatar widget: renders avatars
src/payra/ui/widgets/chat_pane.py - Conversation details → Avatar widget: renders avatars
src/payra/ui/widgets/detail_panel.py - Avatar widget → Avatar image cache: requests images
src/payra/ui/widgets/avatar.py - Chat and profile dialogs → Avatar image cache: requests images
src/payra/ui/widgets/dialogs.py - Account and session auth → Supabase client: may use
src/payra/services/supabase_client.py - Supabase client → Environment settings: reads settings
src/payra/services/supabase_client.py - Chat service (planned) → Supabase client: planned backend
- Image storage (planned) → Supabase client: planned backend
- AI assistant (planned) → Desktop user: separate assistant phase
README.md