How gwill1337/severus works
Severus is a self-hosted, real-time P2P messenger with Direct TCP/LAN and Iroh QUIC connection modes, TLS, Noise E2EE, TOFU trust, and room chat. The user chooses Host or Client in the React app; Tauri commands start a host or connect a client, after which packets carry registration, peer messages, and room operations. Rust networking handles transport and encryption, while shared packet/state types and room management support chat. The README documents both transports and security capabilities; links reflect only shown calls or documented behavior, since several source excerpts are partial.
Main entry points: lib.rs Command runtime · direct.rs Direct transport · quic.rs Iroh QUIC transport · App.tsx Chat interface
Components 11
Desktop interface
- Chat interface
src/App.tsx - React entry
src/main.tsx
Tauri runtime
- Command runtime
src-tauri/src/lib.rs
Networking
- Direct transport
src-tauri/src/net/direct.rs - Iroh QUIC transport
src-tauri/src/net/quic.rs
Security
- TLS and Noise
src-tauri/src/security.rs
Chat and telemetry
- Packet and state types
src-tauri/src/net/mod.rs - Room operations
src-tauri/src/net/room.rs - Network metrics
src-tauri/src/logger.rs
Other components
- Messenger user
- Remote peers
Connections 19
- Messenger user → Chat interface: uses
README.md - React entry → Chat interface: renders
src/main.tsx - Chat interface → Command runtime: invokes commands
src/App.tsx - Command runtime → Direct transport: registers commands
src-tauri/src/lib.rs - Command runtime → Iroh QUIC transport: dispatches connections
src-tauri/src/lib.rs - Command runtime → Room operations: registers commands
src-tauri/src/lib.rs - Command runtime → TLS and Noise: registers trust command
src-tauri/src/lib.rs - Command runtime → Remote peers: serves host connections
src-tauri/src/lib.rs - Chat interface → Remote peers: connects to
README.md - Direct transport → TLS and Noise: uses TLS and Noise
src-tauri/src/net/direct.rs - Iroh QUIC transport → TLS and Noise: uses TLS and Noise
src-tauri/src/net/quic.rs - Direct transport → Packet and state types: handles packets
src-tauri/src/net/direct.rs - Iroh QUIC transport → Packet and state types: handles packets
src-tauri/src/net/quic.rs - Direct transport → Room operations: handles room operations
src-tauri/src/net/direct.rs - Iroh QUIC transport → Room operations: handles room operations
src-tauri/src/net/quic.rs - Chat interface → Room operations: sends room commands
src/App.tsx - Direct transport → Network metrics: records traffic
src-tauri/src/net/direct.rs - Iroh QUIC transport → Network metrics: records traffic
src-tauri/src/net/quic.rs - Command runtime → Network metrics: starts reporting
src-tauri/src/lib.rs