Skip to content

FinStack 0.1.0

Choose a tag to compare

@Fabulouscode Fabulouscode released this 26 Sep 21:43
· 25 commits to main since this release

The first release: a complete fintech backend foundation. Decisions are recorded in docs/adr/ (ADRs 0001–0029).

Financial foundation

  • Users and authentication: argon2id passwords, short-lived JWTs, rotating refresh tokens with reuse detection. Suspensions and role changes apply immediately.
  • Organizations with role-based permissions; API keys (hashed, scoped, revocable).
  • Double-entry ledger enforced by the database (immutability, balanced transactions, no negative balances).
  • Wallets: single or multi-currency, owned by users or organizations.
  • FX conversion with admin-set rates, locked quotes and a configurable spread.
  • Transfers with idempotency keys and an explicit transaction state machine.

Payments

  • Provider abstraction with mock, Paystack and Stripe adapters.
  • Currency routing: operator routes, then client choice, then suggestions (local → Paystack, international → Stripe), then the default.
  • Payments with FX, verified webhooks, transactional outbox and BullMQ workers.
  • Refunds (full and partial, reversing FX at the original rate), settlement holds, and payouts to bank accounts that are never sent twice.

Operations

  • Append-only audit logs; daily reconciliation against providers and the ledger.
  • Signed outbound webhooks to organizations (encrypted secrets, SSRF protection with DNS pinning).
  • Email notifications (log or SMTP).
  • Admin tooling with staff roles (support, risk, finance, admin).
  • Observability: JSON logs with request and trace ids, Prometheus metrics, traceparent support.

Risk controls

  • Fee rules per operation, currency and organization.
  • Velocity limits, enforced atomically under concurrency.
  • Cooling-off period and owner alerts for new payout bank accounts.

Developer platform

  • Sandbox deployments (SANDBOX_MODE) with an owner-checked simulation API and test bank accounts.
  • CI: format, lint, type-check, build, unit, integration and end-to-end tests, and a schema drift check.

Getting started: see the README. Every design decision is recorded in docs/adr/.