
G-Code Guardian - Manufacturing Validation Tool
Production-ready G-code validation system for CNC machining with instant validation, syntax highlighting, approval workflows, and comprehensive safety checks.
G-Code Guardian is a specialized web application built for manufacturing operations to validate and approve G-code programs before they run on CNC machines. The tool provides instant validation (under 1 second) with comprehensive safety checks to prevent costly mistakes and machine damage.
Key Features:
- Drag-and-drop file upload for .nc, .min, and .txt G-code files
- Instant validation with three severity levels: Critical Issues, Warnings, and Info/Optimizations
- Beautiful syntax highlighting for G-code with line numbers using Prism.js
- Approval workflow with reviewer tracking and notes
- Revision history tracking for parts
- Clickable validation issues that jump to specific lines in code
- Dark mode support
- Mobile-friendly responsive design
- SQLite database with Drizzle ORM
- Dashboard with statistics and recent programs
Validation Engine Checks:
- Critical Issues: G0 rapid into negative Z, missing feedrates, unsafe tool changes
- Warnings: Minified code, probing variables, duplicate tools, back-spotface cycles
- Optimizations: Identical roughing passes, long cycle times, repeated drilling cycles
Technical Implementation: Built with Next.js 15, TypeScript, and SQLite for a lightweight, fast solution. The validation engine parses G-code line by line, tracking machine state and flagging potential issues based on manufacturing best practices. All validation happens client-side for speed and security.
Business Impact: Prevents machine crashes, reduces scrap parts, ensures manufacturing quality, and provides a clear approval trail for regulatory compliance. Typical ROI is achieved after preventing just one major machine collision.
Technologies Used
Like What You See?
Let's work together to bring your vision to life