tools: fold2svg — render FOLD to SVG/PNG via Rabbit Ear #4

Merged
toph merged 3 commits from tooling/fold2svg into main 2026-06-29 10:07:57 +00:00
Owner

A small dev tool: tools/fold2svg.mjs renders Beloch's FOLD output to SVG (or PNG) via Rabbit Ear — the downstream consumer named in decisions/0009. It also doubles as a check that our FOLD is RE-loadable.

bun install
dune exec beloch -- fold examples/bisect-a.bel | bun tools/fold2svg.mjs - bisect-a.png

Adds bun to the Nix devshell; node_modules is gitignored (deps reproduced from bun.lock). Pure tooling — no language or library change. Sample renders are on #3.

A small dev tool: `tools/fold2svg.mjs` renders Beloch's FOLD output to SVG (or PNG) via [Rabbit Ear](https://rabbitear.org) — the downstream consumer named in `decisions/0009`. It also doubles as a check that our FOLD is RE-loadable. ```sh bun install dune exec beloch -- fold examples/bisect-a.bel | bun tools/fold2svg.mjs - bisect-a.png ``` Adds `bun` to the Nix devshell; `node_modules` is gitignored (deps reproduced from `bun.lock`). Pure tooling — no language or library change. Sample renders are on #3.
Author
Owner

The tool on two existing examples — diagonals.bel (axiom 1) and perp.bel (axioms 1 + 3):

diagonals
perp

The tool on two existing examples — `diagonals.bel` (axiom 1) and `perp.bel` (axioms 1 + 3): ![diagonals](https://git.toph.so/attachments/82bcc775-f472-4458-874e-85bae196a4f0) ![perp](https://git.toph.so/attachments/559d175f-3d67-46ec-b0e5-f9b20faf599d)
toph merged commit 9d012abe70 into main 2026-06-29 10:07:57 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
toph/beloch!4
No description provided.