hromada: an encrypted mesh for your own computers
We built a small Node.js library so our desktop app's computers could help each other without a server in the middle. It is free, open source, and five lines of code away from your own laptop talking to your GPU box.
The short answer
- what
- hromada, an open-source Node.js library that joins your own computers into an end-to-end encrypted peer-to-peer mesh for calls, streams and files.
- why
- Getting two of your own machines to talk usually means a server, an open port, a tunnel service or an account somewhere. We needed none of those for our desktop app, so we wrote the piece that removes them.
- who
- Developers and teams who run work on more than one machine — a laptop and a GPU box, a few office PCs, a Raspberry Pi — and AI-agent users who want an MCP server from another computer.
- where
- npm (`npm i hromada`) and GitHub, under the Apache-2.0 licence. Node.js 22.15 or later.
- when
- Available now on npm, version 5.5; the wire protocol has stayed compatible since 1.0.
- how
- One device founds a mesh and hands out one-time invites; members find each other over the LAN, the internet or a relay you run, and every connection is a Noise XX handshake followed by AES-256-GCM frames.
In plain words
Imagine your laptop and your big home computer could talk to each other like two friends passing notes in a locked box that only they have keys to — wherever they are, without asking a company to carry the notes. That is what hromada does for programs: one computer invites the other once, and from then on they find each other and talk privately on their own.
Why we wrote it
GLLmolfar, our desktop crawler, has a built-in network: when one of your computers crawls a big site, the others can take part of the work. That needed computers to find each other, trust each other and exchange data — without us running a server that would see everyone's crawls, and without asking people to open ports on their routers.
The code that does this turned out to be useful well beyond a crawler, so we split it out, documented it and published it as hromada — the Ukrainian word for a community. It is a library for your own devices and your team's, not a public network.
Five lines from two computers to one mesh
One computer founds the mesh, creates an invite — a single line of about 260 characters, valid for ten minutes and for one device — and the other joins with it. From then on a program can ask for a member by what it can do rather than by address:
import { createMesh, joinMesh } from "hromada/mesh";
const home = await createMesh({ dir: "./mesh-laptop", name: "laptop" });
const invite = home.createInvite(); // "hromada://...", one device, 10 minutes
const gpu = await joinMesh(invite, { dir: "./mesh-gpu", name: "gpu", caps: ["gpu"] });
gpu.serve("infer", () => true, (from, body) => ({ from: from.name, echo: body }));
const answer = await home.callAny({ cap: "gpu" }, "infer", { prompt: "hi" });callAny picks the least busy member with a GPU and moves to another one if the first fails. The example runs as it is on a single machine, with two folders standing in for two devices; on two computers each one usually keeps its own ./mesh folder.
Without writing any code, the command line does the same: npx hromada init, npx hromada invite, and npx hromada join on the other side. npx hromada top shows who is connected and how — LAN, direct, DHT or relay — with the round trip and throughput.
Try it on your own page
See what Vectorscope finds on a page of yours
Everything above is measurable on your own work, and the check takes about a minute. Paste one address and read what comes back.
Open VectorscopeFree · no account · one at a time
An MCP server from another computer
The case we hear about most: an AI client on the laptop and an MCP server on the machine that has the files, the GPU or the database. hromada exposes the server to chosen members, and a bridge runs where the client expects a local server:
# on the computer that has the MCP server
npx hromada init --name gpu-box
npx hromada mcp expose --as files --cmd "python my_mcp_server.py" --allow laptop
npx hromada invite
# on the laptop
npx hromada join hromada://... --name laptop
# in the AI client's MCP config: "command": "npx", "args": ["hromada", "mcp", "bridge", "--server", "files"]The bridge keeps to the device it first used, passes the server only path-like environment variables (so your API keys stay where they are), can expose just a listed subset of tools, holds calls if a tool's description changes until you accept the change, and can log every call to a file.
Why it is safe to use
Every device holds its own key and a credential the mesh's founder signed, and peers are known by device id, never by IP address. Every connection opens with a Noise XX handshake (Noise_XX_25519_ChaChaPoly_SHA256, checked against a published test vector) in which both sides prove who they are, and then runs on AES-256-GCM frames with the keys renewed every 100,000 frames, five minutes or 16 GiB. Turn on the mesh's pre-shared key and a stranger who connects learns nothing, not even which device answered.
The cryptography comes from the three @noble packages, pinned to exact versions, and there are no other runtime dependencies. One thing we say plainly, because the README does: there has been no independent security audit yet. The threat model, the limits and the project's own review are in the repository for anyone to check.
| What | Result | Conditions |
|---|---|---|
| Stream, AES-256-GCM | about 500 MB/s | two processes on one machine, TCP loopback, 1 MB writes |
| File, one machine | 195 MB/s | 100 MB, disk to disk with SHA-256, 1 MB chunks |
| File over a 50 ms round trip | 107 MB/s | the same through a proxy holding every byte 25 ms each way |
| Relay to direct, two real PCs | direct after 0.5 s, 0 of 33 calls lost | two Windows PCs on one Wi-Fi |
Free, and honest about its limits
hromada is open source under the Apache-2.0 licence: free for personal and commercial use, with the code on GitHub and the package on npm. It needs Node.js 22.15 or later and works on Windows, macOS and Linux, including inside Electron apps.
It is the wrong tool if you need to hide who talks to whom from the network (use Tor or a VPN), if your code runs in a browser or on a phone, if you want thousands of strangers in one open network, or if one plain HTTPS server everyone can reach would do. The full list is in the README, and we would rather you read it before you start than after.
Its sister library, recpack, packs the records hromada carries; more about it in the next article. The glossary keeps a short reference entry: hromada.
Questions people ask
Do I need to run a server?
No. Computers on one network find each other directly, and across the internet they can use the optional Hyperswarm DHT. A relay is an option for networks that block both, and you run it yourself.
Is it a VPN?
No. A VPN joins whole machines to a network. hromada joins programs: they call each other by device name and capability, and nothing else on the computer is exposed.
What does it cost?
Nothing. It is open source under Apache-2.0, with no account, no service to sign up for and no paid tier.
The product
Watch it on every page, every day
One reading tells you where a page stands today. The product asks the same questions of the same assistants continuously, so a change is something you are told about rather than something you go looking for.
Request an invitationInvite-only while we keep the readings honest
On this topic
Is my page ready for AI search?
Every day Crawls with the Vectorscope reading beside every page, re-checked after each fix. How the product works
Author
Olexandrauthor
15+ years in marketing and SEO. Dozens of products, mostly the US market. Research and measurement.
LinkedInPass it on
Read in your language
Opens a browser translation of this English article. The original source stays in English.