Uncensorable, peer-to-peer data coordination substrate. Sovereign Mesh integrates WebRTC signaling with custom DHT (Distributed Hash Table) layers, enabling real-time, resilient communication channels across global nodes.
Direct connection of browser and hardware nodes over decentralized WebRTC, completely skipping centralized middlemen and ISP bottlenecks.
Uses State-based CRDTs (Yjs protocol) to automatically resolve data merges, syncing the Network State globally even with high lag or network splits.
Noise-protocol based handshake provides end-to-end cryptographic encryption across nodes, rendering communications completely invisible to surveillance.
If global cables cut or cities lose backbone internet, localized mesh islands bridge data automatically, maintaining civic systems locally.
import * as Y from 'yjs';
import { WebrtcProvider } from 'y-webrtc';
import { SecureNoiseEncryptor } from '@promethea/mesh-crypto';
const doc = new Y.Doc();
// Set up noise-protocol based local encryption
const encryptor = new SecureNoiseEncryptor({
keyPair: SecureNoiseEncryptor.generateKeys()
});
console.log('Spinning up secure WebRTC sync interface...');
const provider = new WebrtcProvider(
'promethea-sovereign-state-v2',
doc,
{
signaling: ['wss://mesh.lvhllc.org', 'wss://mesh-backup.promethea.org'],
password: encryptor.deriveChannelSecret('promethea-state-room')
}
);
// Map global citizen status to conflict-free variables
const globalState = doc.getMap('sovereign_citizenry');
globalState.observe((event) => {
event.changes.keys.forEach((change, key) => {
console.log(`[Mesh Update] ${key}: `, change.action);
});
});
// Update personal status in conflict-free state
globalState.set('citizen_node_status_active', {
telemetryStream: 'CONNECTED',
timestamp: Date.now()
});