How lokesh-gopinath/nightlink works
NightLink is a Tor-only, encrypted peer-to-peer chat application. The principal workflow is: a user initializes an identity and adds a contact, starts a chat, accepts or rejects incoming requests, then exchanges encrypted messages; group chat fans messages out to members’ peer sessions. The graph includes identity/configuration, Tor transport, chat security, groups, and terminal presentation. Some command-handler and persistence wiring is unsampled, so those links are omitted or marked unverified rather than inferred.
Main entry points: main.rs Command shell · chat.rs Peer chat protocol · types.rs Runtime state · config.rs Config and contacts
Components 12
CLI and state
- Command shell
src/main.rs - Runtime state
src/types.rs - Terminal themes
src/theme.rs
Identity and config
- Config and contacts
src/config.rs - Identity and encryption
src/crypto.rs
Tor transport
- Tor bootstrap
src/tor.rs - SOCKS connections
src/tor.rs
Chat and security
- Peer chat protocol
src/chat.rs
Group chat
- Group model
src/group.rs
Other components
- Terminal user
- Tor daemon
- Remote peer
Connections 17
- Terminal user → Command shell: enters commands
README.md - Command shell → Peer chat protocol: starts listener
src/main.rs - Command shell → Peer chat protocol: requests connection
src/main.rs - Command shell → Runtime state: uses runtime state
src/main.rs - Command shell → Config and contacts: manages contacts
src/main.rs - Command shell → Group model: manages groups
src/main.rs - Command shell → Terminal themes: renders prompts
src/main.rs - Config and contacts → Identity and encryption: creates identity
src/config.rs - Config and contacts → Runtime state: uses data types
src/config.rs - Peer chat protocol → Identity and encryption: secures sessions
src/chat.rs - Peer chat protocol → SOCKS connections: opens Tor links
src/chat.rs - Peer chat protocol → Group model: frames group messages
src/chat.rs - Peer chat protocol → Runtime state: tracks sessions
src/chat.rs - Tor bootstrap → Tor daemon: starts daemon
src/tor.rs - SOCKS connections → Tor daemon: uses proxy
src/tor.rs - Remote peer → Peer chat protocol: exchanges messages
- Group model → Runtime state: uses shared types
src/group.rs