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

shipsafe-auth

v0.1.0

Published

Passwordless auth toolkit for ShipSafe projects — durable rate limiting, in-tab OTP + click-approve, and a pluggable step-up assurance ladder (passkey, FaceGate). Framework-agnostic core; routes/migration shipped via scaffold.

Readme

shipsafe-auth

Passwordless auth toolkit for ShipSafe projects. Framework-agnostic core plus a scaffold that drops the Next.js App Router routes and Supabase migration into a target project.

Status: 0.0.0 — core + scaffold + FaceGate adapter built and unit-proven against the dist; not yet published, and not yet wired into a live app (the consolidation step). See the status table below.

Why this exists

Several ShipSafe projects each reimplemented passwordless auth, and the implementations drifted — most visibly in rate limiting (some lanes are durable and table-backed, some are best-effort in-memory Maps that don't survive serverless cold starts). This package extracts the hardened ShipSafe version once so projects converge on it via a version bump instead of hand-porting.

Shape

| Layer | Ships as | Status | | --- | --- | --- | | Rate-limit enforcer + storage-adapter interface | npm core | ✅ built + proven | | Validators + OTP / match-code logic + leak-safe issuer | npm core | ✅ built + proven | | StepUpChallenger/StepUpVerifier seam + passkey provider | npm core | ✅ built + proven | | OtpSlots React primitive | shipsafe-auth/react entry | ✅ built + proven | | Email-sender interface + Resend adapter | npm core | ✅ built + proven | | App Router routes + Supabase migration + helpers | npx shipsafe-auth add scaffold | ✅ built + proven (generation) | | FaceGate human-presence adapter | shipsafe-auth/facegate entry, implements the seam | ✅ built + proven; verifier enforces action-binding (canonical hash match) | | ShipSafe app wired at the package | src/lib/auth/rate-limit.ts re-exports the package | ✅ app's own 11 rate-limit tests pass against it; whole-app typecheck clean | | Package vitest suite | pnpm test | ✅ 15 tests (rate-limit + validators + approve-token + match-code + FaceGate binding) | | npm publish | [email protected] | ⬜ dry-run verified (55 files, auth OK); actual publish awaits explicit go (irreversible/public) | | Full cutover (delete shim, import package directly everywhere) | — | ⬜ optional cosmetic step; shim already routes the app through the package |

Assurance ladder

The step-up tier is a pluggable ladder, not a single method:

  • Tier 0 — identity: email OTP + click-approve (match code). AAL1.
  • Tier 1 — possession: passkey step-up. AAL2, phishing-resistant.
  • Tier 2 — presence: FaceGate liveness — a live human is here for this action. Optional adapter; only projects authorizing agent/high-stakes actions need it.

Build

pnpm build      # tsc -> dist, then fix-esm-extensions (.js + Node ESM smoke test)
pnpm typecheck

Source imports stay extensionless (Turbopack consumes src directly via a tsconfig path alias); the build adds .js to dist for plain-Node ESM consumers. Do not hand-add extensions in source.