The Challenge
Managing pricing across billing providers (Stripe, etc.) is error-prone. Prices drift between environments, and there’s no version control for billing configuration.
What I Built
PaC (Prices as Code) — a TypeScript CLI and library that treats pricing like infrastructure-as-code:
- Push: Define pricing in local config, sync to Stripe and other providers
- Pull: Import current provider pricing into version-controlled config
- Generate: Scaffold pricing schemas from existing provider data
- Extensible: Custom provider interface for any billing system
Published on npm at v3.6.0 with comprehensive documentation, CI/CD integration guides, and a clean programmatic API.
Technical Highlights
- Bidirectional sync between local config and billing providers
- Extensible provider architecture
- 27 commits of focused, library-quality code