finds.dev← search

// the find

andrewculver/koudoku

★ 1,155 · Ruby · MIT · updated Jan 2021

Robust subscription support for Rails with Stripe.

Koudoku is a Rails engine that wires Stripe subscriptions into your app via a generator — adds models, controllers, pricing pages, and plan management out of the box. It targets Rails developers who want to ship a basic subscription flow without building the plumbing from scratch. Last commit was January 2021, so this is effectively unmaintained.

The template method hooks (prepare_for_upgrade, finalize_cancelation, etc.) are a clean design — you override what you need, call super, and your app logic slots in without monkey-patching. The generator approach keeps Stripe config and models isolated in a mountable engine rather than dumping files everywhere. Webhook support is delegated to stripe_event, which was the right call — no reinvented wheel. Pricing table is ejectable via a views generator, so you're not stuck with the defaults.

Dead since 2021 — Stripe's API has moved significantly (PaymentIntents replaced Charges as the primary flow, SCA/3DS is now required in Europe), and none of that is here. The coupon model is a parallel system to Stripe's native coupons, which means two sources of truth and the inevitable drift. Plans are stored in your DB with a stripe_id reference, which is fine until someone edits a plan in the Stripe dashboard and forgets to sync — no reconciliation mechanism exists. Bootstrap dependency is baked into the pricing table styles, which is a problem for any app not already using Bootstrap.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →