Browser-based parametric generator for Pantorouter mortise/tenon templates. Pick units (mm or in), enter your tenon size, bit diameter, and guide bushing diameter, hit Generate, and download STEP or STL files for both the template body and its matching rail.
gustebeast.github.io/pantorouter-template-generator
The browser does all the geometry locally via replicad (a JavaScript port of OpenCascade, the same CAD kernel used by FreeCAD). After the kernel loads (~5 MB, once-per-browser), nothing leaves your machine.
- mm or inches — toggle at the top of the form converts every input.
- STEP or STL — pick the format that matches your workflow. STL goes straight to your slicer; STEP opens in any CAD tool.
- 3D preview — built-in three.js viewer with toggles to show / hide the body and rail independently. Left-click to rotate, right-click to pan, scroll to zoom.
- Debossed label in the mortise pocket showing the joint dimensions in the units you generated with — so you can identify a printed template at a glance.
pantorouter-template-body— main piece. Has the dual mortise/tenon guide profiles, three pilot holes (drill out to 4 mm for screws, 6 mm for the center pin), and a dovetail slot in its back to receive the rail.pantorouter-template-rail— slides into the back of the body and engages the pantorouter's T-track. Prints separately to avoid needing structural support.pantorouter-template-assembled-demo— both pieces in their as-mounted positions, fused into a single solid. Visual reference only — print the body and rail separately.
- (Optional) Print the test mortise and tenon and check they fit together. You can also print the screw test to see how the two mounting holes will fit on your Pantorouter's T track.
- Print the body and the rail. Dual rail mount: print two copies of the rail — one for each slot in the body.
- Apply super glue to the rail (each rail, for dual rail mount).
- Slide the rail into the body (one rail per slot for dual rail mount).
- Wait for the glue to cure.
- Use 4 mm and 6 mm drill bits to widen the pilot holes, drilling straight through the base plate AND the glued rails (rails print solid; the pocket floor's reference counterbores indicate which is which).
Based on "Pantorouter Tenon Template" by FozzTexx (CC0 1.0). Pantograph
math verified against The Pantorouter Co.'s sizing calculator. The
rail ↔ body joint is the cadkit octagon ("stop sign") slide joint —
ported from the vendored cadkit/joinery.py (the canonical geometry;
keep the port in sync). Both halves print flat with every face vertical
or 45°; the octagon width is solved so the cavity fits the base plate's
countersink stack. Rail clearance 0.25 mm. Rails print SOLID — no
printed holes; after glue-up, drill the center/screw holes straight
through the base plate and rail, guided by the body's printed pilots.
Originally designed for PA6-GF with a 0.4 mm nozzle, but PLA, PETG, ABS, ASA, and other common FDM filaments work too. Tunable shrink compensation for material-specific calibration. Use a brim on the rail (it's long and thin) for reliable bed adhesion.
Pre-generated reference outputs at the default parameters
(20 × 70 mm tenon, 12.7 mm bit, 12 mm bushing) live in
(STALE since the octagon-joint change — regenerate in the browser)
example/:
pantorouter-template-body.steppantorouter-template-rail.steppantorouter-template-assembled-demo.step— both pieces in their as-mounted positions, for visual verification only.
To regenerate after a geometry change: open the live tool at default
parameters, click Generate, save the three STEP files into example/,
and copy the assembled demo over the root assembly.step (what
View Assembly.cmd opens in the FreeCAD viewer hub).
The site is plain static HTML/JS; no build step. To preview locally:
python3 -m http.server 8080
# open http://localhost:8080(A real HTTP server is needed; file:// won't work for the WASM
imports replicad does on first load.)
The CAD geometry, web UI, and three.js preview were written entirely by Claude (Anthropic) over a long pair-programming session. Original SCAD design (which this is parametrically derived from) is by FozzTexx.
CC0 (matching FozzTexx's original).