Formance Studio is a web tool for designing ledgers. You describe a product in plain English, and Studio returns a complete ledger model: the chart of accounts, the transaction templates that move money between those accounts, and the queries that report on them.
The output is a Ledger schema, the same YAML format the Ledger module validates against. You can review it, refine it, and insert it into a ledger.
Open Studio at studio.formance.com and sign in with your Formance account.
Why start with a schema#
A Ledger schema describes what your ledger is allowed to contain: the account addresses that are valid, the transactions that move money between them, and the queries you run on the result. The Ledger checks writes against it, so a typo in an account address or a transaction that skips a step is caught on write instead of showing up later in a balance.
Writing a schema by hand means listing every account and every flow up front, including the ones that only matter when something goes wrong. That is the slow part of designing a ledger, and the part that is easiest to get incomplete.
Use Studio for a first draft#
Studio gives you a complete first draft in one run. You may not run that draft in production as it is, but it gets you most of the way, and it shows you the accounts and transactions you need to think about. These are often the ones a first design leaves out:
- accounts for money in transit, such as funds received but not yet settled, or payouts sent but not yet confirmed;
- fee and revenue accounts, kept apart from customer funds;
- refunds, chargebacks, failed payouts and reversals, with the accounts they move money through.
Teams use the draft in a few ways:
- Pre-sales. Show a prospect their own business as a ledger model, built from their description or their website.
- Implementation. Start the project from a reviewed draft instead of a blank file, and refine it as the details come in.
- Existing customers. Compare a fresh draft with your current chart of accounts to find flows your ledger does not model yet.
- Testing. Insert the schema into a ledger on a Sandbox and send transactions against it.
How it fits with the rest of Formance#
| Studio | Formance stack |
|---|---|
| Designs the chart of accounts, transaction templates and queries | Runs the Ledger that stores and enforces them |
| Produces a Ledger schema in YAML or JSON | Accepts that schema through the Ledger API or fctl |
| Starts from the same templates as the Cookbook | Documents each template's flows in Numscript |
Studio generates schemas in the Ledger v2 format. It does not produce Ledger v3 schemas yet.