Open Source Consulting for Digital Independence
EN DE ES FR

do-cutting-smart

Design, route, simulate and cut vinyl-cutter jobs — see what the machine will actually do before it does it.

do-cutting-smart is a local web app for driving a vinyl cutter. You place shapes and TTF text in a browser editor, let it plan the cutting order and blade path, watch an animated simulation of the real toolpath in true millimetres, and then stream the job to the machine over the serial line. It targets makers and sign-shop users running a PixMax PME720-class cutter.

Features

Designing

  • Browser editor: place rectangles, rounded rectangles, circles, ellipses and TTF/OTF text, each rotatable about its anchor; drag to create, move and resize with snap-to-grid, delete with a keypress.
  • Runtime font registry: faces are loaded from the -fonts directory and served to the browser, each named from its own font table; drop a file in to add a face, no rebuild. Text supports per-object face choice and adjustable letter-spacing.

Cutting

  • Job planning: orders contours so holes are cut before the piece that contains them, and chooses entry vertices with a turn-cost model that spares the drag knife needless swivel and keeps entries off sharp tips.
  • Drag-knife path generation: blade-offset compensation, overcut past the closing point, and both-sides corner splitting for angles a drag knife cannot swivel through cleanly.
  • Animated simulation in real media millimetres (device calibration applied in reverse), with cut moves and pen-up travel drawn distinctly and the server-side plan compute time shown.
  • Sending to the machine through a confirmation checklist, streaming the transmission byte for byte into a terminal panel; one job at a time, honest status (the controller never answers, so the app reports only that bytes left the port).

Calibration & profile

  • Cutter profile edited live in-app (overcut, turn cost, corner threshold, blade offset) and persisted atomically to profile.json.
  • Three guided calibration wizards: blade offset, X/Y scale, and pressure/depth.

Files & formats

  • Server-side design storage as xz-compressed .dcuts project files including full undo/redo history, with autosave and a file tree; a browser crash-recovery draft in localStorage.
  • HPGL input: pass an .hpgl file to simulate it instead of an editor design.
  • SVG and HPGL export (the HPGL export is exactly the bytes a cut would send).

Platform, security & integration

  • Platform and deployment: runs on Linux / Raspberry Pi only by design — on a workstation or a Raspberry Pi in the cutter housing; macOS, Windows and tablet users connect as browser clients.
  • Request guard for untrusted-network safety: Host allow-listing, same-origin and content-type checks, and per-job validation that every coordinate lies on the material.
  • Cutter emulator (cmd/cutteremu) that opens a pseudo-terminal and reports what would be cut, for testing without hardware.
  • JSON/SSE HTTP API covering plan, export, cut, profile, calibration, designs and fonts, with a live-reload events stream.

Roadmap

  • SVG import with a scale-picker for dimensionless SVGs; scaling of units on individual shape coordinates (such as px/pt on a <rect>) is a planned future enhancement — such shapes are currently reported as skipped rather than mis-sized.
  • Headless-browser harness for the remaining index.html DOM/canvas glue.
  • TinyGo build to shrink app.wasm.

Repository

https://forge.do-it-smart.com/public-do-IT-smart/do-cutting-smart

Downloads

No binaries are published yet. The server runs on Linux / Raspberry Pi only by design; macOS, Windows and tablet users connect to it as browser clients (see the README “Usage” section).