Skip to content

About

Edit your laser-cutting files and implement your Latex and much more things with VectorCutter

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

VectorCutter Logo

VectorCutter

A free, client-side vector SVG editor and parametric generator toolkit built for laser cutting, CNC, and precision making.
Create precision laser-ready SVG files directly in your browser โ€” zero installation, zero build steps, 100% private.

Live Site

MIT License PRs Welcome Vanilla JavaScript MathJax LaTeX 100% Client-Side Privacy Zero Config

โœจ Why VectorCutter ยท ๐Ÿงฐ Tools ยท ๐Ÿงฉ Architecture ยท ๐Ÿš€ Quickstart ยท ๐Ÿค Contributing ยท ๐Ÿ“„ License


โœจ Why VectorCutter?

Feature What It Means for Makers
โšก Zero Installation & Zero Build Pure HTML, CSS, and modern JavaScript. No npm install, no webpack, no dependencies, no server runtime. Open and run instantly.
๐Ÿ”’ 100% Client-Side & Private Everything executes inside your browser. No telemetry, no accounts, no cloud database. Your designs never leave your computer.
โœ‚๏ธ Laser & CNC Optimized Real-world units (mm, cm, inches), hairline stroke weights, kerf-friendly geometries, and a one-click Laser Cutting Mode (#000000, 1px cut line).
๐Ÿงฎ Native LaTeX / MathJax Rendering Type mathematical equations (e.g., E = mc^2, \int_0^\infty f(x)dx) and render them as crisp, laserable vector paths.
๐Ÿงฉ Parametric Generators Instantly generate laser-cut-ready rulers, chessboards, puzzles, advent calendars, and popup cards with custom dimensions.
๐Ÿ–ฅ๏ธ Compatible with Laser Software Clean SVG outputs that import directly into LightBurn, RDWorks, LaserWeb, Glowforge UI, Cricut Design Space, Inkscape, and Illustrator.

๐Ÿงฐ Tools & Generators

Each tool is a self-contained, lightweight interface designed for precision maker workflows:

Tool Launch Link Description Output
๐Ÿ“ SVG Editor editor.html Full-featured vector editor with paths, shapes, curves, MathJax LaTeX text, snapping, rotation center, and two-way live SVG code editing Cutting & engraving SVG / PNG
โ™Ÿ๏ธ Chessboard Generator chessboard.html Parametric chessboard generator with configurable square dimensions (mm), notation borders, and optional engraving layers Laser-ready board SVG
๐Ÿ“ Ruler Generator ruler.html Metric (mm/cm) and Imperial (inch) ruler designer with custom tick intervals, fine calibrations, and font engravings Precision measuring tool SVG
๐Ÿงฉ Puzzle Generator puzzle.html Jigsaw puzzle creator with adjustable rows, columns, piece dimensions, and tab/blank interlocking curves Interlocking cut paths SVG
๐Ÿ“… Advent Calendar advent_calendar.html Parametric door matrix layout with numbered doors, hinge tabs, and custom engraving bounds Hinged door cut SVG
๐Ÿชช Pop-Up Card Generator popup.html Layered 3D papercraft and popup card mechanism designer with cut, mountain, and valley fold lines Flat cut/score SVG
๐Ÿ  Dashboard index.html Homepage displaying recent saved local browser projects and quick generator launchers Project launcher

๐Ÿงฉ Modular Architecture

The repository is built around clean, separated responsibilities with zero build step, making it exceptionally easy to read, debug, and extend:

VectorCutter/
โ”œโ”€โ”€ components/                      # Shared reusable layout components
โ”‚   โ”œโ”€โ”€ layout.css                  # Universal topnav & footer CSS variables, responsive drawer & theme
โ”‚   โ”œโ”€โ”€ header.js                   # <site-header> Web Component (desktop nav + mobile drawer + shortcuts)
โ”‚   โ”œโ”€โ”€ footer.js                   # <site-footer> Web Component (with GitHub reference link & copyright)
โ”‚   โ”œโ”€โ”€ header.html                 # Raw HTML partial of top navigation
โ”‚   โ””โ”€โ”€ footer.html                 # Raw HTML partial of footer
โ”œโ”€โ”€ editor/                         # Modular SVG Editor architecture
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ”‚   โ””โ”€โ”€ editor.css              # Clean editor styling (canvas, tools sidebar, properties panel, modals)
โ”‚   โ””โ”€โ”€ js/
โ”‚       โ”œโ”€โ”€ editor-core.js          # SVGEditor class, lifecycle, undo/redo history, clipboard, shortcuts
โ”‚       โ”œโ”€โ”€ editor-canvas.js        # ViewBox, coordinate systems, axes, millimeter grid, pan & zoom
โ”‚       โ”œโ”€โ”€ editor-tools.js         # Tool modes, mouse event dispatch (down/move/up), element creation
โ”‚       โ”œโ”€โ”€ editor-selection.js     # Marquee selection, bounding boxes, handles, snap targets
โ”‚       โ”œโ”€โ”€ editor-transform.js     # Resize, rotate, scale, flip, reflect, translate, arrow keys
โ”‚       โ”œโ”€โ”€ editor-properties.js    # Properties panel, coordinate inputs, LaTeX MathJax rendering, styles
โ”‚       โ”œโ”€โ”€ editor-elements-tree.js # Elements tree hierarchy, grouping, path/group splitting
โ”‚       โ”œโ”€โ”€ editor-laser-mode.js    # Laser cutting mode toggle & recursive stroke/fill overrides
โ”‚       โ”œโ”€โ”€ editor-export.js        # Clean SVG serialization, text flattening, PNG export
โ”‚       โ”œโ”€โ”€ editor-templates.js     # Parametric Star & N-Gon shape generators, starter SVGs
โ”‚       โ”œโ”€โ”€ editor-quickbar.js      # Floating draggable quick-tools bar (transforms, exact 90ยฐ rotation, alignment)
โ”‚       โ”œโ”€โ”€ editor-sidebar-resize.js # Adaptive resizable left/right sidebars with icon-only mode & localStorage
โ”‚       โ”œโ”€โ”€ editor-fonts.js         # 40+ OFL/Apache font registry, lazy-loading, searchable picker, user uploads
โ”‚       โ”œโ”€โ”€ editor-boolean.js       # Boolean Union, Difference, Intersect, Exclude (XOR), Kerf offset, Weld & Score
โ”‚       โ”œโ”€โ”€ editor-shapes-library.js # 25+ parametric presets (gear, heart, arrow, badges, icons) & library modal
โ”‚       โ”œโ”€โ”€ editor-patterns.js      # Linear repeat, rotational circular repeat, grid matrix, mirror repeat
โ”‚       โ”œโ”€โ”€ editor-production.js    # Laser color swatches, perforation dashed lines, material kerf, sheet nesting
โ”‚       โ”œโ”€โ”€ editor-components.js    # Multi-artboard components list, extract as component, Read Me, Units & Settings
โ”‚       โ”œโ”€โ”€ editor-text-tools.js    # Text along path (offset & flip), text within box auto-fit, draggable line guides
โ”‚       โ”œโ”€โ”€ editor-trace.js         # Client-side PNG/JPG image tracing to vector outline (edge-detection)
โ”‚       โ”œโ”€โ”€ editor-qol.js           # Command palette (Ctrl+K), shortcuts cheatsheet (?), context menu, dimension badges
โ”‚       โ”œโ”€โ”€ editor-dxf.js           # Client-side AutoCAD R12 ASCII DXF export and import for lasers and CNCs
โ”‚       โ”œโ”€โ”€ editor-code.js          # Live SVG code viewer, code modal, two-way code updates
โ”‚       โ””โ”€โ”€ editor-init.js          # Modal helpers, clipboard copy, URL parameter autoloading
โ”œโ”€โ”€ index.html                      # Project dashboard & launcher
โ”œโ”€โ”€ editor.html                     # Primary SVG Editor entrypoint (clean, modular HTML)
โ”œโ”€โ”€ editor_5.8.html                 # Backwards-compatibility redirect to editor.html (legacy)
โ”œโ”€โ”€ chessboard.html                 # Chessboard generator
โ”œโ”€โ”€ ruler.html                      # Ruler generator
โ”œโ”€โ”€ puzzle.html                     # Puzzle generator
โ”œโ”€โ”€ advent_calendar.html            # Advent Calendar generator
โ”œโ”€โ”€ popup.html                      # Pop-Up Card generator
โ”œโ”€โ”€ about.html                      # About VectorCutter & Old Lane 17
โ”œโ”€โ”€ legal-notice.html               # Legal notice
โ”œโ”€โ”€ privacy-policies.html           # Privacy policies
โ”œโ”€โ”€ terms-of-service.html           # Terms of service
โ”œโ”€โ”€ wrangler.toml                   # Cloudflare Pages zero-configuration deployment manifest
โ”œโ”€โ”€ _redirects                      # Cloudflare Pages route redirects (/editor -> /editor.html)
โ”œโ”€โ”€ _headers                        # Security headers & asset caching rules
โ”œโ”€โ”€ sidebar/                        # Sidebar SVG icons (tools, zoom, snap, etc.)
โ””โ”€โ”€ templates/                      # Starter SVG templates (leather badge, stars, etc.)

Shared Header & Footer Components

All generator and information pages import the universal header and footer with two simple custom tags:

<!-- Include in <head> -->
<link rel="stylesheet" href="components/layout.css">
<script src="components/header.js" defer></script>
<script src="components/footer.js" defer></script>

<!-- Place inside <body> -->
<site-header></site-header>

<!-- Your tool or page markup goes here -->

<site-footer></site-footer>
  • <site-header>: Renders the brand logo, direct tool links, a generators dropdown menu, active page indicator, and an animated mobile drawer with touch/click backdrop and keyboard (Escape) support.
  • <site-footer>: Renders legal, FAQ, social links, copyright, and a direct link back to the GitHub Repository.

๐Ÿš€ Quickstart

Option 1 โ€” Open directly in your browser (No installation!)

Clone the repository and double-click any .html file:

git clone https://github.com/oldlane17/VectorCutter.git
cd VectorCutter
# Open index.html or editor.html directly in Chrome, Firefox, Safari, or Edge!

Option 2 โ€” Serve locally with a lightweight HTTP server (Recommended)

Running a local HTTP server avoids browser local-file CORS restrictions when loading MathJax fonts and SVG templates:

Using Python 3:

python -m http.server 8080
# Visit http://localhost:8080

Using Node.js (npx):

npx serve .

Using VS Code: Install the Live Server extension, open index.html, and click Go Live.


๐Ÿค Contributing to VectorCutter

๐ŸŒŸ Everyone is welcome to contribute!
Whether you are an experienced web developer, a laser cutting hobbyist, a teacher, a mathematician, or making your very first pull request on GitHub โ€” we'd love to have you participate. This repo has the goal to create a free alternative to be creative and share it :)

Please read CONTRIBUTING.md for full instructions and our Contributor License Agreement (CLA.md) before submitting a Pull Request. Sponsorships are also warmly welcome!

๐ŸŽฏ Exciting Ideas for Contributions

Looking for inspiration? Here are areas where contributions are actively welcome:

๐ŸŸข Beginner Friendly / Quick Wins

  • New Starter Templates: Add creative vector templates to templates/ (e.g. keychains, leather coaster badges, holiday ornaments, bookmarks, luggage tags).
  • Sidebar Icons & UI Polish: Improve icon clarity, accessibility contrast, or mobile layout spacing.
  • Keyboard Shortcuts Visual Modal: Create a friendly visual shortcut cheatsheet (? or Ctrl+/).
  • Documentation & Translations: Improve guides, add tooltips, or translate generator labels.

๐ŸŸก New Parametric Generators

Create a new standalone generator page (like box.html or gears.html) using the shared <site-header> and <site-footer>:

  • Finger-Joint Box Generator: Configurable width, height, depth, material thickness, and finger-tab spacing for laser-cut boxes.
  • Involute Gear & Cogwheel Generator: Generate gear teeth based on module, tooth count, pressure angle, and shaft hole diameter.
  • Living Hinge Generator: Create flexible wood lattice cut patterns with customizable cut lengths and bridge spacings.
  • Text Stencil Bridge Generator: Automatically bridge closed letters (like O, P, B, A, D, R) for clean laser stencil cutting.
  • Circular Dial & Gauge Generator: Create custom protractor, volume dial, or clock face tick marks.

๐ŸŸฃ SVG Editor Enhancements

Enhance editor/js/:

  • Alignment & Distribution Toolbar: Align selected elements (left, center, right, top, middle, bottom) and distribute evenly horizontally/vertically.
  • Laser Color Palette Presets: One-click color swatches tailored for laser workflows (Cut = Red #FF0000, Engrave = Black #000000, Score = Blue #0000FF).
  • Export to DXF / PDF: Complement SVG export with DXF or vector PDF generation for legacy laser software.
  • Path Operations (Boolean): Add basic union, difference, and intersection path calculations.

๐Ÿ› ๏ธ Step-by-Step Contribution Workflow

  1. Fork the Repository
    Click the Fork button at the top-right of github.com/oldlane17/VectorCutter.

  2. Clone Your Fork

    git clone https://github.com/YOUR_USERNAME/VectorCutter.git
    cd VectorCutter
  3. Create a Feature Branch

    git checkout -b feature/finger-joint-box-generator
  4. Make Your Changes

    • If adding a generator: create your new .html page, add <site-header></site-header> and <site-footer></site-footer>, and link it in the dropdown.
    • If improving the editor: make edits inside the relevant module in editor/js/ or editor/css/.
  5. Test Your Changes Locally
    Run a local server (npx serve . or python -m http.server 8080) and verify your changes in your browser console with no JavaScript errors.

  6. Commit & Push

    git commit -m "feat: add finger-joint box generator with parametric tabs"
    git push origin feature/finger-joint-box-generator
  7. Submit a Pull Request
    Go to your fork on GitHub and click Compare & pull request. Describe your changes, add a screenshot or GIF if applicable, and submit!


๐Ÿ“„ License & CLA

VectorCutter is open-source software licensed under the MIT License, with original code owned by Old Lane 17. You are free to use, modify, distribute, and build commercial or non-commercial physical items with these tools. All contributions are subject to the Contributor License Agreement (CLA.md).


Built with passion for the maker and education community by Old Lane 17.
If VectorCutter helped your laser cutting or maker project, star โญ the repo and share your creations!

About

Edit your laser-cutting files and implement your Latex and much more things with VectorCutter

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages