V2V

module
v0.9.0-wip.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: AGPL-3.0

README

🚀 V2V — Verifiable Anonymous Chat

🇻🇳 Tiếng Việt · Technical Docs

Chat without accounts. The server never asks for email, phone numbers, or any real identifying information.

  • No signup — you join with a name like Name#a1b2 and start chatting right away. No data links that name to you.
  • Optional identifier — a tripcode badge (◆ ab12) generated from a passphrase lets others recognize you across sessions, as long as you keep using it.
  • Disposable identities — just stop using a name or passphrase and that identity is gone. Starting over leaves no link between the old and the new.
  • Transparent history — every message links into a single server-wide hash chain. If a message is edited or reordered, every client can detect the break.
  • Passwordless admin login — moderators use Ed25519 key files or WebAuthn passkeys. No personal identifying information required.

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 dev             # -> bin/v2v, bin/v2v-server, bin/v2vctl + fresh webterm (dev build)
make help            # see all targets

2. Join as guest

./public/V2V-linux-amd64 -s wss://chat.example.com -u "YourName"
# via proxy: --proxy socks5://127.0.0.1:1080 (or V2V_PROXY env, or --ask-proxy for an interactive prompt)

3. Join with a tripcode

./public/V2V-linux-amd64 -s wss://chat.example.com -u "YourName" -t
# prompts for the secret tripcode (hidden input, never passed as an
# argument); offers to save it encrypted in tripcode.json afterwards.
# you will appear as: YourName#ab12
#                      └─ ✍️ ◆ ab12cd34  (colored, clickable to verify)

V2V_TRIPCODE env also works (CI only — prefer the encrypted file).

Type /help inside the chat for commands (/quit, /clear, /whoami, /status, /autoverify, /tab, /meta, /find, /reply, /info, /copy).

Your message first appears grey with ⏳ and is replaced by the confirmed line once the server echoes it back. Unknown /commands are rejected locally and never broadcast (to send text starting with /, wrap it in a ``` code block).

Chat and system messages live on separate tabs: /tab switches between Tab 1 (chat) and Tab 2 (local & system). The bar shows [1:chat] 2:system with the active tab in brackets.

Keys and settings live in your OS config dir (~/.config/V2V/ on Linux, %AppData%\V2V on Windows, ~/Library/Application Support/V2V on macOS): key.json for identities, auto-created config.json for settings. Override with -c/--config-dir and -C/--cache-dir.

For Admins

Create identities with v2vctl (build with make v2vctl / make v2vctl ALL=1 for all platforms):

# 1) Create the role (permissions live here, not in keygen)
./public/V2Vctl-linux-amd64 role create admin --unlimited --prefix "[Admin] "

# 2) Ed25519 key (classic, works everywhere)
./public/V2Vctl-linux-amd64 keygen ed25519 --role admin
# paste the printed snippet via: role add-identity admin --paste

# 3) 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 (-K path, or -k for the default key in the config dir)
./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.

Directories

Path Synopsis
cmd
v2vctl command
Package codebg renders markdown-style code spans in chat text with a distinct terminal background, mirroring how markdown shows inline code and fenced blocks.
Package codebg renders markdown-style code spans in chat text with a distinct terminal background, mirroring how markdown shows inline code and fenced blocks.
Package identity holds the locally stored login identities shared by the chat client and the v2vctl management tool: a classic ed25519 key-file slot and a software-passkey slot inside one versioned container, plus the WebAuthn wire-format helpers the desktop login needs.
Package identity holds the locally stored login identities shared by the chat client and the v2vctl management tool: a classic ed25519 key-file slot and a software-passkey slot inside one versioned container, plus the WebAuthn wire-format helpers the desktop login needs.
internal
chain
Package chain implements the global message log as a hash chain ("blockchain-lite"): every chat message links to the previous one, so altering any byte of any message (content, author, timestamp or ID) breaks the link and every link after it.
Package chain implements the global message log as a hash chain ("blockchain-lite"): every chat message links to the previous one, so altering any byte of any message (content, author, timestamp or ID) breaks the link and every link after it.
passprompt
Package passprompt is the single shared secret-entry component for the repo: hidden password input with optional live strength meter, double-entry confirmation, and default-No confirmation.
Package passprompt is the single shared secret-entry component for the repo: hidden password input with optional live strength meter, double-entry confirmation, and default-No confirmation.
tui
Package tui is the general terminal UI kit: confirmations and selections.
Package tui is the general terminal UI kit: confirmations and selections.
Package linkify wraps plain http(s) URLs in chat text with OSC 8 hyperlink escapes plus SGR styling, so terminals and xterm.js render a clickable, underlined, bright-blue link.
Package linkify wraps plain http(s) URLs in chat text with OSC 8 hyperlink escapes plus SGR styling, so terminals and xterm.js render a clickable, underlined, bright-blue link.
Package markup renders forum-style inline markdown (bold, italic, strikethrough), text(url) links and > quotes into terminal SGR sequences.
Package markup renders forum-style inline markdown (bold, italic, strikethrough), text(url) links and > quotes into terminal SGR sequences.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL