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

authyouragent

v0.3.24

Published

Auth Your Agent SDK: let AI agents act for a person on websites, with the person's approval on their phone.

Readme

authyouragent (JavaScript / TypeScript)

SDK for Auth Your Agent: let AI agents act for a person on websites, with the person's approval on their phone.

  • Agents ask a person for access, then call sites with a short-lived pass and a fresh DPoP proof (RFC 9449) on every request.
  • Sites check each call in one line.

No dependencies. Uses the Web Crypto API and fetch: Node.js 18+, Deno, Bun, Cloudflare Workers and other edge runtimes.

Full documentation: https://authyouragent.com/docs/developers/quickstart

Install

Not on npm yet. From the source tree:

npm install ./sdk-js

Agent

import { AgentClient, keygen } from "authyouragent";

// once: create the agent's key, register `jwk` in the app (Agents → Add an agent)
const key = await keygen();

const agent = new AgentClient({ agentId: "ag_…", privateKeyPem: key.privateKeyPem });

await agent.ensureGrant("jobs.example.com", ["list", "apply"]);   // the person approves on their phone
const res = await agent.fetch("https://jobs.example.com/api/jobs");

// sensitive action: asks the phone again if the site says so
await agent.fetch("https://jobs.example.com/api/jobs/j1/apply", { method: "POST", stepupAction: "apply" });
// reaching the site at another address (proxy, local test)? name the site id:
await agent.fetch("http://127.0.0.1:8000/api/jobs", { site: "jobs.example.com" });

ensureGrant throws AgentError with code "denied", "expired", "timeout" or "revoked".

Site

import { SiteVerifier, AuthError } from "authyouragent";

const verifier = new SiteVerifier({ expectedAudience: "jobs.example.com",
                                    publicBaseUrl: "https://jobs.example.com" });

// Cloudflare Worker / Next.js route / Deno / Bun
export default {
  async fetch(request) {
    try {
      const a = await verifier.verify(request);
      if (!a.scopes.includes("list")) return Response.json({ error: "insufficient_scope" }, { status: 403 });
      return Response.json({ jobs: [], forUser: a.userId });
    } catch (e) {
      if (e instanceof AuthError) return Response.json({ error: e.error }, { status: 401 });
      throw e;
    }
  },
};

Express works the same way (verifier.verify(req)); set publicBaseUrl so the verifier knows the public URL agents signed.

For sensitive actions, pass the action name and check stepup:

const a = await verifier.verify(request, { action: "apply" });
if (!a.stepup) return Response.json({ error: "stepup_required" }, { status: 403 });

mode: "local" checks passes without a network call per request, using cached signing keys and a signed revocation list (refreshed every revTtl seconds, default 60).

Web Bot Auth: recognise any signed agent

authyouragent/webbotauth checks the Web Bot Auth signature on a request from any agent, not only ours.

import { verify } from "authyouragent/webbotauth";

const result = await verify(request);     // Fetch Request, Node/Express req, or { method, url, headers }
if (result.verified) console.log(result.agent);   // the address its keys came from

result.outcome is verified, invalid (wrong, expired, made for another page, or a published test key), unverified (not enough to decide, e.g. the key list could not be fetched) or unsigned. result.reason says why. For Node/Express requests, pass { publicBaseUrl: "https://shop.example" } when your server sits behind a proxy. Key lists are fetched over HTTPS from public addresses only (5 s, 64 kB, no redirects) and cached as their Cache-Control says. Details: https://authyouragent.com/docs/developers/web-bot-auth

Tests

CLOUD=https://… PHONE_HELPER=$PWD/test/phone_helper.py npm test

The live test runs a real agent and a real site against a running Auth Your Agent service, in both cloud and local mode, with a software passkey standing in for the phone.

Licence

MIT