Geon
A zero-dependency, single-file library that renders publication-quality mathematical figures to SVG from a readable DSL.
What it is
Geon renders 2D mathematical figures from a small, natural-language-like DSL straight to SVG.
Figures are composed, not re-derived: points, circles, polygons, arcs and Bézier curves reference each other through named anchors, and intersections derive new points from line–circle and circle–circle solutions.
01
A real expression engine
Variables, constants and maths functions in coordinates, radii and plot formulas, parsed by a hand-written tokenizer and recursive-descent evaluator, with no dynamic code execution.
02
Editor-ready
Named style blocks, dash patterns, arrowheads, automatic label overlap avoidance, and parse and resolve hooks for tooling.
03
Agent-ready
Ships a skill file so LLM agents can author correct Geon programs.