A text-to-CAD toolchain that turns plain-language prompts into manufacturable CAD deliverables. The core is an Elixir/OTP pipeline that accepts an opaque owner id, plugs in different LLM providers, and writes CAD code which is executed by guarded engines to produce STL, STEP and GLB outputs and a browser 3D preview. Reference components include a Phoenix web app with chat UI and 3D viewer, a headless runner for bulk or automated use, and a small Python cad_worker that executes build123d or other engines behind static checks, resource limits, a hard wall clock and process-group kills. The system uses an ETS-backed, fsynced journal for storage, supports BYO API keys via a resolver callback, and is released under Apache-2.0.
Supported engines are pluggable: build123d (default) produces STEP+STL+GLB via the Python worker; OpenSCAD shells out to the local binary and yields STL+GLB for 3D-printing paths; smlibpy (alpha) offers a NURBS kernel and STEP+STL+GLB. Requirements are Elixir 1.17+, Python 3.11/3.12, and an LLM API key (poppler optional for PDF datasheets). Examples include CNC-friendly robotic arms, a card-edge connector from a datasheet and photo, and a guitar pickup. Configuration is via environment variables or Docker; tests run for each component. Strong safety fences are applied to worker execution, but kernel-level isolation is recommended before exposing the service to untrusted users.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.