I created a simple pricing engine so that I could write all of my pricing rules & resource limits in a single YAML doc, then enforce them everywhere with a single policy check.
It's simple, intuitive, versionable, auditable, and easy to reason about or change quickly without bogging my development down.
My CTO friends liked the idea and wanted to use it, so I created this open-source library for everyone to try for themselves.
We also have a hosted version that's turnkey for adding Stripe billing & live customer data, so that you can evolve pricing independently from your codebase.
Check it out and let me know what you think! :)
lswhiteh•1h ago
How does this handle transitions when a customer changes plans mid-billing cycle e.g.they downgrade from paid to free but their current usage already exceeds the free plan's limits? Is it immediately enforced or is there some sort of reconciliation mechanism?