Jackson Kojo Osei
statusoperationalaccra--:--:--regiongh · uk
building

Meter

Track AI and API usage per customer and turn it into accurate bills.

What it does

Record every metered event, such as tokens, API calls or documents processed, roll it up per customer and billing period, and send it to Stripe usage-based billing. Late or corrected events update the bill without double-counting.

The problem

Usage billing breaks in quiet ways: events counted twice, events arriving after the invoice, and no audit trail when a customer disputes a bill.

Features

  • Idempotent event ingestion
  • Per-customer, per-period roll-ups
  • Re-rating when late events arrive
  • Stripe usage-based billing sync
  • Audit trail for every invoice line

What building it covers

  • Billing engines
  • Late-arriving data
  • Ordering per customer
  • Audit trails

Stack

  • TypeScript
  • Node.js
  • PostgreSQL
  • Stripe
All projects