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

clawauth

v0.4.1

Published

Cloudflare Worker + CLI for ephemeral OAuth dead-drop with async agent workflows.

Readme

clawauth (multi-provider, async OAuth for agents)

Cloudflare Worker + CLI for ephemeral OAuth dead-drop with async agent workflows.

  • /init creates session in KV and returns both shortAuthUrl and authUrl
  • /callback validates signed state, exchanges code for token, encrypts with nacl.box
  • /status/:sessionId returns pending|completed|error (no token payload)
  • /claim/:sessionId returns encrypted blob once completed and deletes server session
  • /providers returns supported providers
  • /<provider>/<sessionId> short redirect URL to long provider OAuth URL

Supported providers

  • notion, github, discord, linear, airtable, todoist, asana, trello, dropbox, digitalocean, slack, gitlab, reddit, figma, spotify, bitbucket, box, calendly, fathom, twitch

Install

npm install

Publish/CLI usage

After publish:

npx clawauth login start notion

CLI help:

clawauth --help
clawauth login --help
clawauth explain

Global install:

npm i -g clawauth
clawauth login start notion

Async command model

Start and return immediately:

clawauth login start notion --ttl 3600

Check later:

clawauth login status <sessionId>

Machine-readable output:

clawauth login status <sessionId> --json

List all local sessions (grouped by provider, with live status check):

clawauth sessions

Claim later (decrypt + store refresh token):

clawauth login claim <sessionId>

Read stored tokens later from keychain:

clawauth token list
clawauth token get notion
clawauth token env notion

For shell export usage:

eval "$(clawauth token env notion)"

Optional blocking mode:

clawauth login wait <sessionId>

Provider discovery:

clawauth providers

TTL

  • Default session TTL: 3600 seconds (1 hour)
  • Configurable per request via --ttl
  • Server clamps TTL to 60..86400 seconds
  • Optional server default override with worker var SESSION_TTL_SECONDS

Worker config

/Users/hagen/Projects/skills/clawauth/wrangler.toml uses custom domain:

  • auth.clawauth.app

Global worker settings:

  • PUBLIC_BASE_URL=https://auth.clawauth.app

Required worker secrets:

  • STATE_SIGNING_SECRET
  • For each provider:
    • <PROVIDER>_CLIENT_ID
    • <PROVIDER>_CLIENT_SECRET
    • optional <PROVIDER>_REDIRECT_URI
    • optional <PROVIDER>_AUTH_URL
    • optional <PROVIDER>_TOKEN_URL

Example for Notion:

npx wrangler secret put NOTION_CLIENT_ID
npx wrangler secret put NOTION_CLIENT_SECRET
npx wrangler secret put NOTION_REDIRECT_URI

Security model (current)

  • Signed OAuth state via HMAC, including provider binding
  • Signed polling/claim requests (timestamp|sessionId|method|path|nonce)
  • Nonce replay protection
  • Per-session polling rate limits
  • E2E encrypted token blob (nacl.box)
  • Token only returned by /claim; KV deleted on successful claim
  • Refresh token stored in system keychain by CLI
  • Local session cryptographic material stored in keychain until claim/delete

Open source hygiene

  • Repository can be public.
  • Never commit: *_CLIENT_SECRET, STATE_SIGNING_SECRET, API tokens.
  • Keep runtime secrets only in Cloudflare Worker secrets.