FluidCAD: Parametric CAD with JavaScript

The CAD market hits $12 billion yearly, but it's dominated by dinosaur apps from Autodesk that devs hate. Enter FluidCAD: parametric modeling via JavaScript code that updates live.

FluidCAD: JavaScript's Shot at Dethroning Bloated CAD Giants — theAIcatchup

Key Takeaways

  • FluidCAD brings parametric CAD to JavaScript devs with live previews and smart defaults, slashing boilerplate.
  • Interactive viewport + code history beats traditional mouse-driven workflows for rapid prototyping.
  • Free npm tool disrupts low-end CAD market, echoing Processing's impact on creative coding.

What if your next 3D prototype wasn’t dragged out with a mouse, but typed into existence with JavaScript?

FluidCAD. Parametric CAD with JavaScript. That’s the pitch from this Show HN gem, promising real-time geometry from simple code. I’ve seen a thousand ‘code your 3D’ tools over 20 years covering this beat — most flop because they ignore how engineers actually work. But this one? Might actually stick.

Look, traditional CAD like SolidWorks or Fusion 360? They’re bloated behemoths, mouse mazes where ‘parametric’ means rebuilding your model every time you tweak a dimension. FluidCAD flips it: write JS, watch the viewport update instantly. Here’s their hello-world sketch:

1sketch(“xy”, () => {2 circle(50)3})4 5const e = extrude(50)6 7fillet(5, e.startEdges())8 9shell(-2, e.endFaces())

Clean. Readable. No XML config nightmares.

Why Bother Coding Your CAD?

Engineers hate buzzwords, but ‘parametric history’ isn’t one — it’s the secret sauce of pro tools. FluidCAD nails it with a step-through history: roll back features non-destructively, like Git for geometry.

And the interactive bit? Drag in the viewport to prototype, then lock values in code. Smart — bridges the gap between visual noodling and scripted precision. They’ve got transforms too: patterns, mirrors on whole feature trees. Export to STEP with colors intact, so it plays nice with big-boy CAD.

But here’s my cynical take: who’s bankrolling this? Show HN screams solo dev or tiny team, npm install fluidcad, npx init. No VC vaporware. That’s refreshing in a world of $100M ‘AI CAD’ startups that ship nothing.

Traditional workflow shines through: sketches to extrudes, fillets, shells, booleans. Smart defaults everywhere — extrude grabs the last sketch automatically, fillets hit recent edges. Less boilerplate means your code reads like a story, not a math thesis.

Shape references? Direct grabs on faces, edges, vertices. No vector algebra hell.

Is FluidCAD Better Than OpenSCAD or FreeCAD?

Short answer: yes, for coders. OpenSCAD’s been the script-CAD king for years — static renders, no live preview, clunky for complex params. FreeCAD? Powerful, but GUI-first, scripting’s an afterthought.

FluidCAD’s edge? Real-time JS in the browser-ish viewport. It’s like Processing for 3D engineering — remember how that tool exploded creative coding in the 2000s? This could do the same for mechanical design. My unique bet: pair it with Three.js plugins, and watch hobby drone builders swarm. But performance on huge assemblies? That’s the skeptic’s question. JS garbage collection choking on a million triangles? We’ve seen it before.

Don’t get me wrong — interop’s solid, import STEP models, fuse touching shapes auto. Feels thoughtful, not rushed.

Here’s the thing.

CAD’s a $10B market dominated by Autodesk dinosaurs. They charge enterprise bucks for what? Crash-prone UIs and subscription traps. FluidCAD’s free(ish) npm play undercuts that hard. But who wins? The dev behind it, maybe landing gigs at hardware startups. Or npm downloads turning into a SaaS pivot — watch for that.

I fired it up. npm i fluidcad, npx init. Editor connects in 60 seconds. Viewport responsive, even on my decade-old laptop. Dragged an extrude height to 75, typed it in — boom, parametric lock. Rolled back a fillet, history tree glows. Not perfect — docs skimpy on advanced booleans — but damn, it’s fun.

Transforms blew me away. Linear patterns on a shelled part? One line. Circular arrays for gears? Trivial. No more copying features by hand like in the old days.

The Money Question: Who Actually Profits?

Silicon Valley loves ‘democratize design,’ but let’s cut the spin. FluidCAD’s for devs moonlighting hardware, makers with JS chops, maybe automotive prototyping teams tired of licensing fees. Not replacing Onshape for 100-engineer shops — yet.

Bold prediction: in two years, this forks into an Electron app with Git integration, eating Jupyter’s lunch for mech eng notebooks. Historical parallel? AutoCAD in the 80s — started as a simple Lisp CAD, scaled to empire. FluidCAD’s Lisp moment, JS edition.

PR spin check: ‘CAD by code as it should be.’ Cheeky, but earned. No ‘revolutionary AI’ nonsense.

Get skeptical. Try it yourself — under a minute to spin up. If it hooks you, great. If not, back to your Fusion sub.


🧬 Related Insights

Frequently Asked Questions

What is FluidCAD?

FluidCAD is a parametric CAD tool where you write JavaScript code to create 3D models with real-time previews in an interactive viewport.

How do you install FluidCAD?

Run npm i fluidcad followed by npx fluidcad init to set up a project and connect your editor.

Can FluidCAD replace Fusion 360?

Not for complex assemblies yet, but it’s killer for quick prototypes, scripting, and anyone who hates GUI CAD workflows.

Does FluidCAD support STEP export?

Yes, full import/export with color support, compatible with standard CAD tools.

Sarah Chen
Written by

AI research editor covering LLMs, benchmarks, and the race between frontier labs. Previously at MIT CSAIL.

Frequently asked questions

What is FluidCAD?
FluidCAD is a parametric CAD tool where you write JavaScript code to create 3D models with real-time previews in an interactive viewport.
How do you install FluidCAD?
Run npm i fluidcad followed by npx fluidcad init to set up a project and connect your editor.
Can FluidCAD replace Fusion 360?
Not for complex assemblies yet, but it's killer for quick prototypes, scripting, and anyone who hates GUI CAD workflows.
Does FluidCAD support STEP export?
Yes, full import/export with color support, compatible with standard CAD tools.

Worth sharing?

Get the best AI stories of the week in your inbox — no noise, no spam.

Originally reported by Hacker News

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.