We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
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.
# 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)
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
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.
Add the dependency
Pull in the free MIT core from Hex. Pro is a drop-in add-on when you need billing.
def deps do
[
{:aurora_meter, "~> 0.1"}
]
end
Declare your plans
A compile-time DSL, validated at compile time. Hard caps, metered overage, and boolean capabilities all live in one place.
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
Start it in your tree
One child. It validates config at boot and starts the metering runtime.
children = [
MyApp.Repo,
{Phoenix.PubSub, name: MyApp.PubSub},
AuroraMeter,
MyAppWeb.Endpoint
]
Count, gate and bill
Three calls. `track` counts, `with_quota` gates-runs-meters atomically, and the LiveView components render live usage.
# 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.
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 coreCommercial · 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
Billed monthly via Stripe · cancel anytime
Licensed per app, like Oban Pro. After checkout we email your private package access. Questions? Talk to us.