Developer Documentation
Build the real local network.
Where physical proximity guarantees authenticity.
🚀
Getting Started
Install Toolkit-P2P and build your first offline app in 15 minutes
📚
API Reference
Complete documentation for hooks, providers, and utilities
🔌
Transport Layers
Deep dive into Bluetooth, WiFi Direct, and hybrid transports
⚡
Best Practices
Patterns and tips for building robust P2P applications
Quick Start Example
import { P2PProvider, usePeer } from 'toolkit-p2p';
function ChatApp() {
const { peers, send } = usePeer();
return (
<P2PProvider transport="hybrid">
<div>
<h1>Connected: {peers.length}</h1>
<button onClick={() => send('Hello!')}>
Send Message
</button>
</div>
</P2PProvider>
);
}Why Toolkit-P2P
🔌
Multiple Transports
Bluetooth LE, WiFi Direct, or hybrid — seamless switching
🔒
Authenticity Built-In
Physical proximity verifies every peer — no bots, no farms
⚡
Low Latency
Optimized for real-time gaming with sub-50ms delivery