/tier

The easiest way to add pricing to your SaaS. Get billing over with.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Pricing as Code

tier is a tool that lets you define and manage your SaaS application's pricing model in one place (pricing.json).

Tier will handle setting up and managing Stripe in a way that is much more friendly for SaaS and consumption based billing models. Tier's SDK can then be implemented for access checking, metering/reporting, and more.

GPLv3 License Commit Activity Discussions

Docs and Community

Key Features and Capabilities

  • Manage your features, plans and their pricing in one place
  • On demand test environments and preview deployments allow you to work with confidence
  • Create custom plans and variants as needed for specific customers or tests
  • Stripe is kept in sync and fully managed by Tier
  • Access Checking and Entitlements are handled by the Tier SDKs

How to use Tier

  1. Install Tier CLI
  2. Create your first pricing.json and tier push to your dev or live environment
  3. Get a Tier SDK and add it to enable Access Checks and Metering

You can see and example here: Tier Hello World!

Install

Homebrew (macOS)

brew install tierrun/tap/tier

Binary (macOS, linux, Windows)

Binaries for major architectures can be found at here.

Go (most operating systems and architectures)

If go1.19 or later is installed, running or installing tier like:

go run tier.run/cmd/tier@latest

or

go install tier.run/cmd/tier@latest

Authors