pta2svg — Demo

Generate SVG flowcharts from plain text accounting files

Try it

Type a ledger and watch it drawn in the browser (WebAssembly build).

Browser builds

The tree-sitter grammars behind render are most of the full build. A page that holds the ledger as data loads a build without them and calls renderModel with the JSON model; TinyGo shrinks that further.

filecompilerparserfunctionssizegzippedof full
pta2svg.wasmGoyesrender, renderModel24.0 MB15.3 MB100%
pta2svg-lite.wasmGonorenderModel4.1 MB1.1 MB17%
pta2svg-tiny.wasmTinyGonorenderModel0.7 MB0.3 MB3%

Orange Trading Business

  • 01_investment.goluca
  • 02_buy_oranges.goluca
  • 03_sell_oranges.goluca
  • 04_buy_on_credit.goluca

General Examples

  • arrows.goluca
  • budget.goluca
  • movement.goluca
  • simple.goluca
  • simple.pta