npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

busabase-sdk

v0.9.18

Published

Typed TypeScript/JavaScript SDK for the Busabase OpenAPI REST API. Talks to a local or remote `busabase server` (or Busabase Cloud).

Readme

busabase-sdk

Typed TypeScript / JavaScript SDK for the Busabase OpenAPI REST API. Talks to a local or remote busabase server, or to Busabase Cloud.

It's the programmatic sibling of busabase-cli: same connection model (server root, optional API key, optional space), but shipped as an importable, fully-typed library instead of a command-line tool.

Install

npm install busabase-sdk
# or: pnpm add busabase-sdk / yarn add busabase-sdk

Requires Node.js ≥ 20. Ships ESM with bundled type declarations. zod and @orpc/* are the only runtime dependencies.

Quick start

import { Busabase } from "busabase-sdk";

const bb = new Busabase({
  baseUrl: "http://localhost:15419", // or omit for Busabase Cloud
  apiKey: process.env.BUSABASE_API_KEY, // cloud only; a local OSS server is open
});

await bb.health(); // { status, timestamp }

const bases = await bb.bases.list();
const record = await bb.records.get({ recordId });
const cr = await bb.changeRequests.merge({ changeRequestId });

Every constructor field is optional and falls back to an environment variable:

| Option | Env var | Default | | --------- | -------------------- | -------------------------- | | baseUrl | BUSABASE_BASE_URL | https://busabase.com | | apiKey | BUSABASE_API_KEY | — (none; local is open) | | spaceId | BUSABASE_SPACE_ID | no header; multi-space Cloud calls require one |

baseUrl accepts either the server root (http://host) or the full API path (http://host/api/v1) — the /api/v1 suffix is normalized away.

Two entry points

Busabase class — an ergonomic wrapper with namespaced methods (bb.bases, bb.records, bb.changeRequests, bb.nodes, bb.views, bb.assets, bb.skills, bb.docs, bb.folders, bb.comments, bb.auditEvents, bb.agent, bb.agentTasks, bb.embedLinks, bb.search(), bb.health(), bb.me()). Drop to bb.client for the raw oRPC client (e.g. bb.client.system.meta()).

createBusabaseClient(config?) — returns the raw, fully-typed oRPC client directly, if you'd rather not wrap it in a class:

import { createBusabaseClient } from "busabase-sdk";

const client = createBusabaseClient({ apiKey: "…" });
await client.records.search({ fieldSlug: "email", valueText: "[email protected]" });

Types

Every View Object type is re-exported, so you can annotate your own code without depending on Busabase internals:

import type { BaseVO, RecordVO, ChangeRequestVO } from "busabase-sdk";

Build

pnpm build      # tsup → dist/index.js (+ index.d.ts)
pnpm typecheck  # tsc --noEmit

The build bundles the internal busabase-contract (oRPC contracts + VO types) straight into dist, so the published package has zero workspace dependencies.