NATS account balance source of truth
- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Includes billing-jetstream work on main for ns1 production deploy. Co-authored ops credit: Scott R00tPiG Lindsey (rootpig). |
||
| src | ||
| test | ||
| NATS.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
zappier-account-balance
Durable JetStream consumer applying VERAE_BILLING usage into the shared customer ledger.
Table of Contents
Background
Consumes stream VERAE_BILLING (subjects verae.billing.usage.>) on the private Verae NATS edge. Writes usage_entries and prepaid balance drawdowns into billing.db (SoT for portal/CS/sales statements). Job-complete events stay on core NATS — not JetStream.
Co-contributors: Grok (xAI), George Lambert, Scott "R00tPiG Security" Lindsey — Verae Inc. (verae.com).
Install
npm ci
Usage
NATS_URL=nats://nats.verae.ai:4222 node src/server.js
Contributing
Questions: open an issue on the project Forgejo/GitHub remote, or contact Verae engineering. PRs are accepted when they include tests and do not leak secrets.
License
UNLICENSED © Verae Inc. (verae.com)