Get flexible pricing and billing for your SaaS with flexprice, ideal for startup founders, backed by 3.6k+ GitHub stars.
3,585 stars178 forksGoQuality 8/10Updated 7/8/2026100% free ยท open source
What it does
Flexprice provides a flexible pricing and billing system for SaaS applications, allowing for usage-based pricing, real-time metering, and feature access control.
Install / run
go get github.com/flexprice/flexprice
When to use it
โขWhen you need to implement a pay-as-you-go pricing model for your SaaS application
โขWhen you want to provide tiered pricing based on usage or features
โขWhen you need to integrate billing and metering into your application without requiring extensive development
Quick start
1Run the server with the default configuration using the command 'flexprice serve'
2Configure your pricing plans and tiers in the 'config.yaml' file
3Set up real-time usage metering by creating a 'meter.js' file with your metering logic
4Integrate with your application using the Flexprice API, starting with the 'api/v1/credits' endpoint
5Test your setup by running 'curl http://localhost:8080/api/v1/credits' to verify credit balances
Ready-to-paste prompt
curl -X POST 'http://localhost:8080/api/v1/meters' -H 'Content-Type: application/json' -d '{"name": "my-meter", "description": "My example meter"}'
Heads up: Make sure you have Go (version 1.17 or higher) installed on your system before attempting to install and run Flexprice, as it is a Go-based application
Saves to your device
Topics
billing
clickhouse
events
go
hacktoberfest
kafka
postgresql
pricing
stripe
stripe-subscriptions
subscription-management
temporal
usage-based-pricing
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.