Repository

carnworkstudios/boxwood

Boxwood

A Declarative Box-Split and Collision Engine for Vector Graphics. It provides a CSS-like layout grammar (padding, gap, cols, rows, auto-height), but outputs a clean JSON coordinate tree that any visual canvas (SVG, <canvas>, WebGL) can use to draw pixels, connectors, and particles.

9stars

Open github.com

carnworkstudios/boxwood

Boxwood

Boxwood: a zero-dependency TypeScript geometry framework for interactive canvas/diagram apps. Provides layout resolution, spatial collision separation, and obstacle-aware connector routing (A*).

Visit project

Show me a random project

First shared
Jul 3, 2026
HN activity
50

Show HN@bonzai2carnJul 3, 2026

Show HN: I built a declarative layout engine for SVG, Canvas, WebGL

Hey HN, I built a tiny zero DOM layout engine for vector graphics and custom renderers to resolves nested rows/cols/grids into exact `{x, y, w, h}` boxes, with text measurement, overflow signals, and collision separation. This is to help make SVG, PDF, Canvas responsive. Feedback welcome from anyone building canvas/SVG diagrams, dashboards, node editors, or diagram tools.

Community

Hacker News discussion

Loading the thread…