How Sticker Forge Works
A Tier 1 (~127 MB) two-stage CPU WebAssembly pipeline —
RT-DETRv2 (onnx-community/rtdetr_v2_r18vd-ONNX,
~21 MB q8, Apache-2.0) and
SAM ViT-Base (Xenova/sam-vit-base, 105.99 MB q8,
Apache-2.0) — running completely locally in reused module Web Workers.
Reused Workers & Tier 1 Budget
Both models reuse ../../models/rtdetr-v2-r18vd/worker.js and
../../models/sam-vit-base/worker.js via StageWorkerClient, sharing Cache
Storage across the site without duplicate weights.
Euclidean Vinyl + Marching Squares
dilateMask() computes an exact two-pass O(W×H) squared Euclidean distance transform, and
extractMarchingSquaresContours() traces closed Chaikin-smoothed SVG die-cut paths.
Tactile Collage & Real Exports
Pointer Events + keyboard nudge/rotate/scale compose multi-sticker sheets with shadow elevation,
exporting transparent sticker .png, vector .svg, 1200×900 Print Sheet
.png, and upstreamModels recipe .json.