Command Menu

Search documentation, components, and switch theme.

Fragments

Ledger Schema

Interactive viewer for a Formance ledger schema — chart of accounts, transactions (Numscript), and queries — with a tabbed full view and props to show a single section, transaction, or chart subtree.

Formance
Docs

An interactive viewer for a Formance ledger schema — its chart of accounts, transactions (Numscript), and queries — in a single component. The default view tabs between each section that's present; narrowing props render just one part. Pass the schema as a parsed object via data.

Transactions show their Numscript with syntax highlighting, and an interpreter (machine / experimental) plus feature-flag pills predicted from the script. Provide explicit interpreter / featureFlags fields on a transaction to override the prediction, and use the optional renderScriptTags / renderScriptActions / renderScriptFooter slots to inject host-specific tooling (e.g. a playground launcher). The chart tab renders a foldable Chart of Accounts tree: namespaces, postable accounts, parameterized $segments, and .pattern / .metadata badges.

Chart only#

Render just the chart of accounts with section="chart" — no tab bar.

Chart with legend#

Pass legend to render the icon key beneath the tree — folder, account, folder + account (.self), and parameterized segments.

Transactions#

Render the schema's transactions as a list with section="transactions". Each row folds to reveal its Numscript.

Single transaction#

Focus on one transaction with the tx prop. Renders flat with no fold — useful inline in a walkthrough next to the prose that explains it.

Queries#

Render the schema's saved queries with section="queries", each with its resource and JSON body.

Single query#

Focus on one query with the query prop. Renders flat with no fold, like a single transaction.