Skip to content

Latest commit

 

History

History
402 lines (334 loc) · 25.4 KB

README.md

File metadata and controls

402 lines (334 loc) · 25.4 KB

DraftCraft™: a drafting compass that has just drawn an arc, on a dark blueprint-blue tile with a drafting grid, beside the name DraftCraft with Draft in bold

Open-source 2D drafting with the ribbon you know, built in pure Rust.

DWG and DXF drawings with the command line, object snaps, layers, dimensions, hatches, blocks and layouts you already know, under a Windows-style ribbon. It runs natively on macOS, Windows and Linux, and agents can drive it through MCP.

Download for Windows Download for macOS Download for Linux (AppImage)

Support me on Ko-fi Join the DraftCraft Discord

Status: in active development Written in pure Rust Runs on macOS, Windows and Linux MCP server for agents License: MIT OR Apache-2.0

Screenshots · Downloads · Why DraftCraft™ · Conic arcs · What works today · Quick start · Agents · Made by · License

Note

DraftCraft™ is a fork. It's CADCraft, the ArtCraft team's open-source CAD application, grown toward native, lossless DWG by WithShalom Studios (originally as DWGCraft) and given the Windows-style ribbon you know from AutoCAD by SkryxDev (originally as RustDraft). It is not made, endorsed or supported by the ArtCraft team, and it is not affiliated with Autodesk, Inc. AutoCAD and DWG are Autodesk's trademarks, used only to say which files and workflows DraftCraft works with.

DraftCraft with the Home tab of the ribbon and the sample drawing: a mounting bracket with dimensions, a hatched section view, notes and a title block
Mounting bracket, the sample drawing (Help › Open Sample Drawing): the Home tab of the ribbon, the command line floating over the drawing and the drafting toggles on the status bar.

Screenshots

Layout1: a paper sheet with a viewport showing the bracket drawing, ready to plot A selected dimension with its blue grips and the Properties palette on the right, with the Annotate tab of the ribbon
Layouts: paper space with viewports, page setups and PLOT to PDF. Properties: selection grips and a palette that edits any object.
The Arc drop-down of the Draw panel, listing its eleven methods, each with its own picture
Split buttons: Arc ▾, Circle ▾, Trim ▾ … list every method, each with its own picture.

Why DraftCraft™

  • The workflow you know. Type L, click two points, type @5<45, press Enter. The command line, prompts with clickable [Keywords], AutoComplete, object snaps, polar tracking, ortho, direct distance entry, window and crossing selection, grips and right-click-to-repeat behave the way drafting habit expects.
  • The ribbon you know. Home, Insert, Annotate, Parametric, View, Manage, Output, Add-ins, Collaborate and Extra Tools, with large, small and split buttons, the layer list and the property lists, the application menu and the Quick Access Toolbar — the same on macOS, Windows and Linux. On Windows the menu bar sits in the title bar.
  • Open files. DWG and DXF are read and written by DraftCraft's own code at the version you choose (2000 to 2018), and the DWG files open in AutoCAD without recovery. Plot to PDF, export SVG and PNG.
  • Things other CAD tools don't do. CONIC draws exact conic arcs, saved as rational splines every DWG and DXF program reads.
  • Fast and native. Pure Rust and egui, no Electron, no web view, drawing on the GPU.
  • Built for agents. Every menu item, tool and prompt is a command. Agents type at the command line like a person, call any command with JSON, inspect the drawing and render it — over MCP, a JSON control channel or the CLI.
  • Free. MIT OR Apache-2.0, with no account and no subscription.

Conic arcs

The top-right corner of a phone outline in plan view: the CONIC command shows its two tangent lines meeting at the apex and the conic arc it will draw between them, and asks for the rho value; the inner corner is already a finished conic
CONIC drawing the corner of a phone in plan view: the end tangents meet at the apex, and the preview follows the cursor until you give rho.

