How jasonkenwayfj/luma works
Luma is a desktop messaging client with a Rust server. The main workflow is account login, chat selection or direct-contact discovery, then sending and viewing messages with attachments and history. The desktop UI invokes Tauri commands and listens for events; the server is the backend endpoint. The server and Tauri Rust sources are listed as read, but their excerpts and internal relationships are unavailable, so those links are left unverified rather than inferred.
Main entry points: App.tsx App orchestration · lib.rs Tauri command layer · ChatView.tsx Conversation view · useChat.ts Chat state and transport
Components 15
Desktop experience
- App orchestration
luma-desktop/src/App.tsx - Chat discovery
luma-desktop/src/components/ChatList.tsx - Conversation view
luma-desktop/src/components/ChatView.tsx - Connection indicator
luma-desktop/src/components/ConnectionStatus.tsx
Identity and contacts
- Login and registration
luma-desktop/src/components/AuthScreen.tsx - Profile storage
luma-desktop/src/auth.ts - Direct contacts
luma-desktop/src/contacts.ts
Messaging runtime
- Message composer
luma-desktop/src/components/Composer.tsx - Message renderer
luma-desktop/src/components/Message.tsx - Chat state and transport
luma-desktop/src/hooks/useChat.ts - Chat definitions
luma-desktop/src/chats.ts
Native and server
- Tauri command layer
luma-desktop/src-tauri/src/lib.rs - Messaging server
luma-server/src/main.rs - Push notifications
luma-desktop/src/App.tsx
Other components
- User
Connections 20
- User → Login and registration: signs in
luma-desktop/src/components/AuthScreen.tsx - Login and registration → Tauri command layer: invokes auth
luma-desktop/src/components/AuthScreen.tsx - Login and registration → App orchestration: returns profile
luma-desktop/src/App.tsx - App orchestration → Profile storage: loads and saves
luma-desktop/src/App.tsx - App orchestration → Chat state and transport: uses chat state
luma-desktop/src/App.tsx - App orchestration → Chat definitions: combines chats
luma-desktop/src/App.tsx - App orchestration → Direct contacts: loads contacts
luma-desktop/src/App.tsx - App orchestration → Chat discovery: renders list
luma-desktop/src/App.tsx - App orchestration → Conversation view: renders conversation
luma-desktop/src/App.tsx - Chat discovery → Tauri command layer: searches users
luma-desktop/src/components/ChatList.tsx - Chat discovery → Connection indicator: renders status
luma-desktop/src/components/ChatList.tsx - Conversation view → Message renderer: renders messages
luma-desktop/src/components/ChatView.tsx - Conversation view → Message composer: renders composer
luma-desktop/src/components/ChatView.tsx - Conversation view → Connection indicator: renders status
luma-desktop/src/components/ChatView.tsx - Message composer → Chat state and transport: submits message
- App orchestration → Chat state and transport: joins rooms
luma-desktop/src/App.tsx - Chat state and transport → Tauri command layer: invokes commands
luma-desktop/src/hooks/useChat.ts - App orchestration → Tauri command layer: registers push token
luma-desktop/src/App.tsx - Tauri command layer → Messaging server: exchanges messages
- App orchestration → Push notifications: handles push events
luma-desktop/src/App.tsx