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

@dwk/solid-oidc

v1.0.0-beta.2

Published

Solid-OIDC OpenID Provider: authorization-code + PKCE + DPoP-bound, ES256-signed WebID access tokens.

Readme

@dwk/solid-oidc

A Solid-OIDC OpenID Provider for Cloudflare Workers: run your own identity provider so your Solid pod accepts tokens issued on your own domain.

Issues DPoP-bound, ES256-signed access tokens carrying a webid claim (plus OIDC ID tokens) through an authorization-code + PKCE (S256) flow. The access-token claim set is exactly what @dwk/solid-pod validates (iss, webid, aud, cnf.jkt, typ: at+jwt), so a pod configured to trust this OP's JWKS accepts its tokens.

Usage

import { createSolidOidc, generateSigningJwk } from "@dwk/solid-oidc";

// Provision once; persist as the OIDC_SIGNING_KEY secret.
const signingKey = await generateSigningJwk();

const handler = createSolidOidc({
  issuer: "https://id.example",
  signingKey, // a private ES256 JWK (injected secret)
  mountPath: "/oidc", // coexist with @dwk/indieauth on one origin
  audience: ["solid", "https://alice.example"],
  // Owner authentication + consent (the IndieAuth pattern):
  approveAuthorization: async (req, httpRequest) => {
    // ...render a login/consent page (return a Response), or:
    return { webid: "https://alice.example/profile#me" };
  },
});

export default {
  fetch: (request, env, ctx) => handler(request, env, ctx),
};

Endpoints (under mountPath, default /oidc)

| Endpoint | Method | Purpose | | --- | --- | --- | | /.well-known/openid-configuration | GET | OIDC discovery (authority-bound, not prefixed) | | /oidc/jwks | GET | JWK Set (public key only) | | /oidc/authorize | GET | Authorization endpoint (PKCE S256 required) | | /oidc/token | POST | Token endpoint (DPoP required; code → tokens) |

Bindings (Env fragment)

| Binding | Type | Purpose | | --- | --- | --- | | AUTH_DB | D1 | Single-use authorization codes (solid_oidc_codes) |

The ES256 signing key is passed through config (signingKey), sourced from a composer-injected secret — never read from the environment by the package.

Security

  • PKCE S256 required (plain rejected).
  • DPoP required at the token endpoint (RFC 9449); its jkt is bound into the token as cnf.jkt.
  • Single-use codes via a conditional UPDATE … RETURNING (D1, strongly consistent); codes are stored SHA-256-hashed, never in plaintext.
  • Client/redirect validated before any redirect (no open-redirect error sink).

Scope / deferred

First increment. Not yet implemented (see spec/packages/solid-oidc.md): client-identifier document validation, refresh tokens, dynamic client registration / PAR / introspection wiring (building blocks in @dwk/oauth), DPoP server nonce, and a UserInfo endpoint.

License

ISC