tracefinity/tracefinity

Generate custom gridfinity bins with AI, from photos of your tools

Tracefinity – AI‑assisted design of Gridfinity storage bins

What it does – You snap a photo of your tools laid out on a sheet of paper, upload it to Tracefinity, and an AI model automatically extracts the silhouette of each tool. Those silhouettes become editable vector shapes that you can arrange into custom Gridfinity‑compatible bins and export as STL/3MF for 3‑D printing.

Why it matters – Designing tool organizers by hand is tedious. Tracefinity removes the manual tracing step with on‑device or cloud‑based vision models, letting makers quickly generate printable storage that fits exactly around their real tools.


Key features (as described in the README)

  • AI‑powered tracing – Local saliency models (IS‑Net, BiRefNet‑Lite, InSPyReNet) or Google Gemini generate black‑and‑white masks from photos.
  • Paper‑corner calibration – Detects the sheet edges (U2‑Net) to scale the image correctly, even when tools overhang.
  • Tool library – Save traced tools for reuse across multiple projects.
  • Bin builder – Drag‑and‑drop tools onto a Gridfinity layout, with automatic snap‑to‑grid, cut‑out clearance, chamfers, and optional finger‑hole cutouts.
  • Export options – STL, 3MF (multi‑colour), SVG, and a live three.js preview.
  • Automatic naming – Optional Ollama or OpenRouter vision model can suggest tool names.
  • Authentication & multi‑user – Native login, 2FA, proxy or open modes, all configurable via environment variables.
  • Single‑container Docker – Frontend and backend run together; also available via Docker‑Compose or Helm charts for Kubernetes.
  • Resource‑aware – Supports ARM devices (Raspberry Pi) and optional CUDA acceleration for faster inference.

Quick start (Docker)

# Run with the built‑in CPU model (no API key)
docker run -p 3000:3000 -v ./data:/app/storage ghcr.io/tracefinity/tracefinity

# Or use Google Gemini (replace with your key)
# docker run -e GOOGLE_API_KEY=your-key …

Open http://localhost:3000 and create an admin account on first launch.


How tracing works

  1. Place tools on A4/Letter/A3/Tabloid paper (tools may spill over the edges).
  2. Photograph from directly above.
  3. Upload; adjust the four detected corners for scale.
  4. The selected tracer (local model or Gemini) returns a mask.
  5. Convert the mask to polygons via OpenCV contour extraction.
  6. Edit, label, and save the tools.
  7. Assemble tools into a bin layout and export for 3‑D printing.

Model options (environment variable TRACERS)

Model Speed (CPU) RAM Quality
IS‑Net (default) ~0.8 s 2 GB Good – fastest, lowest memory
BiRefNet‑Lite ~3.6 s 8 GB Best – handles reflections
InSPyReNet ~2.8 s 6 GB Good – Apple Silicon support

Set GOOGLE_API_KEY to switch to Gemini (gemini-3.1-flash-image-preview by default). Remote providers (fal.ai, Replicate) are also supported via FAL_KEY or REPLICATE_API_TOKEN.


Installation alternatives

  • Docker‑Compose – define a service with volume ./data:/app/storage and optional GOOGLE_API_KEY.
  • Helm chart – helm install tracefinity oci://ghcr.io/tracefinity/charts/tracefinity with persistence and env values.
  • From source – Python 3.11+ backend, Node 20+ frontend, pnpm for dependencies, then make dev to run backend on :8000 and frontend on :4001.

License

MIT – free to use, modify, and redistribute.


Bottom line – Tracefinity is a practical, AI‑driven tool for makers who want custom‑fit Gridfinity bins without hand‑drawing each part. It bundles the necessary vision models, a web UI, and export pipelines into a single Docker image, making it easy to self‑host on a laptop, Raspberry Pi, or Kubernetes cluster.

Related

  • Project
  • Project
  • Project
  • Project
  • Project