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

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,
});