Browser-based CNC CAM application for makers, woodworkers, and hobby CNC users.
Launch App → · Help → · User Guide →
If you find it useful, please ⭐ star the repo — it's the only way I know anyone is using it.
FreazyKam runs entirely in your browser — no account, no server, no install. You design or import 2D vector geometry, configure your tool library and workpiece, generate CNC toolpaths, preview the simulation, and export machine-ready G-code.
Designing and generating toolpaths. The strip along the bottom switches between Objects (everything in the document, one chip each) and Ops (every toolpath, in the order the machine runs it).
The 3D view simulating material removal, with the carved surface updating as the tool cuts.
A photograph carved as V-grooves whose depth follows image brightness. The 3D view renders the cuts dark, the way the finished board looks once paint is flooded over it and sanded back off the face.
A greyscale depth map carved as a 3D relief: an end mill roughs out the field inside the drawn oval, a ball nose finishes the surface. The picture's background is found from its histogram and cut flat, so JPEG specks don't carve as bumps.
- SVG — paths, shapes, groups, nested transforms, real-world dimensions
- DXF — LINE, LWPOLYLINE, ARC, CIRCLE, SPLINE, ELLIPSE entities; prompts for units when missing
- STL — binary and ASCII for 3D surface machining workflows
- Images — PNG, JPEG, WebP as canvas references, as the source for a photo V-carve, or as a greyscale depth map for 3D relief carving
- G-code —
.gcode,.nc,.ngc,.tapfor inspection and simulation
- Shapes — rectangle, rounded rect, sign (inner-rounded), circle, ellipse, polygon, star, heart, slot, shield
- Spirograph — the hypotrochoid a real spirograph draws. Loops is a whole number and is the lobe count, so every position on the slider is a different rosette. Radius is the size on the stock, not the ring it came from, so pattern and size move independently. The pen offset isn't capped at the wheel's rim the way a physical set's drilled holes are — push it far enough and the curve passes through the centre. Re-editable from its chip
- Parametric mechanisms — every one is a real part, not a lookalike, and stays editable from its own chip:
- Gear — a true involute profile (or cycloidal, for clock work) with a hobbed trochoidal root that undercuts below the classic tooth-count limit. Module × teeth, bore, hub, spokes, backlash; pitch radius and tooth count engraved on the face. Cycloidal wheels emit the mating lantern pinion too, and either can be animated in mesh to check the pair actually runs
- Escapement — deadbeat or recoil, wheel and anchor generated together from one spec (the pallet faces are loci of this wheel's tooth tips, so the two halves only mean anything as a pair). Animates through its beat
- Pendulum — rod, hanging hole and bob, sized from the beat you want
- Cam — Archimedean snail cam with a lever, for clamps and hold-downs; lift is linear in handle angle, and the panel reports the pressure angle that decides whether it holds what it grips
- Cutting board — body, juice groove, hand slots or hanging hole, with paddle/cask/carry handle options; the groove is a true constant-distance offset of the cutting field, not a scaled copy
- Train track — BRIO-compatible wooden railway: straight, curved or a turnout, cut from 12 mm stock, with the peg-and-socket joint on whichever ends you ask for. The socket is derived from the peg plus clearances, so a joint can never be left half-adjusted. Grooves come out as centrelines for a 6 mm cutter
- Joinery — a finger-jointed box laid out flat as panels, a finger joint and an in-plane dovetail seam for jointing the ends of boards you already have (each comes out as the waste at the board's end, cut with an inside profile), and a bowtie key with its socket. All fitted to your stock thickness and bit: dogbone or T-bone reliefs where a round bit can't cut a square corner, rounded corners where the fit allows it
- Maze — a marble-run centreline, emitted as grooves for a ball-nose cutter rather than as an outline. Exactly one entrance and one exit reach the edge, so there is no doubt which end is which, and each gets a lead running clear of the maze
- Clock — a whole going train solved from one number: the beat. Pendulum length, an exact wheel/pinion factorisation for the rate (said in red rather than rounded when no exact train exists), optional 12:1 motion work, and the drive wheel's run time. Every wheel comes out as an ordinary editable shape, and the assembled clock will run on the canvas
- Text — vector text paths via opentype.js; choose from bundled or web fonts, edit the text and font of an existing object at any time
- Text along a path — lays a text object's letters along a line, a curve or round a circle, choosing which side they stand on and where along it they sit; it always reads left to right and upright, and stays re-editable from its chip
- Image trace — turns a PNG or JPEG into paths: closed outlines for pocketing, V-carving or inlay, or single centerlines for a V-bit. Lines can be thickened to fit a bit, and a shaded picture can be split into 3 or 4 nested tones, each on its own layer. A live preview on the canvas shows the paths before they are made, and the trace stays re-editable from its chip
- Pen tool — click for straight segments, click-drag for Bezier curves; Escape to finish open path, click near first node to close
- Point editing — double-click any path; drag anchors and handles, click segment to insert, hover + Delete to remove
- Move, scale (uniform and non-uniform), rotate with on-canvas handles
- Boolean operations: union, intersection, subtract
- Offset tool: inset/outset with round, miter or square corners — re-editable from its chip
- Corner treatment: outer radius, inner radius, chamfer, dogbone
- Linear and circular pattern tools — also re-editable from their chip
- Nesting — packs the selected parts onto the stock with the least waste. Set the gap, edge margin, rotation step and which edge to pack from, so the offcut is left as one usable strip rather than scattered. Small parts drop into the holes of larger ones, unselected paths can be treated as ground already taken, and anything that won't fit goes onto another sheet (or is parked clear of the stock). Fill stock with copies repeats a single part until no more fit. Shared lines places parts exactly one cutter apart so neighbours share a cut, and the sheet is routed as one network
- Double-sided jobs — cut side A, turn the board over onto two dowel pins of different sizes (so it only goes back on the right way), cut side B. Side B gets a sheet of its own showing the board as it will lie after the flip, with side A drawn on it as a guide to snap to; the dowel holes are placed on the flip axis and drilled first, automatically, and the 3D simulation shows the other face's cuts underneath
- Tiling — cut a board longer than the machine: set the stock to its real size, design as if the machine were big enough, and the job is split into tiles that each fit the machine's travel. Seams are dragged on the canvas and snap to clean breaks between cuts; each tile drills the next pair of pin holes so the board slides along onto the pins between tiles, and each tile is its own program
- More than one sheet — drag a part to the right of or below the stock and a new sheet of the same stock appears under it; empty a sheet and it goes. Each sheet is simulated and exported as its own program, cut from its own corner; the toolbar's ◀ Sheet N of M ▶ picker chooses which one is shown
- Constraints — hold one part a stated distance from another and keep it there as either is edited. Press C, click a point on one part (corner, edge midpoint, centre, or the centre of a round feature), then a point on another — or drag the second part into place with the dimension reading out live, and let go where you want it. Numbers are measured in the first part's own frame, so four holes 10 mm in from the corners of a plate stay 10 mm in from the corners when the plate is resized or rotated; the second part can be held at its angle to the first as well, so a slot turns with the plate it sits in. Parts can also be held off an edge of the stock, which is ground and wins over a drag. There is no root — drag any part of a chain and the rest follow — and a contradiction is reported rather than half-applied
- Measure — press M and click two points (each snaps to a part's corners, edge middles and centre) for the length, ΔX, ΔY and angle; Shift holds it to 15° steps. Or, with a part selected, hold Alt and hover another part — or the stock — to see the gaps between them
- Holding tabs: configure count, length, height; drag individual tabs along path. Tab a whole selection at once — one chip and one undo for the lot
- Holding strips for tight nests — on a close-packed sheet a tab holds a part to waste the next cut frees, so both go. Strips instead join every part to its neighbours across the gaps, and through them to the sheet's edge: a network in which nothing can come loose. Each join is square across one gap and clear of every other part, joins spread round each part so it is held from different sides (set how many per part), and every cut through the stock lifts over them — holes and engravings cut straight through
- Group / ungroup (
Ctrl+G/Ctrl+Shift+G) — groups nest, and Alt-click reaches a single path inside one - Copy and paste paths between projects (
Ctrl+C/Ctrl+V) — a pasted gear is still a gear, with its parameters, corner treatments and grouping intact - Undo/redo for everything
The bar under the canvas holds two strips. They look alike, but one is the document and the other is the program.
Objects is everything in the project, one chip per thing. Click a chip to select what it stands for and reopen the editor that made it: a gear chip its parameters, a boolean chip its union/subtract, a pocket chip its depth. Editing changes the chip rather than adding another; deleting the chip deletes the thing. A group is one chip, and so is a whole Generate — profiling five paths makes five operations but was one decision, so it edits as one. Tabs and corner treatments get their own chips, attached to the path they belong to.
Ops is the program: one chip per toolpath, in the order the machine runs them, which is the order G-code is written in. Operations sharing a tool are drawn as a coloured band with a marker at every tool change. Drag a chip — or a whole band — to reorder. When the program visits a tool more than once, a −N TC button gathers that tool's operations into one step so you load it once. Hover a chip to hide it (hidden operations are left out of exported G-code) or delete it.
Undo and redo cover every edit and are independent of both strips; undo history is per session.
A library of cutters, saved with the project and kept in the browser between sessions. Each row holds diameter, flute count, RPM, feeds, a rated chip load and the tool's maximum depth of cut; an operation only offers the tools that can actually make its cut. A maker's catalogue can be imported from a Fusion 360 tool library (.json) into its own folder, so it never mixes with your own rack.
| Tool | Defined by | Available to |
|---|---|---|
| End mill | Diameter | Profile, pocket, trochoidal, surfacing, inlay, helical drilling, 3D profile roughing |
| Bull nose | Diameter + corner radius | Profile, pocket, trochoidal, 3D profile (roughing and finishing) |
| Ball nose | Diameter | Profile, pocket, trochoidal, 3D profile (roughing and finishing) |
| V-bit | Diameter + included angle | V-carve, photo V-carve, inlay walls, profile |
| Taper end mill | Tip diameter + per-side angle + usable length | V-carve, inlay walls, 3D profile, profile |
| Drill | Diameter | Peck drilling (which lists every tool, warning where a bit is a poor choice) |
A bull nose — a bowl bit is a big one — is a flat bottom rounded into the side by its corner radius: an end mill at a radius of 0 and a ball nose at half the diameter, and handled as exactly that family everywhere it cuts.
A taper end mill is a V-bit with a ball ground on its tip, described the way the bits are sold: the diameter column is its tip ball, and the angle is per side where a V-bit's is included. The library derives how wide it opens out — a 5°/side taper on a 1 mm tip reaches Ø5.29 mm at 25 mm deep. Its ball tip can enter a stroke narrower than itself, cutting a round-bottomed groove rather than refusing it, which is what suits it to fine lettering and 3D finishing. In an inlay a V-bit still closes tighter: a taper's rounded foot leaves a hairline gap at the finished face.
| Operation | Description |
|---|---|
| Profile | Inside / outside / centerline cut, climb or conventional, ramp-in, holding tabs, optional finishing pass |
| Five clearing strategies (below), island support, finish allowance, ramp-in | |
| Trochoidal | Low-engagement slotting with configurable step and loop radius, optional finishing pass |
| Drill | Peck drilling at placed points or helical drilling from circular paths |
| Surface | Full-workpiece facing passes |
| V-Carve | Medial-axis depth from V-bit or taper geometry, island/letter-hole support |
| Photo V-Carve | Rasters a photograph as V-grooves whose depth tracks image brightness (V-bit only) |
| Inlay | Female socket (pocket + V-carved walls) and male plug generation |
| Fluting | Centerline carve along a path with a V-bit, taper or ball nose, its depth following a height profile you draw — drag the breakpoints, set how many, smooth or straight between them. One profile stretches over every selected path, so a set of flutes on a table leg comes from one operation |
| 3D Profile | Surface following from an imported STL or a greyscale depth-map image, with a ball nose or taper; raster or waterline finish (raster for depth maps), optional ball or end-mill roughing pass, boundary to clear the field around a relief |
Pocket strategies
| Strategy | Best for |
|---|---|
| Auto | Mixed pockets — rasters the open ground, contours around islands, adaptive on the junctions between them. Picks the pass angle per area unless you pin it |
| Raster | Simple open pockets; straight parallel passes at any angle |
| Contour | Concentric offsets following the boundary, so walls and islands are traced |
| Morph | A single continuous spiral morphed between the boundary and the interior |
| Adaptive | Constant tool engagement — heavier depth of cut at lower load, best for harder material and deeper pockets. A port of FreeCAD's Adaptive2d, checked against FreeCAD's own output |
Any pocket also gets a rest-clearing pass: stock a strategy's passes couldn't reach is cut after them and before the wall pass, so it's a light skim rather than a full-width plunge.
Operations don't have to start at the top of the stock. Engraving letters in the floor of a 2 mm pocket starts 2 mm down, and the Start control resolves that for you — it stores a reference, not a number, so it re-resolves every time the operation regenerates:
- Auto (default) — reads the surface earlier cuts left over this operation's footprint, taking the highest remaining material so the tool never starts inside solid stock. If any part of the footprint sits over uncut stock, it stays at the top
- Stock top — pin it to Z 0
- Floor of <operation> — follow a named operation, so changing that pocket's depth moves this cut with it
- Custom — an explicit Z
Depths are always measured from the start surface, and the tool-reach and past-stock-bottom warnings account for the total. Change a pocket's depth, reorder operations, or move the path a pocket is built on, and anything sitting on that floor is flagged as needing regeneration.
- Auto feed & speeds — cutting feed, plunge feed, spindle RPM, and step-down computed automatically from material, tool geometry, and machine rigidity
- Material library — each material carries a hardness factor that drives the chip-load target
- Machine rigidity (1–5) — scales the feed and depth of cut for your machine, from light hobby gantry to rigid industrial
- Smart spindle RPM — when the machine can't feed fast enough to hold the target chip load, the spindle is slowed instead of overloading the tool (with a warning emitted in the G-code if you have no spindle control)
- Whole-division step-down — depth of cut is snapped to an even division of the total cut depth, capped by tool diameter
- Max feed ceiling — a hard limit that generated feeds never exceed, honored even when auto is off
- Toggle off to use each tool's own stored feeds and speeds instead
- Opens on the finished part — Simulate shows the result first; Play rewinds and cuts it. While the player is open it follows your edits, rebuilding the program whenever an operation changes
- Real machine timing — every move is timed the way a Grbl-family controller runs it: acceleration, the cornering rule and the axis limits from your Machine Motion settings, not just the F word. Playback, the clock and the export estimate all use it
- 2D simulation — play, pause, stop, speed control, seek slider, current G-code line, Z depth, elapsed/total time. The cut trail is a chip-load heat map, so the corners where the machine slows and the chip thins show where they happen
- Chip-load gauge — live feed-per-tooth readout at the speed the machine really reaches, color-banded against the target for your machine rigidity, with feed/RPM/flute suggestions to hit the sweet spot
- 3D view — orbit, pan, zoom; workpiece box with a wood-grain material appearance; toolpath visualization; material removal animation. The cutter is a real fluted model, shaped by the same profile that carves the stock, with its flutes twisting the way the bit's name says (upcut, downcut, compression or straight)
- Rapids that cut — any G0 move that runs into stock is listed above the player (click one to go to it) and in the export review, and the 3D view carves it and tints red any surface it leaves on the finished part
- Operator messages —
(MSG, …)and(PRINT, …)lines in the program appear in the player as playback reaches them, as the controller's console would show them - G-code viewer — line-synchronized highlight during simulation
- Resume a stopped job — after a broken bit, a power cut or a cancel, pick the line it stopped at and write a restart file: carry on from that line, redo the interrupted pass, recut the part, or skip to the next part. The machine's state at that line is put back first, and the entry comes in from safe height — works on G-code from any CAM program
- Imported G-code from other CAM programs simulates too
- G-code export with configurable post-processor profiles
- Built-in profiles for FluidNC and Grbl (mm and inches), grblHAL, LinuxCNC, Mach3, UCCNC and a generic controller; add your own with placeholders for
{x},{y},{z},{f},{s} - Pre-export review: cut-time estimate, and warnings for anything that would surprise you at the machine — operations that failed or are out of date, cuts off the stock or past its bottom, a spindle too fast for the material, chip load lost in the corners, rapids that run into stock
- One file per sheet (or per tile of a tiled job), and optionally one file per tool so each bit is loaded and run on its own
- FluidNC messages — the program names the first bit to load, says which bit each tool-change pause is waiting for (
M0 (MSG, …)), and prints each operation as it starts ((PRINT, …)). Comment lines are kept within the 80-character limit FluidNC enforces - Stock-simulation header — the stock size and every tool's shape go in the file's header, so the CNC GCode Tools viewer in the FluidNC WebUI, FigUI or VS Code shows the job carved in the right stock with the right bits
- Arc output (G2/G3) optional per profile
- Separate G-code unit mode (mm or inches) independent of display units
- SVG export of the selection or the whole drawing — round-trips through this app's own importer with the stock as the page, so a path exported at (120, 40) comes back at (120, 40)
- Saves as
.fkamproject files (JSON) — geometry, operations, tool library and workpiece, every generated object keeping the parameters it was made from so it stays editable after a reload
- Drive a FluidNC controller over WiFi from the browser — no sender to install. A one-time file copied to the controller (the relay,
404.htm) lets the secure app reach the plain-http controller; the Machine tab offers it for download with step-by-step setup - Position, home, zero and jog — work and machine readouts, homing per axis (or hide it on a machine without limit switches), zero per axis, motor enable/disable, and a jog pad with mm or inch steps
- Probe Z — finds the stock top with a touch plate and zeroes Z there, allowing for the plate's thickness
- Go-to map — the stock with the job's toolpath drawn on it; click anywhere to send the tool there, lifting to the safe height first
- SD card — list, upload, delete and load files, or Send to card to post the current design straight to the controller and run it from there; files with lines too long for FluidNC are flagged on load
- Run, pause, cancel, stop — Cancel ends a paused job without an alarm and lifts Z clear; a STOP button is always on screen; feed, rapid and spindle overrides mid-job
- Built for real WiFi — reconnects by itself after a drop and shows the controller's signal strength
Driving the machine: the job loaded from the SD card is drawn on the stock, ready to run.
- Let an AI assistant do the work — Claude, ChatGPT, Cursor or any other app that speaks MCP (the Model Context Protocol) can draw parts, set up toolpaths, check the job and write the G-code in the project open in your browser, while you watch
- It uses the same actions you do, through the same undo history, so you can stop it, take over or undo what it did at any point
- A small server on your own computer (
freazykam-mcp, run withnpx) relays between the assistant and your tab, over a connection that never leaves the machine — though what the assistant reads of your project goes to your AI provider as part of the conversation. Setup and privacy are in the user guide
| Shortcut | Action |
|---|---|
Ctrl/Cmd+S |
Save project |
Ctrl/Cmd+O |
Open project |
Ctrl/Cmd+N |
New project |
Ctrl/Cmd+Z |
Undo |
Ctrl/Cmd+Y / Ctrl/Cmd+Shift+Z |
Redo |
Ctrl/Cmd+D |
Duplicate: copies of the selection follow the mouse, click to place each one, Esc to finish |
Ctrl/Cmd+C / Ctrl/Cmd+V |
Copy / paste paths, including between projects |
Ctrl/Cmd+G / Ctrl/Cmd+Shift+G |
Group / ungroup selected |
Delete / Backspace |
Delete selected |
C |
Constrain tool — hold one part relative to another |
M |
Measure tool — distance, ΔX, ΔY and angle between two points |
Alt + hover |
With a part selected: the gaps to another part, or to the stock |
S |
Toggle snap to grid |
Space |
Play / pause simulation |
Escape |
Cancel pen drawing / exit point edit |
Vite · React 19 · TypeScript · Konva.js · Three.js · Zustand · Tailwind CSS
Clipper2-ts (offset/polygon ops) · polygon-clipping (boolean ops) · JSPoly (medial axis for V-carving) · opentype.js (text) · dxf-parser
Toolpath generation runs in a Web Worker, so the interface stays responsive while a slow strategy computes.
npm install
npm run dev # dev server with hot reload
npm run build # type-check + production build
npm run preview # serve production build locally
npm run test:run # unit tests (Vitest)No backend required. All data stays in your browser.
Thanks to Daniel Moura and his WoodCAM project (MIT licence). The 3D Profile improvements — the waterline finishing strategy and the work around it — were taken from WoodCAM, as was the common-line cut planning, and nesting improvements, which was ported along with its tests.
Thanks to Jason Yeager and his CNC GCode Tools project (MIT licence). The 3D simulator's cutter models are adapted from his: the bit is turned from its own cutting profile, and real flutes are cut into it, twisting up the tool — where before it was a striped cylinder. His stock-simulation header is also what FreazyKam writes into its G-code, so jobs open correctly in his viewer.
The Adaptive pocket strategy is a port of Kresimir Tusek's Adaptive2d from FreeCAD (LGPL-2.1-or-later), and is judged against FreeCAD's own output.




