How itsmattguenther/linger works
Linger is a self-hosted social hangout: members connect to a host’s server, find people and rooms, then chat, share media, join voice, or watch screen shares. The React/Tauri client presents the buddy list and separate chat, settings, search, and media windows; shared client state and typed HTTP/WebSocket interfaces connect it to the Rust server. The server handles accounts, persistence, messaging, and voice/screen signaling, with a separate SFU and optional push relay. The README establishes the product workflow and capabilities; some backend and feature wiring is unsampled, so uncertain links are omitted.
Main entry points: App.tsx App windows · routes HTTP routes · gateway.ts Gateway state · ChatView.tsx Chat and sharing
Components 21
Client experience
- App windows
client/src/next/app/App.tsx - Buddy list
client/src/next/app/list - Chat and sharing
client/src/next/app/chat/ChatView.tsx - Search and media
client/src/next/app/tools - Settings
client/src/next/app/settings - Screen sharing UI
client/src/next/app/screen/usePaneScreen.ts
Client runtime
- Client entry
client/src/next/main.tsx - Gateway state
client/src/lib/gateway.ts - Typed HTTP API
client/src/lib/api.ts - Native bridge
client/src/lib/ipc.ts
Server services
- Server application
crates/linger-server/src/main.rs - Authentication
crates/linger-server/src/auth.rs - HTTP routes
crates/linger-server/src/routes - SQLite database
crates/linger-server/src/db.rs - Data repositories
crates/linger-server/src/repo
Realtime media
- Voice runtime
client/src/lib/voice.ts - Voice SFU
crates/linger-sfu/src/lib.rs
Mobile notifications
- Push relay
push-relay/src/index.ts - Phone notifications
client/src-tauri/gen/android/app/src/main/java/io/github/itsmattguenther/linger/LingerMessagingService.kt
Other components
- Member
- Self-hosted server
Connections 22
- Member → App windows: uses
README.md - Client entry → App windows: renders
client/src/next/main.tsx - App windows → Buddy list: routes to
client/src/next/app/App.tsx - App windows → Chat and sharing: routes to
client/src/next/app/App.tsx - App windows → Settings: routes to
client/src/next/app/App.tsx - App windows → Search and media: routes to
client/src/next/app/App.tsx - Chat and sharing → Gateway state: loads messages
client/src/next/app/chat/useConversationPane.tsx - Chat and sharing → Typed HTTP API: sends requests
client/src/next/app/chat/useConversationPane.tsx - Screen sharing UI → Gateway state: joins voice
client/src/next/app/screen/usePaneScreen.ts - Gateway state → Native bridge: invokes voice
client/src/lib/gateway.ts - Typed HTTP API → Self-hosted server: sends HTTP
client/src/lib/api.ts - Gateway state → Self-hosted server: connects gateway
README.md - Self-hosted server → Server application: runs
README.md - Server application → HTTP routes: serves routes
crates/linger-server/src/main.rs - HTTP routes → Authentication: authenticates
crates/linger-server/src/routes/server.rs - HTTP routes → SQLite database: queries
crates/linger-server/src/routes/server.rs - HTTP routes → Data repositories: reads attachments
crates/linger-server/src/routes/server.rs - Voice runtime → Voice SFU: sends voice
README.md - Server application → Voice SFU: forwards voice
- Push relay → Phone notifications: delivers encrypted push
client/src-tauri/gen/android/app/src/main/java/io/github/itsmattguenther/linger/LingerMessagingService.kt - Member → Screen sharing UI: shares screen
README.md - Buddy list → Typed HTTP API: gets server data
client/src/next/app/list/useShareWindow.ts