Skip to content

Add OctoPrint/Moonraker remote send to laser export + CNCjs bridge tool#492

Open
clugtu wants to merge 1 commit into
GridSpace:masterfrom
clugtu:feature/cncjs-bridge-laser-export
Open

Add OctoPrint/Moonraker remote send to laser export + CNCjs bridge tool#492
clugtu wants to merge 1 commit into
GridSpace:masterfrom
clugtu:feature/cncjs-bridge-laser-export

Conversation

@clugtu

@clugtu clugtu commented Jun 27, 2026

Copy link
Copy Markdown

Summary

  • Adds a Send to Host panel in the laser export dialog supporting OctoPrint and Moonraker endpoints. Enabled via the exportOcto controller preference. Host and API key persist in localStorage.
  • Adds tools/cncjs-bridge — a zero-dependency Node.js shim that accepts Kiri's OctoPrint-format multipart upload and forwards gcode to CNCjs's /api/gcode endpoint, bridging the two tools without modifying either server.
  • Documents the CNCjs integration in docs/kiri-moto/integrations.md.
  • Fixes optional chaining on navigator.serviceWorker in the boot path.

Test plan

  • Enable exportOcto in preferences, open laser export dialog — verify Send to Host panel appears
  • Set host to http://localhost:5310, export a laser job — verify gcode arrives in CNCjs
  • Test with Moonraker endpoint type
  • Verify host/API key persist across page reloads
  • Run node tools/cncjs-bridge/bridge.js and confirm it starts on port 5310

🤖 Generated with Claude Code

Adds a 'send to host' panel in the laser export modal that posts gcode
directly to an OctoPrint or Moonraker endpoint. Enabled via the
exportOcto controller setting. Host and API key persist in localStorage.

Also adds tools/cncjs-bridge — a zero-dependency Node.js shim that
accepts OctoPrint-format multipart uploads from Kiri and forwards them
to CNCjs's /api/gcode endpoint, bridging the two without modifying
either tool's server.

Fixes optional chaining on navigator.serviceWorker in boot path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant