sawhorse3d/sawhorse
Acerca de
Free, local-first, open-source SketchUp-style push/pull modeler for woodworkers and makers. Opens .skp, exports watertight STL/3MF, built-in cut list and nesting.
Otros proyectosCrecimiento de estrellas medido
- in 24h
- +5
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalSawhorse
sawhorse3d.com · Try it in your browser (nothing to install, nothing uploaded) · Download the desktop app (0.1.0-alpha.7, unsigned for now) · User guide
A free, local-first, open-source push/pull 3D modeler for woodworkers and makers. Draw a rectangle, push it up, type 3/4 and press Enter. Sawhorse keeps the keys your hands already know, works out a cut list and lays your parts out on real sheets and boards as you draw, opens SketchUp files, and exports watertight files for printing and CNC. It runs in a browser tab with nothing to install, or as a desktop app on Windows, macOS and Linux. No account, no subscription, no tracking.
Status: alpha (0.1.0-alpha). Everything below is built and tested; the "Not yet" list is honest. Expect rough edges and report them: issues.
What it does today
Modeling
- Line, Rectangle (and rotated), Circle, Polygon, Arc and 3-point Arc (a circle, arc or polygon is one curve: selected, moved and erased whole); Push/Pull on any face (through, into and flush with other parts); Move, Rotate, Scale with copies and arrays, for sketch shapes too before they are pulled; Offset; Follow Me; Erase.
- Inference snapping (endpoints, midpoints, edges, faces, axes, parallel and perpendicular, guides) with arrow-key locks; exact typed values in fractions, decimals, feet and inches or metric (
1-1/2",1 1/2,1.5",38mm,2'6"). - Tape measure with guides, linear dimensions.
- Groups and components (edit one copy, all follow; Make Unique), tags, scenes, an Outliner.
- Materials with textures you can position, styles (hidden line, X-ray, shop drawing ...), shadows from a sun by date and time.
- Soft and smooth edges (the Eraser's Ctrl, Shift and Ctrl+Shift; Soften by angle), so round parts read round.
- Section planes with exact filled cuts; drawing sheets with scaled viewports, dimensions, labels, a cut-list table and a title block, out as PDF, SVG, DXF and PNG.
- A geometry kernel in Rust (compiled to WebAssembly) that validates the model after every operation: solids stay closed.
For the shop
- Cut list: parts from components, solids and groups, with quantities through nesting, finished T x W x L, grain, stock, board feet on the rough (nominal) lumber you buy, sheet goods by area; parts that are not watertight (most hand-made SketchUp furniture) are sized from their bounds and flagged. CSV, a printable report, PDF, and labels.
- Nesting: parts laid out on real sheets and boards from a stock library that knows nominal and actual thickness (3/4 ply is 23/32, 4/4 S4S is 3/4), with kerf, trim and grain; cutting diagrams and the cut order as SVG, DXF (for CNC and laser) and a PDF booklet.
Files
- Opens
.skp(SketchUp 2013 and later, read on your machine by the MIT-licensed openskp library, its circles and arcs arriving as curves; what comes across), STL, 3MF, glTF/GLB, OBJ, DXF and SVG. - Saves
.shz(an open, documented format: docs/format.md); exports STL and 3MF (watertight only: an open mesh is refused by name), GLB, OBJ, DXF and SVG.
Plugins: tools, panels and commands in sandboxed JavaScript with declared permissions; three samples come with the app. Writing one: docs/PLUGINS.md.
Headless: From a checkout, in its crates/ folder (the Rust workspace), cargo run -p sawhorse-cli -- cutlist Bookshelf.shz prints the cut list of a saved file as JSON, and cargo run -p sawhorse-cli -- nest Bookshelf.shz its nesting, exactly what the app's panes read (--visible-only, --rounding, --algorithm guillotine|maxrects, --pretty; what the reader had to do to open the file goes to stderr as note: lines; crates/cli). For scripts and agents that want the numbers without the app. The installers do not include it yet.
For AI agents: sawhorse-mcp <folder> is a Model Context Protocol server on the same kernel (crates/mcp): an agent builds a model from named boards or the kernel's own ops, reads back its parts, cut list and nesting, checks the gap or overlap between two parts and the distance between their faces, undoes, and saves a .shz the app opens as it is, all within that one folder. Built from a checkout like sawhorse-cli (cargo build --release -p sawhorse-mcp, in crates/); not in the installers. The tools and a worked example: docs/MCP.md.
Not yet
So nobody finds out the hard way:
.skpexport (you can open SketchUp files, not save them).- Fillet and chamfer tools (Follow Me can route a chamfer).
- Copy and paste in place.
- Text, and radius or diameter dimensions in the model (linear dimensions only; drawing sheets have radius and diameter).
- Weld Edges: erasing the line that split a circle leaves two arcs.
- A metric shop (#26): with the units on mm the drawing, the dimensions, the cut list's sizes and the view's volume are metric, but the starting stock is a US yard's (4 x 8 and 5 x 5 sheets, 4/4 to 12/4 boards 8 ft long), the cut list's totals are board feet and 4 x 8 sheets, and a sheet part placed on a sheet up to 1/16 in thinner gets no note. Your own stock can be added with the Stock… button.
- A question before the browser tab closes: the desktop app asks before its window closes over unsaved changes, the browser build does not (it keeps your work as you go and offers it back the next time). On a Mac, Quit Sawhorse in the app menu (Cmd+Q) quits without asking; the red button and File > Quit Sawhorse ask.
- Double-clicking a
.shzon a Mac or in a Linux file manager: on Windows a double-click opens the model in Sawhorse (the installers associate.shzfiles with it). On a Mac and on Linux, open it with File > Open, by dragging it onto the window, or with its path after the program's name on a command line. - Signed installers: Windows and macOS warn before the first launch. The Mac app is signed ad hoc since alpha.5, so on Apple Silicon macOS gives its usual warning that it could not verify the app, with Open Anyway, where alpha.4 said it was "damaged"; it is not notarised by Apple (how to get past both).
- Render credits: an AI render service exists in the code but is not launched; the app shows nothing about it unless you point it at a service of your own (Edit > Settings).
Known limits (model size, .skp versions that do not open): docs/LIMITS.md.
Security and signing: the installers are unsigned today; how they will be signed and who approves a release, what the app sends (nothing, unless you set up a render service or grant a plugin the network) and how to uninstall: docs/SIGNING.md.
Run the browser build
Needs Node 24.15 or later and, for the kernel, Rust with the wasm32-unknown-unknown target and wasm-pack (see docs/DEVELOPMENT.md; on a Windows machine without Visual Studio Build Tools the Rust step runs in WSL automatically).
npm ci
npm run wasm # build the kernel to WebAssembly
npm run dev # open http://localhost:5173
Try it: press R (Rectangle), type 36, 12 and press Enter; press P (Push/Pull), type 3/4 and press Enter: a board. Click the unit label in the bottom bar to switch between fractional inches, decimal inches, ft-in, mm, cm and m; a typed suffix (19mm, 2'6") always wins. Middle-drag orbits, right-drag pans, the wheel zooms; on a trackpad, Option+drag (Alt+drag) or the O key orbits. The ten-minute tour, every key and the inference colours: docs/USER-GUIDE.md.
A production build: npm run build:all (kernel + app into dist/, servable from any static host).
What is inside
| Path | What |
|---|---|
src/ |
React 18 + TypeScript + three.js front end (the same build runs in the browser and in Tauri) |
crates/kernel |
Half-edge B-rep with hole loops, sketches and their curves, sketch moves, push/pull, booleans, groups and components, cut list, nesting, sections and sheets, soft edges; a validator, transactions and a fuzzer |
crates/tessellate |
Triangulation with holes (earcut) and 2D polygon booleans (i_overlay) |
crates/inference |
Picking and inference snapping: own BVH, pixel tolerance at depth, occlusion, ranked inference kinds, locks |
crates/import, crates/export, crates/shz |
File readers and writers, the .shz format |
crates/wasm-api |
The wasm-bindgen surface the front end's kernel worker loads |
crates/cli |
sawhorse-cli: the cut list or the nesting of a saved .shz as JSON, with no app (cargo run -p sawhorse-cli -- cutlist Bookshelf.shz, in crates/) |
crates/mcp |
sawhorse-mcp: a Model Context Protocol server over stdin and stdout, so an agent can build, read and save .shz models in one folder (docs/MCP.md) |
packages/plugin-api |
The plugin API's types, runtime and checks |
src-tauri/ |
Tauri 2 desktop shell |
site/ |
The public site's landing page; scripts/build-site.mjs adds the demo, the guide and the changelog |
docs/ |
The user guide, decisions (DECISIONS.md and adr/), development, file format, .skp compatibility, limits, plugins, clean-room log |
Tests
npx vitest run # front end
bash scripts/cargo.sh test --workspace # kernel: unit, property, fuzzer, repro, golden
PW_CHANNEL=msedge REQUIRE_KERNEL=1 npx playwright test
Contributing
Reports, fixes, larger work and testing on real hardware are all welcome; CONTRIBUTING.md says how each fits (AI-assisted pull requests included).
Credits
- SketchUp files are read by openskp (MIT). Third-party code and licences:
docs/THIRD-PARTY.md. - The public CI fixtures in
tests/fixtures/skp-ccby/are furniture models by Corynth, from Corynth's free assets, under CC BY 4.0, unmodified (attribution).
License
Dual-licensed under either of MIT or Apache-2.0 at your option. Contributions are accepted under the same terms. Sawhorse does not contain or call the Trimble SketchUp SDK; see docs/CLEANROOM.md for the clean-room rule. SketchUp is a trademark of Trimble Inc.; Sawhorse is not affiliated with Trimble.
Identity
Sawhorse is published pseudonymously by its maintainer under the project account. Copyright is held by the Sawhorse contributors under MIT OR Apache-2.0.
Explorar proyectos relacionados
Cargando…