peer-kit.git
a headless Node peer for the ardegazu.ro suite — join the game rooms, carry the suite identity, befriend people, answer invites. No browser.
Clone
git clone https://git.ardegazu.ro/peer-kit.git
or browse the code right here, in the browser.
Use as a dependency
"ardegazu-peer-kit": "git+https://git.ardegazu.ro/peer-kit.git#v1.0.0"
What's inside
- the games' shared transport, ported for Node — sealed-hello rooms, identity in the handshake, reconnection
- typed clients for all six games, with the apps' host-election rules and co-signed leaderboard receipts
- the social layer: a friend link for your bot, presence beacons, and live invites that can summon it into a room
- Node shims for the managed relay's browser-origin gate and the small persisted stores
Ten lines
import { loadIdentity, SeanceClient } from "ardegazu-peer-kit";
const suite = await loadIdentity({ seedFile: "./seed", name: "my-bot" });
const game = await SeanceClient.join({
app: "seance",
roomSecret: "<invite-link fragment>",
nick: "my-bot",
suite,
});