Typescript library for interacting with Rapture
  • TypeScript 99.5%
  • JavaScript 0.4%
Find a file
2026-03-28 18:09:16 +11:00
.github/workflows chore: remove triage workflows 2025-10-10 15:44:22 +01:00
.vscode chore(housekeeping): add prettier and eslint 2021-11-12 17:47:12 +00:00
src Fix/server deletion lockup (#134) 2026-03-02 21:17:03 -07:00
.gitignore fix: actually commit the merge type 2023-04-08 10:57:11 +01:00
.prettierrc refactor: delete all code 2023-04-07 09:58:47 +01:00
default.nix feat: add nix shell (#121) 2026-01-01 12:50:43 -05:00
eslint.config.js fix: linter fix to make pr checks pass (#137) 2026-03-02 21:14:24 -07:00
LICENSE refactor: revolt.js -> stoat.js (publish 7.3.0) 2025-10-16 18:01:45 +01:00
package.json Rename from stoat.js to rapture.js 2026-03-28 18:09:16 +11:00
pnpm-lock.yaml fix: linter fix to make pr checks pass (#137) 2026-03-02 21:14:24 -07:00
README.md Rename from stoat.js to rapture.js 2026-03-28 18:09:16 +11:00
test.mjs BREAKING CHANGE: remove CJS build 2025-03-14 13:04:35 -04:00
tsconfig.json chore: switch to bigint handling for permissions 2025-10-22 17:50:33 +01:00

rapture.js

rapture.js is a JavaScript library for interacting with the Rapture API

Requirements

To use this module, you must be using at least:

  • Node.js v22.15.0 (LTS) in ES module mode
  • or Deno v2.2 (LTS)

Example Usage

import { Client } from "rapture.js";

let client = new Client();

client.on("ready", async () =>
  console.info(`Logged in as ${client.user.username}!`),
);

client.on("message", async (message) => {
  if (message.content === "hello") {
    message.channel.sendMessage("world");
  }
});

client.loginBot("..");

Reactivity with Signals & Solid.js Primitives

All objects have reactivity built-in and can be dropped straight into any Solid.js project.

const client = new Client();
// initialise the client

function MyApp() {
  return (
    <h1>Your username is: {client.user?.username ?? "[logging in...]"}</h1>
  );
}

Rapture API Types

Warning

It is advised you do not use this unless necessary. If you find somewhere that isn't covered by the library, please open an issue as this library aims to transform all objects.

All rapture-api types are re-exported from this library under API.

import { API } from "rapture.js";

// API.Channel;
// API.[..];