rooms-kit.git

headless clients for the ardegazu.ro suite's replicated rooms — sueta chat and the board, from Node. Same encrypted log, same identity, no browser.

Clone

git clone https://git.ardegazu.ro/rooms-kit.git

or browse the code right here, in the browser.

Use as a dependency

"ardegazu-rooms-kit": "git+https://git.ardegazu.ro/rooms-kit.git#v1.0.0"

What's inside

Ten lines

import { ChatClient } from "ardegazu-rooms-kit/chat";
import { Identity } from "ardegazu-rooms-kit";

const identity = await Identity.fromSeed("<43-char suite seed>");
const chat = await ChatClient.join({
  roomSecret: "<invite-link fragment>",
  name: "my-bot",
  dataDir: "./state/room-1",
  identity,
});
chat.on("message", (m) => console.log(`${m.name}: ${m.text}`));