Pay per action

Charge for every action.

Exports, lookups, AI calls, render minutes — meter anything through one credit ledger. Plans grant credits each period, actions spend them, and every movement is a row you can audit.

  • Append-only credit ledger
  • Never goes negative
  • Per-action prices in config
yourbrand.com
.envSITE_PROFILE="credit-usage"one line picks this site type
Built in

What you don't have to build.

One credit ledger

Grants, spends and refunds are append-only rows; the balance always reconciles to the ledger.

Atomic spends

A metered action commits its debit with the work it pays for, so a failed write can't silently consume credits.

Plan allowances

Plans grant credits each period with top-up semantics — renewals and retries never double-grant.

Prices in one file

Each action has a credit cost in config. Change pricing without touching the code that spends it.

Admin adjustments

Grant or deduct credits from the admin with a reason, recorded in the ledger and audit trail.

Usage the user can see

Balance and recent activity in the member dashboard, so nobody is surprised by a bill.

How it works

From first click to working product.

  1. 1

    Subscribe

    A plan grants its period's credits.

  2. 2

    Act

    Each action checks the balance and spends its cost atomically.

  3. 3

    Record

    Every grant, spend and refund is a ledger row.

  4. 4

    Renew

    The next period tops the balance back up.

The real thing

Not a mock-up. The shipped screens.

Screenshots of the template running locally with sample data, on the house design. Switch SITE_DESIGN and the public pages wear any of the other designs.

Usage Credits — The credits dashboard with balance and recent activity.
The credits dashboard with balance and recent activity.
Set it up

A few lines of config. Then it's live.

SITE_PROFILE="credit-usage"
STRIPE_SECRET_KEY="sk_live_…"
STRIPE_WEBHOOK_SECRET="whsec_…"
STRIPE_PRICE_STARTER_MONTHLY="price_…"
  1. 1

    Unzip and install

    Copy the folder and run the installer — it creates the database and secrets.

    php scripts/install.php
  2. 2

    Add your keys, run the doctor

    It checks every key, extension and permission and names anything missing.

    php scripts/doctor.php
  3. 3

    Deploy to your server

    NGINX + PHP on any small VPS, with the step-by-step deploy guide and nightly backups.

Good for

  • Data lookups & enrichment
  • File conversions & exports
  • AI writing or analysis tools
  • Render & processing minutes
  • Pay-as-you-go APIs
Questions

Usage Credits, answered.

All seven site types. One price.

Full source, every site type, the admin, the CMS, 43 designs and the deploy guides — £49, once. Unlimited own and client projects.