Settings

Theme

Token_ledger – Ruby gem for auditable token accounting in Rails

github.com

1 points by wuliwong 2 months ago · 1 comment

Reader

wuliwongOP 2 months ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection