KerfScript

v0.1.1
com.mylasertools/kerfscript Checked 2 days ago Published 1 month ago

Write, check and render parametric laser-cutting designs in KerfScript, as SVG or DXF.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kerfscript_docs

Read KerfScript language and JavaScript integration documentation for building laser-cutting generators. Omit topic to list guides. Long guides are paginated with nextOffset.

ParameterTypeDescription
offsetinteger
topicstring

kerfscript_examples

Find working parametric laser-cutting examples by title, id or tags. Supply an id from the results to get its .kerf source.

ParameterTypeDescription
idstring
offsetinteger
querystring

kerfscript_parameters

Extract editable settings and customizer ranges from .kerf source to build a generator UI. Parses without rendering geometry.

ParameterTypeDescription
source *string

kerfscript_render

Render .kerf source to SVG or DXF files, one per sheet, with part sizes, layers and warnings. Uses millimetres and bundled Atkinson font. No filesystem or network imports. Bounded to 100 parts and 10 sheets. For production generators install @mylasertools/kerfscript locally.

ParameterTypeDescription
source *stringKerfScript program. Lengths are millimetres; angles are degrees.
formatstring
gapnumber
kerfnumber
layoutstring
librariesobjectOptional virtual libraries keyed by the exact use/include path. No files or URLs are fetched.
marginnumber
paramsobject
sheetarray