Welcome

pattapatta

pattapatta is a TypeScript geometry library for pen plotters: hatching, circle packing, triangulation and meshing, boolean path ops, Voronoi, tilings, and SVG I/O — for Node and the browser.

Inspired by Processing Geometry Suite (PGS), implemented clean-room under MIT (not a line port).

Hero: hatch + inscribed packing

What you get

  • Stroke-first geometry (fill="none" SVG by default)
  • ESM + TypeScript types
  • Feature imports (pattapatta/hatch, pattapatta/circlePacking, …)
  • CLI for SVG round-trips

Jump in

PagePurpose
QuickstartInstall and draw something in 2 minutes
Getting startedMental model, imports, a full mini pipeline
ExamplesChained recipes: union → hatch, frame → pack, …
Live demosInteractive packing, triangulation, meshing, hatch, and pipelines
OperationsTransforms and region ops (e.g. rotate, boolean)
FillsStroke marks (hatch, packing, tiling, …)

Design notes

Internal research and ADRs live in the repo under docs/ (separate from this docs app).