Formance Ledger logo

Formance Ledger

Programmable double-entry ledger for money-moving applications, with atomic multi-posting transactions

Repository activity
  • Stars1.3k
  • Forks165
  • Open Issues17
License

MIT

Languages
  • Go
  • PLpgSQL
  • TypeScript
Formance Ledger screenshot

About Formance Ledger

Formance Ledger is a programmable financial core ledger that gives money-moving applications a foundation for centralized state-keeping. It models accounts and balances and records atomic multi-posting transactions, which suits user-balance apps, digital asset platforms and exchanges, payment systems, and loan management.

Transactions are written in numscript, a built-in domain-specific language for modeling financial flows. PostgreSQL is the main transactional storage layer, and the ledger can ship its logs to replica data stores for OLAP-optimized querying. It can run as a standalone microservice or as part of the wider Formance Platform.

For local use, an all-in-one Docker Compose stack brings up Postgres, the ledger server and worker, a gateway, and a console UI. Production deployment is supported through an official Kubernetes operator. Standalone binaries and container images are published for each release.

Key features

  • Atomic multi-posting double-entry transactions
  • Account and balance modeling for financial state
  • Numscript DSL for expressing transaction logic
  • PostgreSQL storage with log shipping for OLAP queries
  • Runs standalone or inside the Formance Platform

Details

On GitHub since
2021
Language
Go
Storage
PostgreSQL
Deployment
Docker · Kubernetes operator
License
MIT
Artifacts
Binaries · ghcr images