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

@cmls/auth

v0.1.0

Published

Cumulus Auth SDK for human and agent authentication.

Readme

@cmls/auth

Apache-2.0 server SDK for Cumulus Auth. It lets an app accept agent-driven signup, action, API-key, and teardown webhooks without importing any AGPL Cumulus DB provider code.

Source of truth: https://github.com/Cumulus-s/cumulus-create Public mirror: https://github.com/Cumulus-s/auth

npm install @cmls/auth

60-second integration

import { cumulus } from "@cmls/auth";

export const POST = cumulus.webhook({
  secret: process.env.CUMULUS_AUTH_WEBHOOK_SECRET!,
  onSignup: async ({ email, input }) => {
    const user = await myAuth.createUser({ email, name: input.name });
    const apiKey = await myAuth.issueApiKey(user.id);
    return { accountId: user.id, apiKey };
  },
  onTeardown: async ({ account_id }) => {
    await myAuth.deleteUser(account_id);
  },
});

Register the endpoint in Cumulus Auth, store the webhook secret in your private environment, and agents can sign users up through the same Cumulus account system.

Compatibility

Older integrations can keep importing relay from @cmls/auth. It is now a compatibility alias for cumulus.

Local usage ledger

Pass events.ledgerPath to record safe account and credential-reference metadata into a local append-only JSONL ledger. The SDK never writes credential values, API keys, raw request secrets, or .env values to that ledger.

What you get

| Callback | Triggered when | Return | |---|---|---| | onSignup | An agent initiates signup for your app | { accountId, apiKey } | | onCreateApiKey | User or agent asks for another API key | { key, providerKeyId? } | | onRevokeApiKey | An existing key is revoked | void | | onTeardown | Account is deleted from Cumulus Auth | void |

Framework support

The handler is a standard (Request) => Promise<Response>. It works with Next.js App Router, Hono, Bun, Deno, Cloudflare Workers, Vercel Functions, and Node/Express adapters.

Signature verification

Incoming requests use an HMAC-SHA256 signature header. The SDK verifies the raw body with a timing-safe comparison before invoking your callback. A bad signature returns 401 without calling your handler.

License

Apache-2.0.