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

boominjs

v0.3.3

Published

Browser SDK for Boomin Creator Connect.

Readme

boominjs

Browser SDK for Boomin Creator Connect.

Install

npm install boominjs
npx boominjs init

npx boominjs init opens Boomin in your browser, creates or selects a creator program, adds localhost origins, and writes:

VITE_BOOMIN_PUBLIC_KEY=...
VITE_BOOMIN_PROGRAM_ID=...
VITE_BOOMIN_API_BASE=https://api.boomin.ai/v1/connect

CLI

The CLI is built for humans and agents. Every command supports -h / --help, and structured commands support --json.

npx boominjs --help
npx boominjs scopes
npx boominjs scopes explain units:create
npx boominjs token create --name "Unit Agent" --scopes org:read,units:read,units:create,units:delete
npx boominjs token list
npx boominjs platform smoke --read-only --token sk_boomin_live_...
npx boominjs platform smoke --write --cleanup --token sk_boomin_live_...

Platform tokens are private server-side credentials for agents and automation. Do not put sk_boomin_live_... tokens in browser code. Creator Connect public keys (pk_live_...) remain the frontend-safe keys for signup and Instagram OAuth.

import Boomin from "boominjs";

Boomin.init({
  publicKey: import.meta.env.VITE_BOOMIN_PUBLIC_KEY,
  programId: import.meta.env.VITE_BOOMIN_PROGRAM_ID,
  apiBase: import.meta.env.VITE_BOOMIN_API_BASE,
  redirectUri: window.location.origin + window.location.pathname,
});

await Boomin.requestOtp({
  email: "[email protected]",
  name: "Creator Name"
});

const creator = await Boomin.verifyOtp({
  email: "[email protected]",
  code: "123456"
});

console.log(creator.status); // pending

document.querySelector("#connect-instagram").addEventListener("click", async () => {
  Boomin.connectInstagram({
    requireCreator: true,
    referralCode: new URLSearchParams(window.location.search).get("ref"),
    metadata: { source: "creator_program_page" },
  });
});

CDN

<script src="https://cdn.boomin.ai/boomin-connect.js"></script>
<script>
  window.Boomin.init({
    publicKey: "pk_live_your_program",
    programId: "your-program-id",
    redirectUri: window.location.href
  });

  window.Boomin.attachConnectButton("#connect-instagram", {
    label: "Connect Instagram",
    pendingLabel: "Pending approval",
    requireCreator: true
  });
</script>

Events

Boomin.on("connect:pending_approval", (status) => {
  console.log("Creator connected and is waiting for approval", status);
});

Boomin.on("connect:error", (error) => {
  console.error(error);
});

Account-first flow

[email protected] supports the recommended creator flow:

  1. Boomin.requestOtp({ email, name })
  2. Boomin.verifyOtp({ email, code })
  3. Boomin.connectInstagram({ requireCreator: true })
  4. Boomin.getConnectStatus(sessionId)

After OTP verification, the SDK stores the creator token in browser storage scoped to the public key and automatically attaches it when starting Instagram OAuth.

The SDK intentionally ships without required button styling. Use your own markup and CSS, or use attachConnectButton for state management while keeping full control of the visual design.