Public examples, agent skills, docs links, and issue tracking for ForgeCAD.
ForgeCAD is code-first parametric CAD for JavaScript/TypeScript: a normal .forge.js file becomes a live model with parameters, assemblies, validation, renders, inspections, and exports.
This repository is the public companion kit. It is intentionally focused on assets people can use directly: example models, installable agent skills, public issues, docs links, and historical benchmark artifacts.
TypeScript is the file format. The browser is the CAD system.
Try ForgeCAD • Docs • Examples • Agent skills • Open an issue
| If you want to... | Go here |
|---|---|
| Use the CAD app | forgecad.io |
| Learn the API | Docs |
| Run example models | examples/ |
| Install agent workflows | skills/ |
| Report a bug or request an API | Issues |
| Check commercial terms | Pricing |
| This public kit contains | The hosted product contains |
|---|---|
Ready-to-run .forge.js examples |
Browser workbench and project storage |
| Agent skills and workflow prompts | Core app source and infrastructure |
| Public bug reports and feature requests | Account, billing, and usage systems |
| Historical benchmark artifacts | Product roadmap execution and customer projects |
The npm package, CLI, hosted app, and backend/application usage are governed by ForgeCAD's product terms. This public kit itself is MIT licensed.
Install the CLI:
npm install -g forgecadStart from the hosted starter project:
forgecad login
forgecad project clone start-here
cd start-here
forgecad studio .forgecad login guides you through email/password or API-token sign-in. Choose API token for GitHub/Google accounts.
A ForgeCAD project is a dedicated local folder linked to the hosted app by forgecad.json. Use forgecad project clone <slug> to download an existing project, or run forgecad project init inside a folder you want to make into a new ForgeCAD project.
Create a new project locally:
mkdir spool-adapter
cd spool-adapter
forgecad project init "Spool Adapter" --visibility private
forgecad new adapter --template part
forgecad studio .Do not point forgecad studio at your home directory, downloads folder, desktop, or a huge source tree. It requires an explicit project path; use . for the current project folder.
Explore the public examples locally:
git clone https://github.com/KoStard/forgecad-public-kit.git
cd forgecad-public-kit
forgecad studio examples
forgecad run examples/products/cup.forge.js
forgecad render 3d examples/products/cup.forge.jsOpen more than one local project at once:
forgecad studio examples path/to/another-projectInside a cloned or initialized ForgeCAD project, drop this into starter.forge.js:
const width = Param.number("Width", 90, { min: 50, max: 160, unit: "mm" });
const depth = Param.number("Depth", 56, { min: 32, max: 100, unit: "mm" });
const height = Param.number("Height", 12, { min: 6, max: 32, unit: "mm" });
const holeRadius = Param.number("Hole Radius", 5, { min: 2, max: 10, unit: "mm" });
const base = box(width, depth, height).color("#5f87c6");
const hole = cylinder(height * 3, holeRadius).translate(0, 0, -height);
return {
"starter plate": base.subtract(hole),
};Then run:
forgecad run starter.forge.js
forgecad studio .This repository is ForgeCAD's public companion kit for:
- Issues and discussion — bugs, feature requests, questions, and public roadmap input.
- Examples — ready-to-run
.forge.jsscripts underexamples/. - Agent skills — the generated ForgeCAD modeling skill plus companion workflows under
skills/. - Benchmarks — examples of how current language models handle code-first CAD prompts.
- Docs links — full user documentation lives at forgecad.io/docs.
If there is a component you want opened up sooner, file an issue.
| Area | Start here |
|---|---|
| API basics | examples/api/boolean-operations.forge.js, examples/api/constrained-sketch-basics.forge.js |
| Assemblies | examples/api/static-assembly-connectors.forge.js, examples/mechanical/5-finger-robot-hand.forge.js |
| Exact and surface workflows | examples/api/exact-surface-studio.forge.js, examples/exact-arc-housing.forge.js |
| Generative forms | examples/generative/voronoi-lampshade.forge.js, examples/api/sdf-shapes.forge.js |
| Products | examples/products/chess-set.forge.js, examples/products/classical-piano.forge.js |
| Solver cases | examples/constraints/, examples/compiler-corpus/ |
| Task | Command |
|---|---|
| Clone a hosted project | forgecad project clone <slug> |
| Create a new hosted project from the current folder | forgecad project init "Project Name" |
| Open one or more local projects | forgecad studio <project-path> [project-path ...] |
| Validate a script | forgecad run file.forge.js |
| Render a PNG | forgecad render 3d file.forge.js |
| Inspect a model | forgecad inspect collisions file.forge.js |
| Render a section | forgecad render section file.forge.js --plane XZ |
| Export STL | forgecad export stl file.forge.js |
| Export STEP | forgecad export step file.forge.js |
| Sweep parameters | forgecad check params file.forge.js --samples 10 |
forgecad project init creates the remote project, writes forgecad.json, and uploads local source files. forgecad project push syncs an already initialized project; it does not create a remote project from a random folder.
Run forgecad doctor if render or exact export dependencies need checking.
ForgeCAD is built to work well with coding agents because CAD models are just code. The strongest loop is:
agent edits .forge.js -> forgecad run -> forgecad inspect <evidence> -> iterate
The full setup, approved model list, installed skills, flattened skill files, and completion criteria are in the AI Usage guide.
Install the ForgeCAD public skill library:
forgecad skill installThat installs the core forgecad skill plus public workflow skills such as forgecad-make-a-model, forgecad-render-inspect, and forgecad-lld into ~/.agents/skills. Use --target when you want to update a different agent location:
forgecad skill install --target claude # ~/.claude/skills
forgecad skill install --target codex # ~/.codex/skills
forgecad skill install --target opencode # ~/.config/opencode/skillsThe library includes public prompts for:
- build-brief preparation with
forgecad-prepare-prompt - model authoring with
forgecad-make-a-model - component discipline with
forgecad-component-model - high-level and low-level design with
forgecad-high-level-specandforgecad-lld - render-bundle verification with
forgecad-render-inspect - visual prompt generation with
forgecad-visual-spec
The generated core modeling skill is checked in at skills/forgecad/SKILL.md. The full public skill index is skills/README.md.
Start the agent inside the initialized project folder and require command evidence:
Use the ForgeCAD skills. Work in this project folder. Build real ForgeCAD
geometry, validate with forgecad run, render or inspect the result, run
parameter checks when relevant, and push with forgecad project push when done.
For chat tools without local shell access, generate a single context file:
forgecad skill one-file ~/Desktop/forgecad-context.mdHistorical benchmark archive only. These rows are not recommendations and are not the approved model list. For current supported AI workflows, use the approved models in the AI Usage guide.
Latest benchmark iterations from ForgeCADBenchmark/results/* (version_{n}.forge.js with highest n per run folder).
- Browser CAD workbench with Monaco editing, live parameters, and a real-time 3D viewport.
- Code-first modeling API for primitives, sketches, booleans, transforms, offsets, constraints, patterns, and SDF/level-set workflows.
- Named shapes, face/edge references, fillet/chamfer helpers, geometry inspection, dimensions, BOMs, and report-oriented annotations.
- Assembly modeling with parts, connectors, joints, coupled motion, and collision/clearance checks.
- CLI validation, parameter sweeps, viewport renders, inspection bundles, mesh export, exact export workflows, and project sync.
- Agent context that can be installed locally or inspected directly from this repository.
Full documentation is available at forgecad.io/docs. Useful starting points:
This public kit is available under the MIT License. The ForgeCAD npm package, CLI, hosted app, and commercial/backend usage are covered separately by ForgeCAD's product terms and pricing at forgecad.io/pricing.


