Most CAD programs draw corners with circular fillets, which can't make the soft, continuous corners of a phone, a car body or a bottle. CONIC draws an exact conic arc — a piece of an ellipse, a parabola or a hyperbola — from four inputs:

  1. the start point,
  2. the apex: where the tangents at the two ends meet,
  3. the end point,
  4. rho, the shape: type a value, or click a point the curve should pass through.
rho Curve Looks like
below 0.5 ellipse a soft, open corner
0.5 parabola the default
above 0.5 hyperbola a full, square-ish corner that hugs the apex
conic 0,0 5,5 10,0 0.6          start, apex, end, rho

Find it on the ribbon in Home › Draw, next to Spline. The curve is saved as an exact rational spline (NURBS), an entity every DXF and DWG program already has: AutoCAD opens it as an ordinary spline you can edit with grips, in DXF and in DWG at every version. Agents and scripts call it with {"command": "conic", "params": {"start": [0,0], "apex": [5,5], "end": [10,0], "rho": 0.6}}, or through in place of rho.

Select a conic later and its Rho shows in the Properties palette under Geometry: type a new value between 0 and 1 and the arc reshapes, keeping its ends and tangents. It works on any spline of that shape, whoever drew it.

What works today

DraftCraft is young and moving fast. ROADMAP.md has what is missing and what comes next.

Area Status
Interface Windows-style ribbon (10 tabs, split buttons, layer and property lists), application menu, Quick Access Toolbar, file tabs, floating command line, ViewCube and navigation bar, status bar toggles and drawing units, Properties and Layers palettes, What's New after every update, 18 languages
Command line AutoCAD command names and aliases, prompts with keywords, AutoComplete that learns the commands you use most, @dx,dy, @d<a, #x,y, direct distance entry, transparent commands, scripts
Draw LINE, PLINE (arcs, widths), CIRCLE, ARC, RECTANG, POLYGON, ELLIPSE, SPLINE, CONIC, POINT, XLINE, RAY, DONUT, REVCLOUD, WIPEOUT, TEXT, MTEXT
Modify ERASE, MOVE, COPY, ROTATE, SCALE, MIRROR, STRETCH, OFFSET, TRIM, EXTEND, FILLET, CHAMFER, BREAK, JOIN, EXPLODE, arrays, draw order, OVERKILL, grips
Precision and inquiry Object snaps, polar tracking, ortho, grid snap, dynamic input; DIST, ID, LIST, AREA, MEASUREGEOM and AREATOTAL (total area, perimeter and length of a selection)
Annotation DIM commands with dimension styles and associative dimensions, multileaders, tables, TrueType and SHX fonts, right-to-left text
Hatches and blocks Pattern, solid and gradient fills; blocks, attributes, ATTOUT and ATTIN, the Block Editor and dynamic blocks, in-place editing, external references
Parametric Geometric and dimensional constraints, AUTOCONSTRAIN, parameters with expressions
Layouts and output Paper-space layouts, viewports, page setups, plot styles, PLOT and EXPORTPDF (arcs, circles and splines kept as true curves), SVG and PNG export
Files DWG (AutoCAD 2000 to 2018) and DXF reading and writing with DraftCraft's own code, at a chosen version; AUDIT and RECOVER; autosave and drawing recovery. Objects DraftCraft doesn't model yet can be lost on save
Settings Export Settings and Import Settings (CONFIGEXPORT, CONFIGIMPORT): your setup in one TOML file you can take to another computer
Automation MCP server, JSON control channel, draftcraft-cli, AutoLISP, scripts and alias files

Quick start

Typing works like in AutoCAD: start typing anywhere in the drawing and it goes to the command line.

line 0,0 @10,0 @0,5 c          a closed triangle
circle 5,2 1                    a circle
conic 0,0 5,5 10,0 0.6          a conic arc: start, apex, end, rho
offset 0.25                     then pick the circle and a side
zoom e                          zoom to the drawing's extents

