
from stripemeter23
Usage-metering system for Stripe: idempotent event ingestion, late-event handling with watermarks, running counters, and delta pushes to Stripe for usage-based
StripeMeter provides a usage metering backend designed for usage-based billing with Stripe. It ingests immutable usage events with deterministic idempotency keys, materializes counters/aggregations, handles late events via watermarks, and pushes only deltas to Stripe to maintain invoice parity.
Use when implementing metered billing: tracking API calls, seats, or other usage metrics; ensuring idempotent ingestion; reconciling drift with Stripe; and testing via shadow mode before live invoicing. Ideal for teams building usage-based pricing and accurate billing pipelines.
Useful for engineering or ops agents that can provide deployment/run instructions, API request examples, and billing reconciliation guidance (e.g., Codex, CLI-capable agents, devops helpers).
This skill has not been reviewed by our automated audit pipeline yet.