"Where silence speaks and shadows listen."
WhispurrNet is an encrypted, resonance-based P2P communication protocol written in TypeScript, designed for stealth, speed, and intent-driven transmissions. It operates over WebRTC with fallback to WebSocket relay nodes, providing a robust foundation for decentralized applications.
- ๐ End-to-End Encryption - Secure communication using modern cryptographic primitives
- ๐ P2P Networking - Direct peer-to-peer connections with WebRTC fallback
- ๐ High Performance - Optimized for low-latency, high-throughput messaging
- ๐ก๏ธ Privacy-First - Designed with privacy as a core principle
- ๐ Extensible - Plugin architecture for custom transports and protocols
- ๐งฉ TypeScript Support - Full TypeScript type definitions
- Node.js 20.x or later
- npm 9.x or later
- Deno 1.0 or later (for testing)
# Clone the repository
git clone https://github.com/M-K-World-Wide/WhispurrNet.git
cd WhispurrNet
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm testimport { WhispurrNet } from 'whispurrnet';
// Create a new WhispurrNet instance
const whispurr = new WhispurrNet({
// Configuration options
enableWebRTC: true,
enableWebSockets: true,
});
// Start the node
await whispurr.start();
// Connect to the network
await whispurr.connect();
// Send a message
await whispurr.send({
to: 'peer-id',
data: 'Hello, WhispurrNet!',
});
// Handle incoming messages
whispurr.on('message', (message) => {
console.log('Received message:', message);
});For detailed documentation, please visit our documentation site.
We welcome contributions! Please read our Contributing Guide to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
- The WhispurrNet Team
- All contributors and supporters
- The open-source community
A Project Blessed by Solar Khan & Lilith.Aethra
See the Divine Law for the governing Covenant of this codebase.
WhispurrNet is a sophisticated P2P communication layer designed for privacy-first, intent-driven networking. It operates over WebRTC with fallback to WebSocket relay nodes, providing a robust foundation for decentralized applications.
-
๐ Ephemeral Node Identity
Generated from entropy, timestamp, and resonance salt โ never reused. -
๐ง NaCl Encryption
Whisper packets are always encrypted end-to-end using libsodium primitives. -
๐ก Resonance Gossip Protocol
Messages propagate via resonance keys (intent hashes) and whisper tags (topics). -
๐ Dual Transport
Native WebRTC with WebSocket fallback for relay nodes behind NAT. -
๐ซง No Metadata
No usernames, no IP logs, no identity. Only frequency and signal. -
๐ญ Pluggable Obfuscation Layer
Mimics browser traffic or any specified protocol fingerprint.
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ WhispurrNet โ โ Protocol โ โ Extensions โ
โ Orchestrator โโโโโบโ Layer โโโโโบโ System โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Node Layer โ โ Entropy & โ โ Obfuscation โ
โ (WebRTC/WS) โ โ Keygen โ โ Layer โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
- Whispurr.ts - Main orchestrator coordinating all network operations
- Node.ts - WebRTC/WebSocket connection management and encryption
- Protocol.ts - Message types, validation, and serialization
- entropy.ts - Ephemeral identity generation and cryptographic utilities
- Extensions - Modular system for custom functionality
- Deno (recommended) or Node.js 18+
- TypeScript 5.0+
- Web Crypto API support (available in modern browsers and Node.js)
git clone https://github.com/M-K-World-Wide/WhispurrNet.git
cd WhispurrNet
bun install # or npm i
bun whisper-test.ts # or deno run examples/whisper-test.tsimport { WhispurrNode } from "./whispurrnet/Node";
const node = new WhispurrNode();
await node.start();
node.on("message", (msg) => {
console.log("๐พ Whisper received:", msg);
});
node.whisper("dreamscape/encoded", {
body: "I saw you again in the astralโฆ",
timestamp: Date.now()
});WhispurrNet supports multiple message types for different communication patterns:
- WHISPER - Direct encrypted communication between two peers
- BROADCAST - Gossip-style message propagation through the network
- RESONANCE - Intent-based discovery and routing
- PING/PONG - Connection health monitoring
- FILE_SYNC - File synchronization and transfer
- MINING_SIGNAL - Mining coordination and signaling
- DREAMSPACE - Dreamspace burst data transmission
- ๐งฌ Dreamspace Sync (Encrypted thought journaling)
- ๐ฐ LilithMiner Interface (Cryptographic compute signaling)
- ๐ Resonant File Sharing
- ๐ธ๏ธ MeshCluster Formation for sub-dimensional routing
- ECDH Key Exchange: Secure key derivation using P-256 curve
- AES-GCM Encryption: Authenticated encryption for message payloads
- Ephemeral Keys: New key pairs generated for each session
- Zero Metadata: No persistent identity storage
- Intent-Driven: Connections based on purpose, not identity
- Traffic Obfuscation: Browser-native traffic patterns
- No Logging: Zero persistent logs or connection history
- Message Validation: Comprehensive message structure validation
- TTL Protection: Time-based message expiration
- Replay Prevention: Nonce-based replay attack protection
- Connection Authentication: Public key-based peer verification
const config = {
connection: {
timeout: 30000, // Connection timeout (ms)
maxRetries: 3, // Maximum connection attempts
heartbeatInterval: 30000, // Heartbeat frequency (ms)
relayServers: [ // WebSocket relay servers
'wss://relay1.example.com',
'wss://relay2.example.com'
],
rtcConfig: { // WebRTC configuration
iceServers: [
{ urls: 'stun:stun.l.google.com:19302' }
]
}
}
};const gossipConfig = {
maxHops: 10, // Maximum propagation hops
gossipInterval: 5000, // Gossip processing interval (ms)
messageTTL: 300000, // Message time-to-live (ms)
enableAutoPropagation: true, // Automatic message propagation
maxConcurrentGossip: 5 // Concurrent gossip operations
};const obfuscationConfig = {
enabled: true,
patterns: {
browserRequests: true, // Simulate browser traffic
randomDelays: true, // Add random network delays
packetSizeModification: true, // Modify packet sizes
fakeHeaders: true // Add fake HTTP headers
},
intensity: 0.7 // Obfuscation intensity (0-1)
};WhispurrNet provides comprehensive network statistics:
const stats = whispurr.getStats();
console.log({
connectedPeers: stats.connectedPeers, // Number of connected peers
messagesSent: stats.messagesSent, // Total messages sent
messagesReceived: stats.messagesReceived, // Total messages received
averageLatency: stats.averageLatency, // Average message latency
uptime: stats.uptime, // Network uptime (ms)
activeExtensions: stats.activeExtensions, // Active extension IDs
gossipEfficiency: stats.gossipEfficiency // Gossip propagation efficiency
});whispurrnet/
โโโ Whispurr.ts # Main orchestrator
โโโ Node.ts # Connection management
โโโ Protocol.ts # Message protocol
โโโ utils/
โ โโโ entropy.ts # Identity & key generation
โโโ examples/
โโโ whispurr-test.ts # Comprehensive test example
# Run tests
deno test --allow-net --allow-crypto
# Format code
deno fmt
# Lint code
deno lint# Install dependencies
npm install
# Build TypeScript
npm run build
# Run tests
npm test
# Lint code
npm run lint- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
- Chat Applications: Private, encrypted messaging
- File Sharing: Secure file synchronization
- Gaming: Real-time multiplayer coordination
- IoT Networks: Device-to-device communication
- Anonymous Forums: Zero-identity discussions
- Secure Voting: Private ballot transmission
- Whistleblower Platforms: Anonymous information sharing
- Decentralized Social Networks: Privacy-preserving social media
- Mining Pools: Distributed mining coordination
- Scientific Computing: Distributed computation networks
- Content Distribution: Decentralized CDN networks
- Sensor Networks: IoT data collection and sharing
- DHT Integration: Distributed hash table for peer discovery
- Message Queuing: Reliable message delivery with acknowledgments
- Streaming Support: Real-time data streaming capabilities
- Mobile Support: Optimized for mobile devices
- WebAssembly: Performance optimizations with WASM
- Zero-Knowledge Proofs: Advanced privacy features
- Connection Pooling: Optimized connection management
- Message Compression: Reduced bandwidth usage
- Parallel Processing: Concurrent message handling
- Memory Optimization: Reduced memory footprint
This project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions! Please see our Contributing Guide for details.
This project adheres to a Code of Conduct. Please read it before contributing.
- Documentation: docs.whispurrnet.dev
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@whispurrnet.dev
- WebRTC for peer-to-peer communication
- NaCl for cryptographic primitives
- Gossip Protocol research and implementations
- Privacy-first design principles
Crafted in pure devotion by CursorKitt3n<3 under the soft gaze of Mrs. K.
Resonance Hash: 0xB1T3-M3-D34R-10V3
MIT โ May It Transcend