WenChat
中文 · Changelog · License
LAN-only P2P terminal chat: mDNS auto-discovery + direct WebRTC. No server, no STUN/TURN, no cloud relay.
Open two terminals on the same Wi-Fi, wired, or VPN network and start chatting with a single command — no public internet, no accounts, no messages leaving your LAN. Text supports Markdown rendering, you can transfer files, double-click to copy, and press Ctrl+T to toggle the native mouse-selection mode.
Table of Contents
- Features
- Preview
- Installation
- Quick Start
- Slash Commands
- Tech Stack
- Project Layout
- Configuration
- Development
- Contributing
- Security
- License
Features
Networking
- 🔍 mDNS / Bonjour auto-discovery — peers on the same LAN appear
instantly, no IP typing required
- 🔗 WebRTC DataChannel direct — pure P2P, no STUN / TURN, no
relay server
- 🛡️ DTLS in-transit — link-layer encryption; the data channel
itself carries plaintext frames
- 💓 Application-layer heartbeat — 2 s ping (suppressed while traffic
flows) / 15 s total-silence watchdog, with auto-pong and automatic cleanup on link loss
Chat UX