tierroot

package module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

README

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
api
materialize
Package materialize provides utilities for materializing views from features pushed and pulled to billing engine providers.
Package materialize provides utilities for materializing views from features pushed and pulled to billing engine providers.
client
tier
Package tier contains the local client for interacting with the tier sidecar API.
Package tier contains the local client for interacting with the tier sidecar API.
cmd
tier/frate
Package frate implements file-based rate limiting.
Package frate implements file-based rate limiting.
Package lru implements a LRU cache.
Package lru implements a LRU cache.
stroke
Package stroke provides utilities for testing with Stripe using isolated accounts and clocks.
Package stroke provides utilities for testing with Stripe using isolated accounts and clocks.
types
they
Package wants provides utilities learning what HTTP clients want.
Package wants provides utilities learning what HTTP clients want.
Package version provides the version that the binary was built at.
Package version provides the version that the binary was built at.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL