- Responsive, animated figures embedded in web pages
- Figures implemented declaratively with time-dependent constraints on graphical objects
- Integrates with Reveal.js presentations
- GitHub repository
- Reference manual
- A short talk about Constrain (HTML/Reveal source)
Interactive Pythagorean Theorem
Interactively computing centers of a triangle
Using constraints to compute the Golden Ratio (Drag the diamond!)
Cornell University course notes using Constrain for embedded figures: CS 2112, CS 4120/lexer generation, CS 4120/bottom-up parsing
Simple template page for using Constrain
$ claude mcp add constrain \
-- python -m otcore.mcp_server <graph>