← all repositories
Adam-CAD/CADAM

Type a gear, get a gear: open-source text-to-CAD in your browser

CADAM turns natural language and images into parametric 3D models using OpenSCAD compiled to WebAssembly, with no install required.

3.9k stars TypeScript Domain Apps
CADAM
Velocity · 7d
+14
★ / day
Trend
steady
star history

What it does CADAM is a browser-based app that generates 3D CAD models from text descriptions or uploaded images. It pipes your prompt through an LLM (Claude via Anthropic’s API) to produce OpenSCAD code, then compiles that code in-browser using OpenSCAD WebAssembly. You get interactive sliders to tweak dimensions, and can export to STL, SCAD, or DXF. The stack is React 19, TanStack Start, Three.js for preview, and Supabase for backend services.

The interesting bit The parametric extraction is the quietly useful part: instead of regenerating the entire model from scratch when you want a bigger hole, CADAM identifies adjustable dimensions and lets you scrub values locally. That’s the difference between a demo and a tool you might actually iterate with.

Key highlights

  • Runs entirely client-side for CAD compilation; only AI generation hits the server
  • Supports BOSL, BOSL2, and MCAD libraries for more sophisticated geometry
  • Image-to-model guidance, not just text prompts
  • Real-time preview via Three.js + React Three Fiber
  • GPLv3, with clear attribution to upstream OpenSCAD WASM and openscad-web-gui

Caveats

  • Local development requires a small fleet of services: Supabase CLI, ngrok tunnels for webhooks, and API keys for Anthropic, OpenAI, OpenRouter, Google, and FAL
  • The demo GIF and gear example images in the README are commented out or missing; only static screenshots are actually visible
  • Billing service URL and key are required even for local setup, suggesting some commercial plumbing is entangled

Verdict Worth a spin if you do repetitive parametric modeling and want to prototype faster, or if you’re building a product in the generative-design space and need a reference architecture. Skip it if you need serious CAD (this is OpenSCAD, not Fusion) or if “npm install plus five API keys and ngrok” makes you flinch.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.