Skip to content
mesh · resolving

Balances
at the edge.

A distributed append-only ledger for metered billing. Post credits, debits, and holds at any regional edge — writes replicate asynchronously, no leader, no consensus on the hot path.

Write from any region. Read from any region.

01

Credit, debit, hold

Per-account atomic section around every write. Idempotency nonces dedupe retried posts. Holds reserve balance up front with automatic expiry.

02

Write from any region

POST to the nearest edge. Events propagate over libp2p gossipsub; a periodic catch-up sync closes any gaps. Write latency stays at the edge, not the slowest region.

03

No leader, no consensus

Every node holds a full replica of the event stream. No primary, no Raft, no Paxos — regions converge asynchronously and dedupe by origin key (node_id, epoch, seq).

04

Built for metered billing

LLM tokens, API credits, prepaid accounts. Append-only event stream per (bucket, account) with void and hold_release for corrections. Bounded sync lag, auditable forever.

POST /events.

POST /events to credit or debit any account at any regional edge. GET /balances from the same edge or any other. The mesh handles replication.

Balance ledger at the edge.