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

@biab-dev/sdk

v0.2.1

Published

[alpha] Business In A Box developer SDK — not for production; site-scoped collections, assets, and named actions.

Readme

@biab-dev/sdk

Alpha: This package is in an alpha release. APIs and behavior may change without notice. It is not intended for production use yet—evaluate only in development, staging, or experiments.

Phase 4 scaffold for the Business In A Box developer SDK.

This package is the client-side half of the package architecture defined in:

Purpose

The SDK is intended to talk to package-facing host routes under:

/api/package/v1

The host app stays responsible for:

  • WorkOS identity mapping
  • organization and site ownership checks
  • API key verification
  • permission enforcement
  • Drizzle persistence
  • collection schema validation

The package is responsible for:

  • typed contracts
  • fetch transport
  • developer ergonomics
  • stable client abstractions

Current Surface

The scaffold currently provides:

  • Zod contracts for collections, rows, assets, actions, and auth introspection
  • a typed fetch client
  • site-scoped resource helpers
  • structured API errors

Example

import { createBiabDevClient } from "@biab-dev/sdk";

const client = createBiabDevClient({
	baseUrl: "https://host.example.com/api/package/v1",
	apiKey: process.env.BIAB_API_KEY!,
});

const site = client.site("00000000-0000-0000-0000-000000000000");

await client.introspect();
await site.collections.list();
await site.collections.get("products");
await site.rows.query("products", {
	filters: [{ fieldName: "title", operator: "contains", value: "chair" }],
	limit: 10,
});

Notes

  • This package is scaffolded first; the host package routes still need to be implemented.
  • Collection contracts intentionally mirror the current BIAB site_data_* model instead of inventing a second schema system.

Publishing to npm

Scoped packages like @biab-dev/sdk only publish if the @biab-dev scope exists on npm and your user is allowed to publish to it. If you skip this, npm publish fails with 404 Scope not found / PUT .../@biab-dev%2fsdk.

1. Create the npm org (required once)

  1. Open npmjs.com → Create an organization.
  2. Choose the Organization name biab-dev (must match the scope in package.json).
  3. Complete signup (a free org can publish public packages).

After this, your logged-in user (check with npm whoami) is typically an owner and can publish @biab-dev/* without extra steps.

If the name biab-dev is already taken on npm, pick another org name and change the name field in package.json to @that-org/sdk (and update imports across this monorepo that reference @biab-dev/sdk).

2. Login

npm login

3. Build and dry run (from this biab-dev folder)

npm run build
npm pack --dry-run

Confirm only dist/, README.md, LICENSE, and package.json are packed ("files": ["dist"]).

4. Publish

npm publish --access public

prepublishOnly runs npm run build automatically before publish.

5. Later releases

Bump version in package.json (or npm version patch|minor|major), then npm publish again.

Consumers install with:

npm install @biab-dev/sdk

Troubleshooting

| Error | Meaning | | --- | --- | | 404 Scope not found | The @biab-dev organization was never created (or you’re logged into a user that isn’t a member). Create the org (step 1) or use a scope you own. | | 403 Forbidden | You’re not allowed to publish this scope. Ask an org owner to add your npm user with publish rights, or publish under your own scope. | | Web login during publish | Normal if you use 2FA — complete the browser prompt, then retry if needed. |