This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/RegularYou2075 on 2025-06-24 18:58:41+00:00.


At my last company we scaled quickly and had a lot of billing bugs related to usage resets, race conditions and changing pricing was horrendous. I built an internal layer over Stripe to manage pricing plans, feature permissions, user credit balances and set custom pricing.

Over the last few months I rebuilt the whole thing but open source. Instead of dealing with a bunch of endpoints and states, it makes pricing logic just:

  • 1 function to purchase any product (including checkouts, upgrades/downgrades)
  • 1 function to check if a user can access a feature (queries a postgres DB)
  • a customer state react hook that you can use to display billing data (eg remaining monthly usage)

Now have a bunch of friends using this for their side projects as it just makes payments easier to set up. You can self host it without any 3rd party deps.

Requirements: Docker

Repo: https://github.com/johnyeocx/autumn