At a Glance:
Flowglad is an open-source billing and payments SDK for web applications that offers a stateless integration, a single source of truth for customer billing state, and support for frontend and backend access to feature gates and usage meters without requiring webhooks.
Overview:
Flowglad is an open-source billing SDK designed to simplify payment integration for web applications. It provides a stateless approach to billing, removing the need for webhooks, dedicated subscription database tables, or manual mapping of plans to prices and features. The project targets developers who want to integrate self-serve billing logic with minimal overhead, using their own customer, user, or organization identifiers. It exposes a full-stack JavaScript SDK for server-side and React frontend use, and it supports iterating on pricing models in a test mode before promoting them to production without redeployment.
Key Decision Points:
Stateless integration model: Flowglad eliminates the need for webhooks, local subscription tables, and customer ID columns, reducing the infrastructure complexity of billing.
Full-stack JavaScript SDK: It provides a server-side client (
flowgladServer.getBilling()) and a React hook (useBilling()), which are the documented integration surfaces.Customer identification through your own IDs: The SDK accepts your application's existing user, team, or organization IDs rather than requiring you to manage separate Flowglad customer records.
Pricing model iteration: It allows developers to test new pricing models in a testmode environment and promote them to production with a single action, without application redeployment.
Single source of truth for billing state: The latest customer billing state, including feature access and usage meter credits, is readable directly from Flowglad.
Core Features:
Stateless billing integration: There are no webhooks to configure, no local
subscriptionstables to maintain, and noPRICE_IDenvironment variables required.Unified billing state: The platform serves as a single source of truth for a customer’s feature access and usage meter credits.
Slug-based referencing: Prices, features, and usage meters are referenced by user-defined slugs rather than system-generated identifiers.
Full-stack SDK access: Billing state can be queried on the backend via
flowgladServer.getBilling()and on the frontend via auseBilling()React hook.Pricing model lifecycle management: Developers can iterate on new pricing models in testmode and push them to production with one click, without redeploying their application.
Use Cases:
Developers integrating self-serve billing into Next.js or React applications who want to avoid managing webhooks and local billing tables.
B2C applications that need to link billing state to an existing user ID without adopting a separate customer management system.
B2B applications that need to associate billing logic with an organization or team ID already present in their application.
Open-Source Alternative Value:
Flowglad is released as an open-source billing SDK, making its integration logic, frontend hooks, and server-side client directly available for inspection and customization. Developers can integrate it using their own authentication identifiers without locking their billing state into a proprietary customer ID system. The SDK supports server and browser environments through documented JavaScript interfaces, and the ability to iterate on pricing models in testmode before production release means billing logic can be evolved as part of the application’s normal development workflow.



