Meet Microsoft's Maker.js, A JavaScript Library For Creating Drawings For CNC And Laser Cutters

Reading time icon 1 min. read

Readers help support MSPoweruser. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help MSPoweruser effortlessly and without spending any money. Read more


Maker.js is a new Microsoft Garage project. It is an open source JavaScript library for creating drawings for CNC and laser cutters. Drawings are small JavaScript programs which can be reused in other drawings, creating a network effect. Maker.js exports drawings in DXF or SVG file format, and runs in both Node.js and web browsers. The file can then be used directly by a maker machine, uploaded to a maker service, or imported into other 2D or 3D CAD software.


  • Uses plain old JavaScript objects (POJO’s) for its drawing model.
  • Support for a variety of unit systems: Millimeter / Centimeter / Meter / Inch / Foot
  • Primitive paths: Line / Circle / Arc
  • Transformations: Mirror / Rotate / Scale
  • Basic models:
    • Bolt circle
    • Bolt rectangle
    • Connect the dots
    • Golden Rectangle
    • Oval
    • Oval Arc
    • Polygon
    • Rectangle
    • Rounded rectangle
    • S curve
    • Square

The project includes a sample laser cutter application that illustrates how to use the JavaScript library.

Download it here from Github.

More about the topics: CNC, Drawings, laser cutters, Maker.js, microsoft, microsoft garage