NewsCrawler.org

Visualizing a Ledger with pgledger-ui

pgledger-ui account page
pgledger-ui trace crosstab view
Image: pgrs.net

The author has built pgledger, a ledger written in pure PostgreSQL, and thinks more applications should use double-entry ledgers[1]. Ledgers are hard to read visually, so the author created pgledger-ui, a common tool for viewing them.

pgledger-ui runs database queries and shows the results on a web page, with charts and aggregate information. It is packaged as a single Go binary. Each entity links to related entities, including metadata keys, so users can trace money flows. A single search box finds matches by id, account name, idempotency key or metadata values.

The tool can show transfer entries as a crosstab[2], with one column per account instead of one row per entry. It can also separate incoming and outgoing flows in a T-account[3] layout. The author asks readers to try it and to say what they think.

Read the original pgrs.netDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page