Show HN: We built an open source, zero webhooks payment processor
Recorded: Nov. 26, 2025, 1:03 a.m.
| Original | Summarized |
GitHub - flowglad/flowglad: Open source payments + billing infrastructure Skip to content Navigation Menu Toggle navigation
Sign in
Appearance settings Platform GitHub Copilot
Write better code with AI GitHub Spark Build and deploy intelligent apps GitHub Models Manage and compare prompts GitHub Advanced Security
Find and fix vulnerabilities Actions
Automate any workflow Codespaces
Instant dev environments Issues
Plan and track work Code Review
Manage code changes Discussions
Collaborate outside of code Code Search
Find more, search less Explore Why GitHub
Documentation
GitHub Skills
Blog
Integrations GitHub Marketplace
MCP Registry
View all features
Solutions By company size Enterprises
Small and medium teams
Startups
Nonprofits
By use case App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources Topics AI
DevOps
Security
Software Development
View all
Explore Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source GitHub Sponsors
Fund open source developers The ReadME Project
GitHub community articles Repositories Topics
Trending
Collections
Enterprise Enterprise platform
AI-powered developer platform Available add-ons GitHub Advanced Security
Enterprise-grade security features Copilot for business
Enterprise-grade AI features Premium Support
Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests...
Search Clear
Search syntax tips Provide feedback Include my email address so I can be contacted Cancel Submit feedback Saved searches
Name Query To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up
Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. Dismiss alert flowglad flowglad Public
Notifications
Fork
Star Open source payments + billing infrastructure flowglad.com License View license 757 42 Branches Tags Activity
Star
Notifications Code Issues Pull requests Actions Projects Security Uh oh! There was an error while loading. Please reload this page. Insights
Additional navigation options
Code Issues Pull requests Actions Projects Security Insights
flowglad/flowglad
mainBranchesTagsGo to fileCodeOpen more actions menuFolders and filesNameNameLast commit messageLast commit dateLatest commit History778 Commits.changeset.changeset .github.github .husky.husky .vscode.vscode cici packagespackages platformplatform playgroundplayground publicpublic scriptsscripts .gitignore.gitignore .prettierignore.prettierignore .prettierrc.prettierrc AGENTS.mdAGENTS.md CONTRIBUTING.mdCONTRIBUTING.md LICENSELICENSE README.mdREADME.md bun.lockbun.lock bunfig.tomlbunfig.toml claude.mdclaude.md conductor.jsonconductor.json eslint.config.jseslint.config.js package.jsonpackage.json tsconfig.jsontsconfig.json turbo.jsonturbo.json vercel.jsonvercel.json View all filesRepository files navigationREADMEContributingLicense Flowglad The easiest way to make internet money. · Infinite pricing models, one source of truth, zero webhooks. 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. Set Up # React + Express projects: # All other React + Node Projects Configure Your Flowglad Server Client Create a utility to generate your Flowglad server instance. Pass your own customer/user/organization IDs—Flowglad never requires its own customer IDs to be managed in your app: export const flowglad = (customerExternalId: string) => { Expose the Flowglad API Handler Add an API route so the Flowglad client can communicate securely with your backend: export const { GET, POST } = nextRouteHandler({ Wrap Your App with the Provider In your root layout (App Router) or _app (Pages Router): // App Router example (app/layout.tsx) Use useBilling on your frontend, and flowglad(userId).getBilling() on your backend Frontend Example: Checking Feature Access and Usage import { useBilling } from '@flowglad/nextjs' export function FeatureGate({ featureSlug, children }) { if (!loaded || !checkFeatureAccess) { if (errors?.length) { return checkFeatureAccess(featureSlug) export function UsageBalanceIndicator({ usageMeterSlug }) { if (!loaded || !checkUsageBalance) { const usage = checkUsageBalance(usageMeterSlug) return ( const hasFastGenerations = async () => { const billing = await flowglad(user.id).getBilling() const processChatMessage = async (params: { chat: string }) => { const billing = await flowglad(user.id).getBilling() Usage-limit + Subscription Hybrid (like Cursor) And more on the way. If you don't see a pricing model from our templates that suits you, you can always make one from scratch. Next.js Project Goals Think about billing and payments as little as possible Achieving this mission will take time. It will be hard. It might even make some people unhappy. But with AI bringing more and more developers on line and exploding the complexity of startup billing, the need is more urgent than ever. About Open source payments + billing infrastructure flowglad.com Topics react typescript nextjs payments billing trpc zod triggerdev Resources Readme View license Contributing Contributing Uh oh! There was an error while loading. Please reload this page. Activity Custom properties 757 3 42 Report repository Releases Packages No packages published Uh oh! There was an error while loading. Please reload this page. Contributors + 8 contributors Languages TypeScript MDX CSS PLpgSQL Shell JavaScript Footer © 2025 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
Flowglad presents itself as an open-source payments and billing infrastructure solution, aiming to address the perceived shortcomings of existing payment processing options for developers. The core concept revolves around simplifying billing and payment management, reducing developer friction and operational overhead. The project is built around a core set of technologies including Next.js, tRPC, React.js, and Tailwind CSS, leveraging modern web development practices. It is maintained by a small team and community, highlighted by significant contributor numbers (22). The system’s central feature is its decoupling of billing logic from the developer’s application code. Flowglad provides a server-side client that interacts with a payment provider (though the specific provider is not explicitly named, the architecture is designed for broad compatibility). This client, accessible via tRPC, enables developers to access customer billing status—including feature access and usage meter credits—in real-time without manually managing webhooks or complex data mapping. Users define their own customer IDs, eliminating the need to manage unique Flowglad customer IDs. Key capabilities include a flexible pricing model creation interface with predefined templates for common usage patterns (usage-limit + subscription hybrid, unlimited usage, tiered access). The system offers a server-side feature and usage gate, empowering developers to control access based on subscription tiers or usage levels. Furthermore, Flowglad provides a streamlined checkout session creation process. The project incorporates a robust development experience, building on a streamlined setup, and offering SDKs compatible with Next.js, React, and Express. The core architecture is driven by the `FlowgladServer` client, which uses tRPC for asynchronous communication between the frontend and backend. The project heavily emphasizes ease of integration, as demonstrated by examples for Next.js, React + Express, and other React projects. The `useBilling` hook (for React frontend) and the `flowglad` function (for backend) are central components. The technical documentation clearly outlines how to integrate Flowglad, including specific examples for retrieving feature access and managing usage balances. The project’s use of Zod for data validation and Trigger.dev for authentication underscores a commitment to robust data handling and secure user management. Flowglad’s development goals, stated by the core team, reflect a frustration with the stagnant state of payments infrastructure, which has largely remained unchanged for over 15 years. The team’s aim is to provide a developer-friendly, self-serve solution that drastically reduces the time and complexity associated with payment integration and billing management. It's important to note that the project is still under development, and the team openly acknowledges that achieving this ambitious vision will be challenging. The focus on community contribution, demonstrated by the 22 contributors and the use of an MDX file for documentation, signals a collaborative approach to development. The project leverages modern Javascript frameworks and includes TypeScript support, ensuring maintainability and scalability. |