Small Node web app that runs on the machine attached to your plotter. It talks to hardware through Python scripts (preview, plot, discover, commands). Use it on your LAN from a browser; tested mainly on macOS.
-
Node.js 20+ —
node -v -
Python 3 with the
nextdrawpackage importable from that interpreter (same stack as Bantam Tools / NextDraw Python API — ifpython3 -c "from nextdraw import NextDraw"fails, install/fix that first). -
Clone, then:
cd remote-plotting npm install cp .env.example .env -
Edit
.env. Minimum:Variable What SVGDIRAbsolute path to the folder of SVGs the UI should browse (required). PYTHON_BINOptional; default python3. Must run the env wherenextdrawis installed.Other keys in
.env.exampleset defaults, virtual preview machines for testing, webhook, etc. -
Run:
npm start→ openhttp://localhost:2000(or yourPORT).
Dev: npm run dev (nodemon).
Discover machines, pick an SVG from the library, assign it to a machine panel, Preview then Plot. Real hardware and optional virtual machines are supported.
This is a personal tool with light guardrails. Don’t expose it raw to the internet. Avoid running the server under a process manager that breaks clean child processes if plotting acts up — npm start directly is the simple path.