On Windows and Linux, Ctrl takes the place of ⌘.

Keys Action
⌘N ⌘O ⌘S New, open, save
⇧⌘S Save as
⌘P Plot
⌘Z ⇧⌘Z Undo, redo
⌘X ⌘C ⌘V Cut, copy, paste
⇧⌘C ⇧⌘V Copy with base point, paste as block
⌘A Select all
⌘F Find and replace
⌘1 Properties palette
⌘9 Show or hide the command line
F1 Command reference
F2 Command history
F3 Object snap
F7 F8 F9 Grid, ortho, snap
F10 F11 F12 Polar tracking, object snap tracking, dynamic input
Delete Erase the selection
esc Cancel the command
↩ or space Repeat the last command

Build from source

Requirements: Rust 1.95 or later. On Linux, also the development packages for X11/Wayland and fontconfig (pkg-config libxkbcommon-dev libwayland-dev libx11-dev libfontconfig1-dev on Debian/Ubuntu).

git clone https://github.com/DraftCraft-DEV/DraftCraft.git
cd DraftCraft
cargo run --release -p draftcraft -- --sample

--sample opens the sample drawing. cargo build --release -p draftcraft -p draftcraft-cli builds the app and the CLI into target/release/. The interface fonts for Chinese, Japanese, Korean, Arabic, Thai and more come from the optional craft-fonts repository: clone it and set CRAFT_FONTS_DIR=/path/to/craft-fonts before building to embed them. Without it DraftCraft uses the fonts installed on your system.

The quality checks — formatting, clippy, tests, asset licences, crate layering and the web build — run with cargo xtask ci. Releases are built by the release workflow when a v* tag is pushed; see docs/releasing.md.

Drive it from agents, MCP and the CLI

DraftCraft ships an MCP server. Add it to Claude Desktop, Claude Code or any MCP client, and the agent draws in the open DraftCraft window while you watch (on macOS it opens the app when needed):

{
  "mcpServers": {
    "draftcraft": {
      "command": "/Applications/DraftCraft.app/Contents/MacOS/draftcraft-cli",
      "args": ["mcp", "--connect", "127.0.0.1:7982", "--launch"]
    }
  }
}

The agent types at the command line (command_line), runs any command with JSON parameters (execute), reads the drawing (inspect_drawing, query_entities, find_text) and looks at it (render, screenshot). draftcraft-cli mcp with no --connect works on its own, without a window.

The CLI also converts and renders drawings in scripts:

draftcraft-cli info drawing.dwg
draftcraft-cli convert drawing.dxf drawing.pdf
draftcraft-cli run --sample --script 'CIRCLE 22,3 1\n' --save out.dxf --export out.png

More: MCP · CLI · control channel · LISP, scripts and aliases · AutoLISP

Downloads

One click downloads the newest version from the latest release:

System Download
Windows 10 and 11 Setup: 64-bit (x64) · ARM64 — zip: x64 · ARM64
macOS 11 or later Disk image: Apple silicon · Intel
Linux (any distribution) AppImage: x86_64 · ARM64 (aarch64)
Debian, Ubuntu 22.04 or later .deb: x86_64 · ARM64 (aarch64)
Fedora, openSUSE, RHEL 10 .rpm: x86_64 · ARM64 (aarch64)
Arch Linux, Manjaro, EndeavourOS pacman package: x86_64 · ARM64 (aarch64)

