fibermeter

FiberMeter demo walkthrough

FiberMeter is reusable Fiber Network infrastructure for prepaid balances, service metering, payment tracking, ledgering, and signed webhooks.

What is working

Payment modes

The zero-setup walkthrough uses SimulatedFiberPaymentProvider, generating fiber-sim:// URIs and exposing Simulate Paid. The hosted live walkthrough uses LiveFiberPaymentProvider to create real fibt1... invoices; an independent payer node settles them, and FiberMeter credits the balance only after Fiber RPC confirms payment. See 08-fiber-integration.md.

Two ways to demo

The header badge always shows Live vs Demo.

Guided product flow

  1. Open the dashboard. Note the mode badge (Live or Demo).
  2. Overview — stat cards: funded, usage charged, customers, usage events.
  3. Services — open AI Summary API; show the pricing rule 10 CKB per 1,000 tokens and copy the service slug.
  4. CustomersAda Demo (cus_demo_001) with a 100 CKB balance.
  5. Quickstart — create an API key; copy it once.
  6. Open the standalone Demo Service at https://demo.fibermeter.toneflix.net.
  7. Paste text and click Summarize → usage is recorded.
  8. FiberMeter calculates the charge and deducts the balance.
  9. Back on Usage Events, the charge appears (filter by status = charged).
  10. Webhooks — expand the usage.charged delivery payload.
  11. In the demo app, submit a very large text that exceeds the balance.
  12. See the insufficient balance / payment required response.
  13. Payment Requests — create a request for the customer; copy the payment URI.
  14. Click Simulate Paid (the simulated Fiber payment).
  15. The balance is funded and a ledger entry records the credit.
  16. Retry the summary → it now succeeds.

Production hardening

Further hardening includes queue-backed webhook retries, balance reconciliation, rate limits, operational audit logs, managed secrets, and production observability. See ROADMAP.md.