A web-based laser calibration suite with G-code generation, SVG toolpath pre-visualization, serial communication, and a real-time printer console.
- Calibration Pattern Generator: Power-Speed Matrix, Power Ramp, Speed Ramp, Focus Ladder, and Kerf Clearance Comb patterns
- Delta Kinematics Validation: Pre-flight reachability checks for delta/SCARA machines — patterns are validated against your configured print radius before G-code is generated
- SVG Toolpath Visualizer: Interactive pan/zoom canvas with G-code simulation playback, power/speed heatmap overlays, and coordinate inspection
- G-Code Generator: Firmware-aware output for GRBL and Marlin with automatic laser on/off and Z-axis management
- Serial Communication: Connect to laser cutters via Web Serial API (Chrome/Edge)
- Real-time Printer Console: Live feed with manual command input, jog controls, fire test, and emergency stop
- Material Database: Per-material calibration history logs with optimal power/speed/Z records
- Machine Profiles: Support for rectangular and circular (delta) beds, GRBL and Marlin firmware
- Generator Presets: Save and recall full parameter snapshots; ships with factory presets for common materials
- G-Code Dictionary: In-app reference for all common G/M codes with syntax, examples, and compatibility notes
- Dark / Light Theme: Toggle between elegant dark and high-contrast light modes
LaserBench validates Cartesian coordinates against your delta's reachable print radius before generating G-code. Firmware (Marlin/GRBL) handles actual inverse kinematics at runtime; LaserBench just warns you when a pattern would fall outside the printable zone so you can adjust block size or step count.
To enable:
- Open a machine profile → click Edit Settings
- Check Enable Delta Kinematics Validation
- Fill in your machine's measured parameters:
- Delta Radius: horizontal center-to-tower distance (mm)
- Print Radius: max reachable radius from bed center (mm)
- Arm Length / Rod Length: diagonal rod dimensions (mm)
- Tower Angle Offset: rotational correction if towers aren't at standard 210°/330°/90°
The FLSUN Kossel preset ships with delta kinematics enabled and sensible defaults (R=105.6mm, print radius=85mm).
- Node.js v18 or higher
- Chrome, Edge, or Opera (Web Serial API required for printer connection)
- Laser cutter with USB/serial connection
git clone https://github.com/TheRealFredP3D/LaserBench.git
cd LaserBench
npm install
npm run devOpen http://localhost:3000 in Chrome or Edge.
- Select Machine Profile — choose or create a profile matching your laser cutter
- Select Material — pick a material sheet and review saved calibration logs
- Choose Pattern — configure a calibration pattern and its parameters
- Preview — inspect the toolpath in the SVG visualizer; watch for delta warnings
- Generate & Download — download the
.gcodefile or stream it directly via serial - Log Results — after burning, record optimal settings in the material's calibration log
- Jog XY / Z: move the laser head in 10mm / 5mm increments
- Fire (30%): hold to pulse laser at 30% power for focus alignment
- E-STOP: sends
M112— immediate hardware halt - Manual Command: type any G/M code and send directly
npm run buildOutput goes to dist/.
Web Serial API is required for printer connection:
| Browser | Supported |
|---|---|
| Chrome 89+ | ✅ |
| Edge 89+ | ✅ |
| Opera 75+ | ✅ |
| Firefox | ❌ |
| Safari | ❌ |
Private project — All rights reserved


