hromada/docs

open source · node.js 22.15+ · apache-2.0

Connect your machines.Pack your JSON.Keep every byte.

Two small libraries for things people keep building by hand: your own computers talking to each other with no server, no tunnel and no open port, and piles of JSON stored many times smaller, coming back exactly as they went in. Each comes with examples of about 20 lines you run with one command.

The two libraries

Separate packages; each works alone.

Start in one minute

Every example is a whole program. For the demo both "computers" run inside one process, so nothing needs a second machine.

Two real runs side by side: a hromada example calling the home PC model, and a recpack example packing 1 000 JSON records 12 times smaller

Try it yourself:

terminal
git clone https://github.com/Olexan-art/hromada && cd hromada
npm ci && npm run build
node examples/02-home-gpu-ollama.mjs      # a laptop asks the home PC's model a question
node examples/03-sync-only-changes.mjs    # 5 MB sent, 1 KB edited, under 0.1 MB sent again

Building with Cursor, Claude Code or Codex?

You do not have to learn the API first. Each library has a short file written for AI coding agents; paste one line into your agent and it reads the rest. The exact lines are on the hromada and recpack pages.

Together

They are separate packages and work alone. Used together, recpack packs the data and hromada carries it between your machines, encrypted: for example a crawler on one computer sending compact batches of pages to the computer that stores them.