NATS account balance source of truth
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
George Lambert 755d7da080 merge: account-balance main with JetStream VERAE_BILLING consumer
Includes billing-jetstream work on main for ns1 production deploy.
Co-authored ops credit: Scott R00tPiG Lindsey (rootpig).
2026-10-12 19:35:14 -04:00
src feat(billing): default cents for readonly/lookup/history/scope SKUs 2026-10-12 16:52:21 -04:00
test WIP snapshot before drive cleanup 2026-10-03 2026-10-03 23:02:02 -04:00
NATS.md Initial import of zappier-account-balance from zapier monorepo 2026-09-11 19:54:09 -04:00
package-lock.json Initial import of zappier-account-balance from zapier monorepo 2026-09-11 19:54:09 -04:00
package.json WIP snapshot before drive cleanup 2026-10-03 2026-10-03 23:02:02 -04:00
README.md docs: Standard Readme update for production board pack 2026-10-12 19:24:30 -04:00

zappier-account-balance

standard-readme compliant

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)