Skip to content
Gold Gu worm coiled on a stone pedestal
本命 · Rank 6 ImmortalStrength path · Distributed systemsAlive · web demo + Android APK

Myriad Voices Gu

Distributed real-time communication platform — chat, voice, video & offline Bluetooth mesh

Built to learn how large chat platforms stay fast when everyone talks at once.

Messages/sec sustained in Artillery load tests
~16K
Voices per second
Messages/sec sustained in Artillery load tests
Phone-to-phone relays per message, no internet needed
7
Hops without heaven
Phone-to-phone relays per message, no internet needed
Delivery in a simulated 50-phone mesh, with 35% less relay traffic
99.7%
Voices that arrive
Delivery in a simulated 50-phone mesh, with 35% less relay traffic
Deep-dive design docs, from WebRTC to the offline mesh
11
Scrolls written
Deep-dive design docs, from WebRTC to the offline mesh
demo-discord-seven.vercel.app
Chat stream

Screens from the live app (Nov 2026); chat messages are sample data, and the mesh is the in-browser simulation. Use ← → to switch screens.

Ability

What it does

One engine for text, voice and video. Any server instance can reach any user, every message is written durably before it touches the database, and bursts are absorbed instead of dropped. When the internet drops, phones and PCs nearby carry the chat between themselves over Bluetooth.

  • Redis Pub/Sub fans Socket.IO out across instances; Redis Streams are the write-ahead log, so events survive crashes.
  • BullMQ workers handle notifications, retries and background work; failures go to a dead-letter queue.
  • Mediasoup v3 SFU for voice & video with active-speaker detection.
  • Offline Bluetooth mesh: signed messages hop phone to phone (up to 7 hops), late arrivals catch up on history — tested on real Android and iPhone hardware.
  • Mesh DMs and private channels are end-to-end encrypted (X25519 + XChaCha20-Poly1305); an internet bridge joins distant meshes, and the server sees only ciphertext.
  • One Next.js frontend ships as the website, Android and iOS apps (Capacitor 8, native Java and Swift Bluetooth plugins) and a ~14 MB Windows app (Wails + Go).

Feeding

Inputs & upkeep

A Gu that isn’t fed starves. This one needs:

Eats
WebSocket events, WebRTC audio and video tracks, Bluetooth LE packets
Upkeep
Stream workers continuously drain Redis into PostgreSQL in micro-batches
If starved
If the workers stop, messages wait in Redis Streams. If the internet stops, the mesh carries them over Bluetooth

Gu recipe

The stack
  • Main materialExpress 5 + Socket.IOThe real-time gateway
  • Main materialRedis Streams & Pub/SubFan-out across instances and the write-ahead log
  • Main materialMediasoup v3 SFURoutes voice and video without a mesh
  • Main materialBluetooth LE meshTypeScript router and crypto over thin native plugins (Java, Swift, Go)
  • AuxiliaryNext.js 16 · Postgres · BullMQReact 19 client, Drizzle ORM, background workers, Docker, Artillery
  • AuxiliaryCapacitor 8 · WailsAndroid and iOS apps, Windows desktop app

Refinement record

How it was built
  1. Stage 1Raw materials
    Why build itTo study the engineering behind large-scale communication systems, end to end.
  2. Stage 2Refined
    Chat across instancesSocket.IO over Redis Pub/Sub, so any instance can deliver to any client.
  3. Stage 3Refined
    Durable writesRedis Streams write-behind pipeline, Snowflake IDs, micro-batched persistence and a dead-letter queue.
  4. Stage 4Refined
    Voice & videoMediasoup SFU with active-speaker detection; reactions engine with atomic Lua toggles.
  5. Stage 5Fed · proven
    Under loadArtillery load tests sustained ~16K messages/sec while Redis Streams absorbed burst traffic. Fully Dockerized.
  6. Stage 6Refined
    Offline meshOct 2026: Bluetooth mesh with multi-hop relay, history catch-up, private channels, encrypted DMs and an internet bridge — 166 mesh tests.
  7. Stage 7Fed · proven
    In people’s handsAndroid APK downloadable from the website, iOS build tested on an iPhone, Windows desktop app that joins the mesh.
  8. Stage 8Next refinement
    Forward secrecyNoise XX handshake for direct messages, and a signed release build.
五 · Killer moveUnbroken Chorus
Myriad Voices Gu Silent Link Gu

Built: the chat engine and the BLE mesh work became one app, so conversations keep going over Bluetooth when the internet doesn’t.

Next Gu →Numeral Insight Gu