{"id":13492143,"url":"https://github.com/formancehq/ledger","last_synced_at":"2026-04-02T15:05:36.406Z","repository":{"id":36958767,"uuid":"371644903","full_name":"formancehq/ledger","owner":"formancehq","description":"A Programmable Core Ledger","archived":false,"fork":false,"pushed_at":"2024-10-29T11:25:32.000Z","size":57774,"stargazers_count":879,"open_issues_count":14,"forks_count":99,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-10-29T12:11:40.789Z","etag":null,"topics":["ledger"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formancehq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"FormanceHQ"}},"created_at":"2021-05-28T09:13:03.000Z","updated_at":"2024-10-29T10:39:36.000Z","dependencies_parsed_at":"2023-10-02T20:11:59.092Z","dependency_job_id":"b4abac7a-a032-48a5-8355-9bfca0d9504e","html_url":"https://github.com/formancehq/ledger","commit_stats":null,"previous_names":["numary/ledger"],"tags_count":236,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formancehq","download_url":"https://codeload.github.com/formancehq/ledger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246004168,"owners_count":20708149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ledger"],"created_at":"2024-07-31T19:01:03.470Z","updated_at":"2026-02-06T15:13:54.471Z","avatar_url":"https://github.com/formancehq.png","language":"Go","funding_links":["https://github.com/sponsors/FormanceHQ"],"categories":["Accounting","Go","金融","others","Financial"],"sub_categories":["Bookkeeping","检索及分析资料库","Search and Analytic Databases"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://formance01.b-cdn.net/Github-Attachements/banners/ledger-readme-banner.webp\" alt=\"ledger\" width=\"100%\" /\u003e\n\u003c/p\u003e\n\n#  Formance Ledger\n\nFormance Ledger is a programmable financial core ledger that provides a foundation for all kind of money-moving applications. It provides an atomic multi-postings transactions system, account-based modeling, and is programmable in [numscript](https://docs.formance.com/modules/numscript/introduction), a built-in DSL to model financial transactions.\n\nThe ledger can be used either as a standalone micro-service or as part of the [Formance Platform](https://www.formance.com/). It will shine for financial applications requiring a centralized state-keeping of the assets they orchestrate, such as:\n\n* Users balances holding apps, where the ownership of funds held in FBO accounts need to be fine-grained in a ledger\n* Digital assets platforms and exchanges, where funds in various denominations are represented\n* Payment systems, where funds are cycled through a series of steps from acquiring to payouts\n* Loan managment systems, where a sophisticated structure of amounts dues and to be disbursed are orchestrated\n\nIs uses PostgreSQL as its main transactional storage layer and comes with a built-in mechanism to ship ledger logs to replica data stores for OLAP optimized querying.\n\n## Localhost ⚡\n\nTo quickly get started using the Formance Ledger on your computer, you can use the local-optimized, all-in-one docker image:\n\n```\ndocker compose -f examples/standalone/docker-compose.yml up\n```\n\nWhich will start:\n* A Postgres DB\n* 1 Gateway Server process (Caddy based reverse proxy)\n* 1 Ledger server process\n* 1 Ledger worker process\n* The Console UI\n\nWith the system is up and running, you can now start using the ledger:\n\n```shell\n# Create a ledger\nhttp POST :8080/api/ledger/v2/quickstart\n# Create a first transaction\nhttp POST :8080/api/ledger/v2/quickstart/transactions postings:='[{\"amount\":100,\"asset\":\"USD/2\",\"destination\":\"users:1234\",\"source\":\"world\"}]'\n```\n\nAnd get a visual feedback on the Ledger Console UI started on [http://localhost:3000/formance/localhost?region=localhost](http://localhost:3000/formance/localhost?region=localhost):\n\n![console](https://formance01.b-cdn.net/Github-Attachements/console-screenshot.png)\n\n## Production 🛡️\n\nProduction usage of the Formance Ledger is (only) supported through the official k8s [operator](https://github.com/formancehq/operator) deployment mode. Follow the [installation instructions](https://docs.formance.com/build/deployment/operator/installation) to learn more.\n\n## Artifacts 📦\n\nStandalone binary builds can be downloaded from the [releases page](https://github.com/formancehq/ledger/releases).\nContainer images can be found on the [ghcr registry](https://github.com/formancehq/ledger/pkgs/container/ledger).\n\n## Docs 📚\n\nYou can find the exhaustive Formance Platform documentation at [docs.formance.com](https://docs.formance.com).\n\n## Community 💬\n\nIf you need help, want to show us what you built or just hang out and chat about ledgers you are more than welcome in our [GitHub Discussions](https://github.com/orgs/formancehq/discussions) - looking forward to see you there!\n\n## Contributing 🛠️\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformancehq%2Fledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformancehq%2Fledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformancehq%2Fledger/lists"}