Case file — 44371307
Launch roast · Show HN
We built an open source, zero webhooks payment processor by agreeahmed · HN thread
Unsolicited, from public launch info only. Founder? Reply or ask us to take it down.
The idea
“We built an open source, zero webhooks payment processor https://github.com/flowglad/flowglad Founder's Show HN post: Hi HN! For the past bit we’ve been building Flowglad (https://flowglad.com) and can now feel it’s just gotten good enough to share with you all: Repo: https://github.com/flowglad/flowglad Demo video: https://www.youtube.com/watch?v=G6H0c1Cd2kU Flowglad is a payment processor that you integrate without writing any glue code. Along with processing your payments, it tells you in real time the features and usage credit balances that your customers have available to you based on their billing state. The DX feels like React, because we wanted to bring the reactive programming paradigm to payments. We make it easy to spin up full-fledged pricing models (including usage meters, feature gates and usage credit grants) in a few clicks. We schematize these pricing models into a pricing.yaml file that’s kinda like Terraform but for your pricing. The result is a payments layer that AI coding agents have a substantially easier time one-shotting (for now the happiest path is a fullstack Typescript + React app). Why we built this: - After a decade of building on Stripe, we found it powerful but underopinionated. It left us doing a lot of rote work to set up fairly standard use cases - That meant more code to maintain, much of which is brittle because it crosses so many server-client boundaries - Not to mention choreographing the lifecycle of our business domain with the Stripe checkout flow and webhook event types, of which there are 250+ - Payments online has gotten complex - not just new pricing models for AI products, but also cross border sales tax, etc. You either need to handle significant chunks of it yourself, or sign up for and compose multiple services This all feels unduly clunky, esp when compared to how easy other layers like hosting and databases have gotten in recent years. These patterns haven’t changed much in a decade. And while coding agents can nail every other rote part of an app (auth, db, analytics), payments is the scariest to tab-tab-tab your way th Landing page content (flowglad/flowglad): # flowglad/flowglad Open source, zero webhooks payment provider - Stars: 1716 - Forks: 88 - Watchers: 1716 - Open issues: 30 - License: Other - Homepage: https://app.flowglad.com - Default branch: main - Created: 2025-02-13T17:48:44Z ## Languages - CSS - Dockerfile - JavaScript - MDX - PLpgSQL - Shell - TypeScript ## Topics - better-auth - billing - nextjs - payments - react - shadcn-ui - subscriptions - subscriptions-and-payments - triggerdev - trpc - typescript - zod ## Top Contributors - agreea (638 contributions) - BrooksFlannery (288 contributions) - subsetpark (160 contributions) - angihe93 (137 contributions) - joeysabs (119 contributions) - darknightdesigner (87 contributions) - rebeccax06 (26 contributions) - dependabot[bot] (21 contributions) - lpmsh (21 contributions) - harrisontelyan (15 contributions) --- ## README Flowglad The easiest way to make internet money. Get Started · Quickstart · Website · Events · Issues · Examples · Infinite pricing models, one source of truth, zero webhooks. nav-demo ## Features - **Default Stateless** Say goodbye to webhooks, `"subscriptions"` db tables, `customer_id` columns, `PRICE_ID` env variables, or manually mapping your plans to prices to features and back. - **Single Source of Truth:** Read your latest customer billing state from Flowglad, including feature access and usage meter credits - **Access Data Using Your Ids:** Query customer state by your auth's user ids. Refer to prices, features, and usage meters via slugs you define. - **Full-Stack SDK:** Access your customer's data on the backend using `flowgladServer.getBilling()`, or in your React frontend using our `useBilling()` hook - **Adaptable:** Iterate on new pricing models in testmode, and push them to prod in a click. Seamlessly rotate pricing models in your app without any redeployment. ## Set Up ### Installation First, install the packages necessary Flowglad packages based on your project setup: ```bash # Next.js Projects bun add @flowglad/nextjs # React + Express projects: bun add @flowglad/react @flowglad/express # All other React + Node Projects bun add @flowglad/react @flowglad/server ``` Flowglad integrates seamlessly with your authentication system and requires only a few lines of code to get started in your Next.js app. Setup typically takes under a minute: ### Integration 1. **Configure Your Flowglad Server Client** Create a utility”