.kicad_mod, or the raw upstream file
can be downloaded for full fidelity. The clipboard builder is in src/lib/clipboard.ts.
Clipboard reconstruction — buildFootprintKicadMod
cols = ceil(sqrt(padCount)), 1.27 mm spacing,
centered on origin), detects smd vs thru_hole from each pad’s type, and tags the
generator trace_footprints. FootprintActions wires this to the “Copy to Clipboard”
button.
Raw download — GET /api/download/[library]
Serves the raw original .kicad_mod from the upstream Trace GitHub repo, preserving all
geometry and graphics.
Footprint name (without extension).
trace or cern.https://raw.githubusercontent.com/buildwithtrace/trace-kicad-footprints-lib/main/{library}.pretty/{name}.kicad_mod
(library + name are validated against a safe charset; no path traversal).
CERN footprints are not mirrored on the Trace GitHub repo.
source=cern returns 404
(“Raw download unavailable for this source”), and the client falls back to clipboard
reconstruction. 400 if name is missing.