The release page also has the macOS command-line tool on its own (draftcraft-cli-macos-arm64.zip, draftcraft-cli-macos-x86_64.zip) and SHA256SUMS.txt. Every download includes draftcraft-cli, the command-line and MCP tool.

  • Windows — run the setup (draftcraft-windows-x64-setup.exe): it installs for your account (or, if you choose, for everyone), adds DraftCraft to the Start menu and offers it in Open with for .dxf and .dwg files; to open them with DraftCraft by default, pick it in Settings › Apps › Default apps. Later versions install themselves from Update Now in the app: it closes DraftCraft, shows a progress bar and opens the new version. The zip runs from any folder instead (DraftCraft.exe) and changes nothing on the system. Neither is signed yet, so SmartScreen may stop it the first time: choose More info, then Run anyway. DraftCraft draws its own title bar there, with the menu bar in it; set DRAFTCRAFT_TITLEBAR=system to keep Windows' own.
  • macOS — open the disk image and drag DraftCraft into Applications. It isn't notarized yet, so the first time open it once, then System Settings › Privacy & Security › Open Anyway — or run xattr -dr com.apple.quarantine /Applications/DraftCraft.app. Finder then lists DraftCraft under Open With for .dxf and .dwg files.
  • Linux — install the package for your distribution and processor: the .deb on Debian and Ubuntu (sudo apt install ./draftcraft-linux-x86_64.deb), the .rpm on Fedora, openSUSE and RHEL (sudo dnf install ./draftcraft-linux-x86_64.rpm), the .pkg.tar.zst on Arch, Manjaro and EndeavourOS (sudo pacman -U draftcraft-linux-x86_64.pkg.tar.zst); on ARM, take the aarch64 file. DraftCraft appears in the applications menu and in the file manager's Open With for .dxf and .dwg. Or make the AppImage executable (chmod +x draftcraft-linux-x86_64.AppImage) and run it.

DraftCraft tells you when a newer version is out: it asks GitHub when it starts, and Help › Check for Updates… checks at any time. That one request to api.github.com is all it sends; set DRAFTCRAFT_NO_UPDATE_CHECK=1 to turn it off.

Architecture

crates/
├── geom/          f64 geometry: arcs, bulges, splines, conics, intersections, offsets
├── dxf/           DXF tag reader and writer
├── dwg/           DWG reading and writing
├── color/         colour index and true colour
├── doc/           the drawing database (copy-on-write entities, cheap undo)
├── fonts/         our own stroke font, TrueType and TEXT/MTEXT layout
├── render/        display lists, linetypes, hatches, dimensions, CPU raster
├── constraints/   geometric and dimensional constraint solver
├── io/            DXF/DWG mapping, SVG, PNG and PDF export
├── engine/        sessions, commands, command line and prompts, snaps, selection, undo
├── ui-egui/       the interface: ribbon, canvas, palettes, dialogs
└── mcp/           the MCP server
apps/
├── draftcraft/     the desktop app
├── draftcraft-cli/ the command-line tool
└── draftcraft-web/ a browser build (WebAssembly)
  • Everything is a command. The ribbon, menus, command line, scripts, the CLI, the control channel and MCP all run the same commands, defined once in crates/engine/src/cmd/.
  • The interface is a thin layer. Nothing below ui-egui knows about the GUI toolkit, and cargo xtask layers checks it.
  • It never panics on your data. Files, typed input and agent requests are treated as hostile; every command runs behind a guard that restores the drawing and reports an error instead of crashing.
  • Drawing happens on the GPU through wgpu (Metal, DirectX 12, Vulkan), with a CPU fallback.
  • No borrowed artwork. Every interface icon is drawn in code, and the hatch patterns, linetypes and drafting font are our own definitions; ATTRIBUTION.md lists every asset file.

Settings, logs and autosaves live in ~/Library/Application Support/DraftCraft on macOS, %APPDATA%\DraftCraft on Windows and ~/.config/draftcraft on Linux.

Found a bug?

Please open an issue with what you did, what you expected and what happened — a screenshot or the drawing helps a lot. The log file is in the logs folder of the settings directory above. Or come and say it on Discord.

Pull requests are welcome too: fork the repository, make your change on a branch, run cargo xtask ci, and open a pull request.

Made by

