Hasty Briefsbeta

Bilingual

Show HN: Autumn – Open-source infra over Stripe

10 months ago
  • #billing
  • #stripe-integration
  • #open-source
  • Autumn is an open-source layer between Stripe and your application for creating any pricing model.
  • Supports subscriptions, credit systems, usage-based models, and custom plans without handling webhooks or payment issues.
  • Quick start via cloud service or self-host with node.js, pnpm, and Docker.
  • Self-hosting setup includes installing dependencies, running a setup script, and starting Autumn with Docker.
  • Login via email OTP; supports Resend for OTP emails or Google OAuth with credentials in server/.env.
  • Setup script initializes env vars and optionally a Supabase instance; custom Postgres can be used via DATABASE_URL.
  • Known issue: SyntaxError when rerunning setup script; solution involves clearing database tables.
  • Billing infrastructure complexities include permission management, metering, and handling various payment states.
  • Decoupling billing and app logic is advised for easier pricing iterations and migrations.
  • Popular pricing models: Usage & Overage, Credits, Seat-based with limits, Pay upfront.
  • Three key functions for billing logic: /attach for purchases, /check for access verification, /track for usage recording.
  • Contributions are welcome; support is available via Discord or email.