Skip to main content

Welcome

Flowglad provides a comprehensive suite of SDKs to integrate billing, subscriptions, and payments into your applications. Our SDKs are designed to work seamlessly with popular frameworks while providing flexibility for custom implementations.

Getting Started

New to Flowglad? Start with our Quickstart Guide for a step-by-step walkthrough of setting up Flowglad in your NextJS application, or read on to learn more about the SDK features and capabilities.

Features

Available SDKs

Choosing the Right SDK

For Next.js Applications

Use @flowglad/nextjs - it includes everything you need:
  • Server-side utilities for Flowglad API routes and direct server methods
  • Client-side React context for managing billing and subscription data
  • Support for both App Router and Pages Router

For Other React Frameworks

Use @flowglad/react + @flowglad/server:
  • @flowglad/react handles billing and subscription state in your React frontend
  • @flowglad/server provides the Flowglad server instance your frontend communicates with

For Express Backends

Use @flowglad/express:
  • @flowglad/express provides Express router for Flowglad REST endpoints

For Other Node.js Backends

Use @flowglad/server directly for maximum flexibility

Quick Installation

bun add @flowglad/nextjs

NPM Packages

All Flowglad SDKs are available on NPM:

Example Projects

Looking for a complete example? Check out our example projects:
  • Generation-based Subscription - Next.js app with authentication and billing, demonstrating a pricing model with subscription, single-payment, and usage (examples/generation-based-subscription)

Next Steps