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.
| file | compiler | parser | functions | size | gzipped | of full |
|---|---|---|---|---|---|---|
pta2svg.wasm | Go | yes | render, renderModel | 24.0 MB | 15.3 MB | 100% |
pta2svg-lite.wasm | Go | no | renderModel | 4.1 MB | 1.1 MB | 17% |
pta2svg-tiny.wasm | TinyGo | no | renderModel | 0.7 MB | 0.3 MB | 3% |
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