Overview & Dependency Graph

stripe402 is organized as a monorepo with five publishable packages. Each package has a focused responsibility and minimal dependencies.

Dependency Graph

@stripe402/core          (no external dependencies)

       ├──── @stripe402/server        (+ stripe)
       │          │
       │          └──── @stripe402/express    (+ express peer dep)

       ├──── @stripe402/client-axios   (+ axios peer dep)

       └──── @stripe402/client-fetch   (no peer deps)

@stripe402/core is the foundation — all other packages depend on it. It has zero external dependencies (only Node.js built-in crypto).

Package Summary

Package
npm Name
Description
Dependencies

@stripe402/core

Protocol types, header encoding, HMAC identity, errors

None

@stripe402/server

Stripe API integration, Redis and PostgreSQL stores

@stripe402/core, stripe

@stripe402/express

Express middleware for payment-gated routes

@stripe402/core, @stripe402/server

@stripe402/client-axios

Axios interceptor for automatic 402 handling

@stripe402/core

@stripe402/client-fetch

Fetch wrapper for automatic 402 handling

@stripe402/core

Quick Import Reference

Last updated