api template

Aurora API Starter

v2.0 · updated

Sell your API by the request. A Phoenix 1.8 / LiveView starter with workspaces and roles, hashed API keys with live and test modes, per-plan rate limits, atomic monthly quotas with weighted request costs, Stripe subscriptions synced by webhook, a live usage dashboard, a developer portal generated from your OpenAPI file and a site admin. Built on the MIT Aurora Meter core; add Aurora Meter Pro to invoice metered overage.

$299 $149.50 50% off until 21 Sep

Launch price applied automatically at checkout. Ends 21 Sep.

One-time payment · Instant download · Yours forever

Instant access Stripe checkout Free updates

In the box

  • API keys (live + test)
  • Quotas with weighted costs
  • Per-plan rate limits
  • Stripe subscriptions + webhooks
  • Live usage dashboard
  • OpenAPI developer portal
  • Workspaces, roles, invites
  • Site admin
  • Aurora Meter Pro ready

What's included

Open the zip, find this working.

API keys

SHA-256 stored secrets shown once, ak_live_/ak_test_ modes with separate quotas, expiry, rotation and revocation, last-used tracking.

From a live product

Billing

Stripe Checkout and customer portal in core mode with webhook-driven plan sync. Switch on Aurora Meter Pro to report metered overage to Stripe Billing Meters, align periods to the subscription and email quota alerts.

From a live product

Developer portal

priv/openapi.yaml renders an in-app reference with curl examples and error catalogue; /openapi.yaml and /openapi.json are served for tooling.

From a live product

Metered API pipeline

Bearer auth, Hammer per-second limits from the plan, and an ApiMeter plug that reserves request units atomically in ETS before each action. Hard caps return 402 with a reset time and upgrade URL; every response carries X-RateLimit-* and X-Quota-* headers.

From a live product

Operations

Site admin with plan overrides and admin toggles, Oban queues, Resend email, release scripts, Dockerfile, CI workflow, AGENTS.md for coding agents. 184 tests.

From a live product

Plans as code

Free, Starter, Growth and Scale declared once with the Aurora Meter DSL. Pricing page, checkout, entitlements, rate limits and the API headers all read from the same module.

From a live product

Workspaces

Organisations with owner/admin/member roles, hashed invitation tokens, scope-first authorisation and an org switcher. The organisation is the metering tenant.

From a live product

Built on a modern, boring-in-the-best-way stack

Phoenix Phoenix
Elixir Elixir
Tailwind Tailwind
PostgreSQL PostgreSQL
Stripe Stripe
Resend Resend Resend
Oban Oban

Screenshots

A sneak peek at what ships.

Aurora API Starter screenshot
Aurora API Starter screenshot
Aurora API Starter screenshot

License

For personal and professional use. Build and sell your own products with it. You can't resell or redistribute the template itself, in its original or modified state.

Frequently asked questions

How do I receive the template when I purchase it?

It's added to your account instantly. Download it any time, including future updated versions.

Can I use this template for my own SaaS?

Yes, that's exactly what it's designed for. The only restriction is redistributing the template itself.

Prefer everything, forever?

Unlimited access includes Aurora API Starter and every other template, current and future.

See unlimited access