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

@babelforce/manager-sdk

v0.46.0

Published

TypeScript SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.

Readme

@babelforce/manager-sdk

TypeScript SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.

One client, configured once, exposes resource namespaces over the API. Authentication, paging, and error handling are handled for you.

📖 Docs: https://babelforce.github.io/manager-sdk/

Install

npm install @babelforce/manager-sdk

ESM-only, ships with types. Node 18+ (for global fetch). There is no CommonJS build — from CJS, load it with a dynamic import(). Top-level main/types fields are provided as a fallback so legacy resolvers (TypeScript moduleResolution: "node10", bundlers that predate exports) still find the entry point and typings.

Usage

import { ManagerClient } from "@babelforce/manager-sdk";

const mgr = await ManagerClient.connect({
  auth: { kind: "clientCredentials", clientId, clientSecret }, // or { kind: "password", user, pass }
  // baseUrl defaults to https://services.babelforce.com
});

// list users (auto-paginated)
for await (const user of mgr.users.list()) {
  console.log(user.email);
}

await mgr.users.create({ email: "[email protected]", roles: [] });
await mgr.users.enable(["[email protected]"]);

Authentication

  • { kind: "refreshToken", refreshToken, clientId } — a refresh token from the Authorization Code + PKCE flow (helpers: pkceChallenge, buildAuthorizeUrl, authorizationCodeGrant); transparent refresh with rotation. Best for apps acting on behalf of a user.
  • { kind: "clientCredentials", clientId, clientSecret } — OAuth2 client_credentials grant with transparent refresh, for server-to-server use (credential issuance is in security review — see the Authentication guide).
  • { kind: "bearer", token } — a token you already hold.
  • { kind: "password", user, pass } — OAuth2 password grant (legacy) with transparent refresh.

Errors

Non-2xx responses throw a ManagerApiError with status, code, and body. Failed OAuth2 token grants (e.g. invalid client credentials) throw the same typed error — branch on status/code instead of the message string.

Custom host

await ManagerClient.connect({
  baseUrl: "https://acme.babelforce.com",
  auth: { kind: "bearer", token },
});

License

Apache-2.0