Skip to content

Repository files navigation

LayerSpy ⚡

The Privacy-First, 100% Client-Side 3D Print G-Code Analyzer & Simulator

Website Privacy License: MIT Release

Website: https://layerspy.de


🔒 100% Local Processing & Privacy Guarantee

Your files and data NEVER leave your computer.

Unlike cloud-based slicers or online converters, LayerSpy processes, analyzes, and renders everything 100% client-side inside your web browser:

  • 🛡️ Zero Server Uploads: When you open or drag & drop a .gcode file, it is parsed directly in memory on your device using a multi-threaded Web Worker.
  • 💻 Client-Side WebGL Rendering: 2D and 3D toolpaths are rendered locally on your GPU using Three.js and hardware-accelerated shaders.
  • 💾 Local Settings Storage: User preferences and language selections are stored strictly in your browser's local storage (localStorage). No telemetry, analytics tracking of file contents, or external database queries.
  • 🚀 Confidential & NDA Ready: Safe for proprietary engineering prototypes, commercial 3D designs, and confidential G-Code.
  • 🔌 PWA & Offline Capable: Installable as a Progressive Web App (PWA) and fully operational without an internet connection.

🌟 Key Features

  • 🚀 Next-Gen Toolpath Visualizer (2D & 3D):

    • High-performance WebGL rendering with support for both lightweight line rendering and volumetric solid tubes.
    • Multi-threaded streaming parser supporting large multi-hundred-megabyte G-Code files seamlessly.
  • 🎛️ Dynamic Zen Mode & Multi-Screen Workspace:

    • One-click sidebar collapse (Zen Mode ⛶) to maximize your 3D viewport.
    • Fully responsive HUD toolbar and auto-compact layout for laptops and small monitors.
  • 📐 Overhang Angle Radar & Bridge Detection:

    • Color-coded overhang analysis (<45° Safe, 45–60° Moderate, 60–75° Steep, >75° Critical, Bridges).
  • 🎯 Pressure Advance (PA) & Corner Bulge Auditor:

    • Detects melt-zone pressure spikes and high deceleration points ($\Delta v &gt; 60\text{ mm/s}$).
    • Live simulator with direct Klipper (SET_PRESSURE_ADVANCE) and Marlin (M900) code embedding.
  • 📡 VFA & Resonance Radar:

    • Identifies motor vibration zones and surface ripple risks on outer walls.
  • 🏎️ Real Kinematics Simulation (Klipper / Marlin):

    • Forward/backward trapezoid motion planner calculating realistic print times based on acceleration, jerk, and square corner velocity.
  • 🌐 100% Bilingual Localization:

    • Instant toggle between English and German across all inspection panels, diagnostic linter alerts, and tooltips.

🛠️ Tech Stack

  • Frontend: Vanilla JavaScript (ES6+), HTML5 Canvas, WebGL, CSS Custom Properties
  • 3D Engine: Three.js & OrbitControls
  • Streaming Engine: Web Workers with ReadableStream chunked binary parsing & Float32Array buffers
  • PWA: Service Worker caching for instant offline availability


📄 License

Distributed under the MIT License. See LICENSE.md for more details.

About

A modern, client-side 3D Print G-Code Analyzer and Live-Tuner running entirely in the browser. Features 2D/3D visualization and kinematics simulation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages