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

oidcraft

v0.0.1

Published

An OpenID Provider library: RFC-compliant core, runtime-portable, pluggable storage, identity brokering built in

Readme

oidcraft

An OpenID Provider library for TypeScript. RFC-compliant core, runtime-portable, pluggable storage, and identity brokering as a first-class mode rather than an application concern.

Status: scaffold. The package structure, build and adapter contract exist; the protocol does not yet. See PLAN.md.

Why

oidc-provider is the reference for Node and this owes a lot to it. oidcraft differs in three ways:

  • Runtime-portable. One build runs on Bun, Node, Deno and workerd. The core never imports node:http or node:crypto — cryptography goes through WebCrypto.
  • Batteries included for the interaction half. Login, consent and an admin surface ship with it, closer to what Django's oauth-toolkit gives a Django project.
  • Federation is a first-class mode. A deployment can be a pure broker in front of Entra, Google or any OIDC provider, a local-account OP, or both at once.

Entries

import { ... } from 'oidcraft'                    // the OP — fetch in, fetch out, no I/O
import { ... } from 'oidcraft/federation'         // brokering to upstream providers
import { ... } from 'oidcraft/interaction'        // login / consent policy

import { ... } from 'oidcraft/runtimes/node'      // node:http bridge + request context
import { ... } from 'oidcraft/runtimes/bun'       // request context for Bun.serve
import { ... } from 'oidcraft/runtimes/deno'      // request context for Deno.serve
import { ... } from 'oidcraft/runtimes/workerd'   // request context for Cloudflare Workers

import { ... } from 'oidcraft/adapters/memory'    // development and tests
import { ... } from 'oidcraft/adapters/drizzle'   // Postgres, SQLite
import { ... } from 'oidcraft/adapters/kysely'    // Postgres, SQLite, MySQL

drizzle-orm, kysely and openid-client are optional peer dependencies, each confined to the entry that uses it — installing oidcraft pulls none of them.

Only Node needs an HTTP bridge; Bun, Deno and workerd take the core's handler directly. Every runtime needs a context provider, because the client IP and the verified TLS client certificate are not carried by Request anywhere.

Documentation

ARCHITECTURE.md — how it is built · REQUIREMENTS.md — what it must do · PLAN.md — what is left

License

MIT