DraftCraft™ is made by DraftCraft Engineering Ventures: SkryxDev and WithShalom Studios together. SkryxDev built the program as RustDraft (versions 1.0 and 1.1): the Windows-style ribbon, CONIC's conic arcs and DWG files that AutoCAD opens. WithShalom Studios brought the DraftCraft name and its work toward native, lossless DWG, which joins the main build as it lands. Both started from CADCraft by the ArtCraft Team and the CADCraft contributors, credited in NOTICE.

License

DraftCraft is dual-licensed under the MIT License or the Apache License 2.0, at your option; the copyright notices are in LICENSE-MIT and NOTICE. Bundled fonts and other asset files keep their own open licences, listed in ATTRIBUTION.md.

DraftCraft™, the DraftCraft logo and the DraftCraft app icon are trademarks of DraftCraft Engineering Ventures. WithShalom Studios created them, first claimed DraftCraft as its trademark, and assigned it to DraftCraft Engineering Ventures on 19 November 2026 (the record). The licences above cover the code, not the name, the logo or the icon: you may fork and redistribute the code, but a modified version must not be presented as DraftCraft. The full terms are in docs/brand/LICENSE-brand.txt.

DraftCraft brand terms
DraftCraft brand terms

The marks
  - the name DraftCraft™ (also written DRAFTCRAFT or Draftcraft);
  - the DraftCraft logo: the wordmark with the compass icon (docs/brand/draftcraft-logo.svg and
    docs/brand/draftcraft-logo-dark.svg);
  - the DraftCraft app icon: a drafting compass and the arc it drew on a blueprint-blue tile with a
    drafting grid (assets/app-icon/, including assets/app-icon/src/draftcraft-icon.svg and
    assets/app-icon/src/draftcraft-icon-macos.svg).

Owner
  DraftCraft™, the DraftCraft logo and the DraftCraft app icon are trademarks of DraftCraft
  Engineering Ventures (https://github.com/DraftCraft-DEV), the organization that makes DraftCraft.
  The ™ sign marks a claimed trademark; it is not a registration.

Origin
  WithShalom Studios created the name, the logo and the app icon, first used them and first claimed
  DraftCraft as its trademark, for its drafting application at https://github.com/withshalom/draftcraft
  (2026). On 19 November 2026 WithShalom Studios assigned its claimed trademark, with the goodwill
  that goes with it, to DraftCraft Engineering Ventures. The record of the assignment is
  docs/brand/trademark-assignment.md.

Use in this repository
  DraftCraft Engineering Ventures uses the marks for the application developed in this repository
  (https://github.com/DraftCraft-DEV/DraftCraft, formerly https://github.com/SkryxDev/RustDraft, under
  whatever name it later carries). SkryxDev made the program, released as RustDraft (versions 1.0 and
  1.1); from version 2.0 it carries the DraftCraft name, logo and app icon. SkryxDev keeps the credit
  for RustDraft and for his work in DraftCraft, and WithShalom Studios keeps the credit for creating
  the name, the logo and the app icon. DraftCraft Engineering Ventures decides which of its other
  projects may use the marks; the code stays under its open-source licence either way.

What the code licence covers
  The source code and the files in this repository are licensed under the MIT License or the Apache
  License, Version 2.0, at your option (LICENSE-MIT, LICENSE-APACHE). Those licences grant rights to
  the code and the files; they do not grant any right to use the DraftCraft name or logo as a mark
  (the Apache License says so in its section 6).

Forks and redistribution
  You may fork, modify and redistribute the code under its licence. A modified version or a fork
  must not be presented as DraftCraft or with the DraftCraft logo or app icon, and must not suggest
  that DraftCraft Engineering Ventures made, endorsed or supports it, unless DraftCraft Engineering
  Ventures agrees in writing. You may say truthfully that your work is based on or compatible with
  DraftCraft.

Contact
  DraftCraft Engineering Ventures, https://github.com/DraftCraft-DEV