🚀 V2V Anonymous WebSocket Chat
🇻🇳
Tiếng Việt · Technical Docs
A lightweight, real-time anonymous chat — pure Go, WebSocket, no database.
- Anonymous by default — everyone gets
Name#a1b2 from a per-session salted IP hash (auto-extends, adds -2 on collision). No signup, comfortable naming.
- Passwordless login for staff — Ed25519 key files or WebAuthn passkeys (Touch ID / Windows Hello).
- Optional tripcode — a colorful
◆ ab12 badge derived from a passphrase, cryptographically verifiable.
- Fast & private — in-memory history, anti-spam limits, and encrypted key files stay on your device.
Quick Start
1. Get a binary
Download from releases or build:
make client # -> public/V2V-linux-amd64 (host only)
make client ALL=1 # -> full matrix (7 platforms, for CI)
make help # see all targets
2. Join as guest
./public/V2V-linux-amd64 -s wss://chat.example.com -u "YourName"
3. Join with a tripcode
./public/V2V-linux-amd64 -s wss://chat.example.com -u "YourName" -t "my secret phrase"
# you will appear as: YourName#ab12
# └─ ✍️ ◆ ab12cd34 (colored, clickable to verify)
Type /help inside the chat for commands (/quit, /clear, /whoami, /status, /autoverify).
For Admins
Create identities with v2vctl (build with make v2vctl / make v2vctl ALL=1 for all platforms):
# 1) Ed25519 key (classic, works everywhere)
./public/V2Vctl-linux-amd64 keygen ed25519 --role admin --unlimited --prefix "[Admin] "
# 2) Software passkey (WebAuthn wire format, for testing)
./public/V2Vctl-linux-amd64 keygen passkey --role admin --rpid chat.example.com --origin https://chat.example.com
# Login with a key file
./public/V2V-linux-amd64 -s wss://chat.example.com -u "Admin" -k key.json
Key files can be encrypted (v2vctl will ask for a passphrase, or use V2V_PASSPHRASE).
Web passkey enrollment (one-time link, 10 min):
./public/V2Vctl-linux-amd64 enroll --role member --label bob-laptop
# → https://chat.example.com/web/#enroll=...
See template/.env and template/roles.json for server configuration.
Running the Server
From source:
cp template/.env .env # edit PORT, ALLOWED_ORIGINS, etc.
make server web # -> public/server.bin + webterm/app.wasm
./public/server.bin
# or: docker compose up -d --build (persists ./data and ./logs)
# full matrix for release: make all ALL=1 -j4
Open http://localhost:8080/web/ for the browser client.
Learn More
- How it works:
docs/TECHNICAL.md — architecture, wire protocol, tripcode crypto, storage, and security model.
- Configuration:
template/.env has all env vars with comments (PORT, MAX_MESSAGE_LENGTH, HISTORY_FILE_PATH, WEBAUTHN_*, etc.).
- Management tool:
v2vctl --help and v2vctl keygen --help.
Issues and PRs are welcome.