v7.3.0 llm.txt Download
Docs0003 · Node toolchain on CanvasKit

Decisions · docs/decisions/0003-node-toolchain.md

0003 · Node toolchain on CanvasKit

Accepted · 2026-10-21

Context

7.0.0 built with Python: skia-pathops, fonttools, cairosvg (which needs the native Cairo library), Pillow, NumPy and SciPy. On a stock Mac pip is missing, and installing Cairo needs Homebrew, so make all failed for the people the repository is for. Station tooling, the CLI and the site are Node.

Decision

Port the build to Node 20+, with these build-time dependencies (none ships in build/):

Package Why
canvaskit-wasm 0.40.0 Skia path operations (stroke, union, difference) as WebAssembly: the same geometry as 7.0.0, on every platform, nothing to compile
@resvg/resvg-js 2.6.2 SVG to PNG for brand exports, QA sheets and the silhouette lint; prebuilt binaries for every platform, all recorded in the lockfile
opentype.js 1.3.4 outlines label text, so no output depends on installed fonts
marked 14.1.4 Markdown to HTML for the docs site
typescript 5.6.3, @types/react 18.3.12 typecheck of the React component and type definitions
@playwright/test 1.56.1 browser checks and the README screenshot

Consequences

  • make setup is npm ci on any OS. A pixel comparison of all 1,260 renders against 7.0.0 matched within anti-aliasing.
  • Skia's path ops return even-odd contours. The engine orients contours itself so output is correct under SVG's non-zero rule.
  • The Python build is kept in .archives/removal-safe/python-build-7.0.0/.