Vibe coded in JavaScript with HTML canvas and some SVG. The KaTeX library does the LaTeX typesetting.