Projects / AutoToolTracer
AutoToolTracer
A browser app that traces tools from a photo, using a coin for scale, and generates Gridfinity holders with a pocket shaped to each tool, ready to 3D print.
- Input
- Photo + coin for scale
- Output
- 3MF, STL, STEP
- Runs in
- Browser, no server
- Stack
- TypeScript, React, Vite
- Geometry
- OpenCV.js, manifold-3d

How it works
A top-down photo of a tool next to a coin of known diameter sets the scale. The coin is detected automatically and the tool outline traced, with brushes and draggable points for corrections. Tools are then arranged on the Gridfinity grid, on a single holder or across a whole drawer split into pieces that fit the print bed, with adjustable pocket depth, clearance and finger cutouts. Image processing (OpenCV.js), 3D model generation (manifold-3d) and STEP export (OpenCascade) all run in the browser as WebAssembly, so photos never leave the computer. There is an online version.

Accuracy
Thick tools sit closer to the camera than the coin and come out slightly too large: in the sample photo, pliers with a nominal length of 125 mm measure about 138 mm. Entering a caliper measurement in the size check corrects this, and printing a single holder as a fit test is recommended. The included example drawer has 23 tools from 20 photos on a 20 × 10 grid, split into eight 5 × 5 pieces for a 220 mm bed. The code was written with Claude, with each version tested on real tools and drawers.