Repository navigation
v0.1.0 - Initial Release
p2p-webapp v0.1.0
Initial release of p2p-webapp - A Go application for hosting peer-to-peer web applications with built-in libp2p networking.
Features
- 🌐 Global peer discovery via DHT and mDNS
- 🔒 NAT traversal with circuit relay, hole punching, and AutoRelay
- 💬 GossipSub messaging for pubsub communication
- 🔗 Protocol-based P2P messaging for direct peer communication
- 📦 Bundled demo application - ready-to-use chat room
- 🛠️ TypeScript client library for browser integration
- 🚀 Single binary distribution - no dependencies needed
Installation
Download the appropriate binary for your platform:
- Linux:
p2p-webapp-linux-amd64 - Windows:
p2p-webapp-windows-amd64.exe - macOS Intel:
p2p-webapp-darwin-amd64 - macOS Apple Silicon:
p2p-webapp-darwin-arm64
Quick Start
# Extract and run the bundled demo
./p2p-webapp serve
# Or extract to customize
mkdir my-app && cd my-app
./p2p-webapp extract
./p2p-webapp serve --dir .What's Included
- DHT-based peer routing for global connectivity
- Automatic relay discovery for peers behind NATs
- Local network discovery via mDNS
- Topic-based peer discovery through GossipSub
- WebSocket-based JSON-RPC protocol
- Built-in SPA routing support
- Cross-platform process management (ps, kill, killall commands)
See CLAUDE.md for full documentation.