API & MCP

Everything a person can do on Living Hinge Pattern Generator (laser flex), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Living Hinge Pattern Generator (laser flex)

Generate a living hinge (kerf bending, flex pattern) for plywood, MDF or acrylic: straight, wave or zigzag rows of staggered cuts across a bend zone. The zone length follows from the bend angle and the inside radius on the neutral axis; you also get the number of rows, the twist each strip has to take, the size of the torsion links and the total cut length.

Inputs of Living Hinge Pattern Generator (laser flex)
FieldTypeDefaultDescription
widthnumber140Panel width across the bend (mm)
heightnumber60Panel height along the bend axis (mm)
thicknessnumber3Material thickness (mm)
patternselect (straight, wave, zigzag)"straight"Cut pattern
cutnumber18Cut length (mm)
bridgenumber3Bridge between cuts (mm)
pitchnumber1.6Row spacing (mm)
anglenumber90Bend angle (degrees)
radiusnumber15Inside bend radius (mm)
zonenumber0Bend zone length (mm, 0 = from angle and radius)
kerfnumber0.15Kerf compensation for the outline (mm)
sheetWidthnumber0Sheet or laser bed width (mm, 0 = no sheet). With a sheet size the parts are nested onto as many sheets as needed; 0 lays every part out in one drawing.
sheetHeightnumber0Sheet or laser bed height (mm, 0 = no sheet)
spacingnumber4Gap between parts (mm). For CNC routing use at least the cutter diameter.
labelsbooleantruePart names on a separate label layer
paperselect (fit, a3, a4, a5, a6, b5, letter, legal, tabloid, halfletter)"fit"PDF pages

Example request

90° corner with 15 mm radius in 3 mm plywood

curl -X POST https://kerfwiselivinghinge.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"width":140,"height":60,"thickness":3,"angle":90,"radius":15}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "kerfwise-living-hinge": { "type": "http", "url": "https://kerfwiselivinghinge.usefulweb.app/mcp" }
  }
}