Free MIT core · Aurora Meter Pro from $149/mo

Aurora Meter

Laravel Cashier + OpenMeter, for Phoenix. Real-time usage metering, plan entitlements, and Stripe billing — count, gate, and bill on the BEAM, with an ETS hot path that never touches your database on the write path.

lib/my_app/reports.ex
# count usage — microseconds, no DB on the hot path
AuroraMeter.track(org, :ai_generations)

# gate + run + meter, atomically
AuroraMeter.with_quota(org, :ai_generations, fn ->
  generate_report()
end)
~8M increments/sec 0 DB writes on the hot path 65 library tests Stripe-ready

Three jobs, one library

Every SaaS meters, gates, and bills. On Phoenix you hand-roll all of it.

Meter

Increments hit a lock-free ETS counter — microseconds, no database on the hot path. A flusher persists snapshots on an interval; a broadcaster fans live values over PubSub.

Entitle

Declare plans in a small compile-time DSL, then gate features by plan. `with_quota/4` reserves atomically, so hard limits stay correct under concurrency.

Bill

The free core ships a billing seam; Aurora Meter Pro closes the loop — Stripe checkout, webhook sync, and metered usage reported to Stripe Billing Meters.

The showcase

Live usage, rendered where your team already looks.

Aurora Meter ships LiveView components that read the live ETS counters and update over PubSub. Drop them into an admin dashboard and every plan's usage is visible in real time. This is a mock of that surface.

Usage this period

Scale plan · resets in 12 days

Live
AI generations 7,420 / 10,000
API calls 128,900 / 250,000
Seats 18 / 25
Exports 47 / 50

The guide

From mix.exs to billed in four steps.

The free core does count, gate, and bill. Add Aurora Meter Pro when you want Stripe to charge for it.

01

Add the dependency

Pull in the free MIT core from Hex. Pro is a drop-in add-on when you need billing.

step 01
def deps do
  [
    {:aurora_meter, "~> 0.1"}
  ]
end
02

Declare your plans

A compile-time DSL, validated at compile time. Hard caps, metered overage, and boolean capabilities all live in one place.

step 02
defmodule MyApp.Plans do
  use AuroraMeter.Plans

  plan :free do
    limit :ai_calls, 100, :hard
  end

  plan :pro do
    metered :ai_calls, included: 10_000, unit_price: 1
    feature :priority_support, true
  end
end
03

Start it in your tree

One child. It validates config at boot and starts the metering runtime.

step 03
children = [
  MyApp.Repo,
  {Phoenix.PubSub, name: MyApp.PubSub},
  AuroraMeter,
  MyAppWeb.Endpoint
]
04

Count, gate and bill

Three calls. `track` counts, `with_quota` gates-runs-meters atomically, and the LiveView components render live usage.

step 04
# count usage
AuroraMeter.track(org, :ai_calls)

# gate + run + meter in one atomic step
AuroraMeter.with_quota(org, :ai_calls, fn ->
  generate_report()
end)

Open core

Free core, forever. Pro when you bill for it.

Capability Core Pro
ETS-backed real-time counters (~8M incr/s)
Plan DSL + entitlement gate (with_quota)
LiveView usage components
Postgres persistence + telemetry
Stripe Checkout + webhook sync
Metered usage → Stripe Billing Meters
Subscription-aligned billing periods
Historical rollups + CSV export
Hosted real-time dashboards
Quota alerts + reconciliation

Pricing

Start free. Upgrade when Stripe is charging.

Free · MIT

Aurora Meter

$0 forever

Metering, entitlements, plan DSL, LiveView components, Postgres persistence and telemetry. Everything you need to count and gate.

Get the free core

Commercial · Pro

Aurora Meter Pro

$149 / month · per app

Everything in the core, plus Stripe checkout + webhook sync, metered usage to Stripe Billing Meters, hosted dashboards, historical rollups with CSV export, and quota alerts.

  • Stripe checkout + webhook sync
  • Metered usage → Stripe Billing Meters
  • Subscription-aligned periods
  • Historical rollups + CSV export
  • Hosted real-time dashboards
  • Quota alerts + reconciliation
Subscribe

Billed monthly via Stripe · cancel anytime

Licensed per app, like Oban Pro. After checkout we email your private package access. Questions? Talk to us.