CADCraft: An Open-Source, Rust-Based CAD Tool for Developers

CADCraft: An Open-Source, Rust-Based CAD Tool for Developers

GitHub Open Source
storytold/cadcraft

CADCraft brings a native, Rust-based 2D/3D drafting environment to your desktop that supports DXF/DWG files and MCP-driven automation.

Repository snapshot

  • Repository: storytold/cadcraft
  • Language: Rust
  • License: Apache-2.0
  • Stars: 8 376
  • Forks: 3 521

Daily open-source picks: GitHub Open Source on Telegram

What it is

CADCraft is a 2D and 3D computer-aided design application built entirely in Rust. Unlike many modern CAD tools that rely on Electron or heavy web-view wrappers, CADCraft is a native binary that prioritizes performance and a classic, command-line-driven drafting experience. It handles standard drafting operations—lines, polylines, circles, arcs, and complex modifications like trim and extend—using the keyboard-centric workflow that many professionals have used for decades.

Why it matters

For developers and engineers, the biggest hurdle with traditional CAD software is the lack of true programmability. Most legacy tools are built as GUI-first silos where automation is an afterthought or locked behind expensive enterprise tiers. CADCraft changes this by treating the command line as the primary interface. Because every action is a command, the software is inherently scriptable. By integrating the Model Context Protocol (MCP), it allows AI agents to inspect, modify, and generate drawings programmatically, bridging the gap between design and code.

Key features

  • Native performance: Built in Rust with egui, it runs natively on macOS, Windows, Linux, and FreeBSD without the resource usage of Electron.
  • File compatibility: Native DXF read/write (R12–2018) and DWG support via the acadrust library.
  • Agent-ready: Built from the ground up for automation, allowing agents to drive the software via MCP or a JSON control channel.
  • Familiar workflow: Supports standard drafting habits like object snaps, polar tracking, ortho, and direct distance entry.
  • Web-capable: Includes a WebAssembly build for running directly in the browser.

Quick start

To get started with the local build, ensure you have Rust 1.95 or later installed:

git clone https://github.com/storytold/cadcraft
cd cadcraft
cargo run --release -p cadcraft -- --sample

Once open, you can interact with the command line by typing commands like line, circle, or offset directly.

Who should try it

This is for anyone tired of bloated, proprietary CAD suites who wants a lightweight, scriptable alternative. If you are a developer looking to integrate CAD generation into a pipeline, or an engineer who prefers a keyboard-driven workflow, this is a strong candidate. However, if your daily work depends on specialized, third-party plugins from legacy CAD vendors, you will likely find those missing here.

Verdict

CADCraft is a refreshing, performance-oriented take on CAD. It is currently in early development, so expect some rough edges, but its commitment to open standards and agent-driven automation makes it a project worth watching for anyone who wants to treat their drafting process as code.

Continue exploring

Get the next pick in Telegram: Follow GitHub Open Source

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

Report Page