A double-entry accounting ledger for managing token balances in Ruby on Rails applications. Provides atomic transactions, idempotency, audit trails, and thread-safe operations.
I made this for www.stablegen.io as the usage_credits gem was pretty out of date at that time and it depended on really old versions of stripe and pay. I am using pay, so that was still relevant but I decided to roll my own and remove the pay dependency. So this is a simpler library for sure but I think it's a lot easier to integrate and it does the job in a really professional way without a heavy footprint. I think it's got all the functionality that 95% of us need if we want to add tokens/credits to our sites.
wuliwong•1h ago
I made this for www.stablegen.io as the usage_credits gem was pretty out of date at that time and it depended on really old versions of stripe and pay. I am using pay, so that was still relevant but I decided to roll my own and remove the pay dependency. So this is a simpler library for sure but I think it's a lot easier to integrate and it does the job in a really professional way without a heavy footprint. I think it's got all the functionality that 95% of us need if we want to add tokens/credits to our sites.