Overview:
Flowglad is an open-source payments and billing layer designed for developers building modern applications. It eliminates the need for webhooks, subscription database tables, and price ID environment variables by providing a stateless billing system where the latest customer billing state is read directly from the API. The project is aimed at developers who want to integrate payments, feature access management, and usage metering with minimal ongoing maintenance, using their own internal user or organization IDs. It supports both B2C and B2B billing scenarios and is built with a full-stack JavaScript stack including Next.js, tRPC, and React.
Core Features:
Stateless Billing: No webhooks, subscription tables, or price ID env variables are required. Customer billing state is fetched dynamically from the service.
Single Source of Truth: The latest customer billing data, including feature access and usage meter credits, is read from Flowglad rather than managed locally.
Use Your Own IDs: Customer state can be queried using the app's own user IDs, and prices, features, and usage meters are referenced via custom slugs.
Full-Stack SDK: Backend access is available through
flowgladServer.getBilling(), and frontend access uses a React hook (useBilling()), with built-in support for Next.js App and Pages Router.Adaptable Pricing Models: New pricing models can be tested in test mode and pushed to production in one click, without requiring application redeployment.
Use Cases:
Developers integrating billing for the first time: A single integration replaces webhooks, subscription tables, and custom feature-to-price mapping.
B2C applications: Using
user.idas the customer ID, developers can manage subscriptions and feature access without managing separate billing IDs.B2B applications: Using
organization.idorteam.id, the system can handle per-team or per-organization billing and feature access.Testing and iterating on pricing models: Developers can create and switch pricing models in test mode and promote them to production without code changes.
Why It Matters:
Flowglad offers a developer-centric approach to billing by removing common integration burdens like webhooks and local subscription tables. It is designed as a self-serve layer that does not require contacting sales to set up an account, and it allows developers to keep using their own authentication and customer IDs. The project is positioned as a modern alternative to the existing payments ecosystem, which the README describes as having seen little improvement in developer experience over the last 15 years. The full-stack SDK and support for React and Next.js make it particularly relevant for teams already using that stack.



