Blog

2026-04-04 · oss / release

svg2daitai-vector — first OSS release

svg2daitai-vector — first open-source release

Code Daimyo — April 2026

We are releasing the first daitai OSS module: svg2daitai-vector.

It does exactly what it says: it takes an SVG path and emits a daitai-vector value — a precise, immutable, algebraically composable representation of the same shape. The kind of value you can rotate, project, intersect, diff, and sign without losing precision.

npm install @daitai/svg2daitai-vector
import { svgToVector } from "@daitai/svg2daitai-vector";

const v = svgToVector(`<path d="M0 0 L10 10 L20 0 Z"/>`);
v.area();          // exact rational
v.boundingBox();   // immutable record
v.intersect(other) // returns Optional<Vector>

It is a deliberately small first commit. We wanted the public history of daitai to start with a module that does one thing, has a real test suite, and ships clean.

Repo: github.com/daitai-org/svg2daitai-vector. The next two modules (daitai-vector and daitai-ui) are scheduled for Q2 — see the Open Source page.

Code Daimyo