mesh-globe — Decentralized P2P WebRTC Mesh Visualization

A lightweight, serverless browser-based 3D Earth globe visualizing real-time decentralized WebRTC peer-to-peer mesh connectivity, latency, and geographic distribution using Trystero over Nostr relays.

Core Features

  • Serverless Decentralization: Direct browser-to-browser WebRTC DataChannel mesh connections without central coordination servers or user registration.
  • Nostr Relay Signaling: Resilient peer discovery and ICE candidate exchange conducted across public Nostr relay infrastructure.
  • 3D Earth Globe Visualization: Real-time interactive globe powered by WebGL, Three.js, and globe.gl with configurable styles (Night, Dark Minimal, Blue Marble, Wireframe).
  • Real-Time Latency Telemetry: Continuous round-trip time (RTT) heartbeats every 2.5s with Exponential Moving Average (EMA) smoothing.
  • Color-Coded Latency Indicators: Green (<100ms) for optimal connectivity, amber (100–250ms) for acceptable, and red (>250ms) for degraded latency.
  • URL Hash Mesh Rooms: Isolate connectivity to specific groups by appending a room name to the URL (e.g. #team-sync). Defaults to #global.
  • Client-Side Privacy: City-level coarsened coordinates with bounded random jitter (~5–10 km) and an instant Ghost Mode toggle.

Frequently Asked Questions

How do I join a private group?

Append a hash identifier to the URL (such as https://mesh-globe.ii2d.com/#my-room) and share it with your peers to create a dedicated mesh network.

Is my exact physical location shared?

No. Geolocation is coarsened to city-level centroids and offset with random jitter. Enabling Ghost Mode hides your location entirely.

Technology Stack

Built with Svelte 5 (Runes), TypeScript, globe.gl (Three.js), Trystero (Nostr backend), and Vite.