{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/headphone-hook/schema.json",
 "title": "Headphone hook — parameters",
 "description": "Headphone hooks sized to your desk and your headband: screwed under the desk, clamped on its edge or on the wall, with a round saddle, a cable hook and a name. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "headphone-hook",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "hook",
   "title": "Hook"
  },
  {
   "id": "mount",
   "title": "Mount"
  },
  {
   "id": "name",
   "title": "Name"
  },
  {
   "id": "look",
   "title": "Colours"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "under-desk-screw-hook",
    "title": "Under-desk hook, screwed (34 mm)",
    "description": "A 34 mm hook screwed under the desk edge, PHONES on its face: a headset at hand, off the desk and off the floor.",
    "values": {
     "mount": "screw",
     "width": 34,
     "saddleRadius": 22,
     "hookDepth": 50,
     "drop": 20,
     "thickness": 5,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": false,
     "pad": "none",
     "label": "PHONES",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#0e7490",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "clamp-on-desk-hook",
    "title": "Clamp-on desk hook, no screws (25 mm)",
    "description": "A clamp that grips a 25 mm desk by its edge with no screws, and hangs the saddle below it. Print the fit coupon first.",
    "values": {
     "mount": "clamp",
     "width": 34,
     "saddleRadius": 22,
     "hookDepth": 50,
     "drop": 20,
     "thickness": 5,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": false,
     "pad": "none",
     "label": "PHONES",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#b45309",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "clamp-fit-coupon",
    "title": "Clamp fit coupon (25 mm)",
    "description": "A short piece of the 25 mm clamp, and the hook with it: try the coupon on your desk, change the grip until it holds, then print the hook.",
    "values": {
     "mount": "clamp",
     "width": 34,
     "saddleRadius": 22,
     "hookDepth": 50,
     "drop": 20,
     "thickness": 5,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": true,
     "pad": "none",
     "label": "",
     "font": "lilita",
     "colorMode": "single",
     "baseColor": "#1d4ed8",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "monitor-edge-hanger",
    "title": "Monitor edge hanger (12 mm)",
    "description": "A slim clamp for the top edge of a monitor, 12 mm thick, that hangs a headset beside the screen. No screws, no tape.",
    "values": {
     "mount": "clamp",
     "width": 30,
     "saddleRadius": 18,
     "hookDepth": 40,
     "drop": 30,
     "thickness": 5,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 12,
     "clampFit": 0.3,
     "topDepth": 20,
     "bottomDepth": 12,
     "coupon": false,
     "pad": "none",
     "label": "HEADSET",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#15803d",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "wall-hanger-cable-hook",
    "title": "Wall hanger with a cable hook",
    "description": "Screwed to the wall by the desk, a round saddle with a soft inlay in a second colour and a small hook underneath for the cable.",
    "values": {
     "mount": "wall",
     "width": 34,
     "saddleRadius": 22,
     "hookDepth": 50,
     "drop": 20,
     "thickness": 5,
     "cableHook": true,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": false,
     "pad": "inlay",
     "label": "PHONES",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#a21caf",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "gaming-headset-hook",
    "title": "Gaming headset hook, 6 mm",
    "description": "A thick hook for a heavy gaming headset: 6 mm throughout, a wide saddle and a 60 mm reach, under the desk.",
    "values": {
     "mount": "screw",
     "width": 44,
     "saddleRadius": 28,
     "hookDepth": 60,
     "drop": 20,
     "thickness": 6,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m5",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": false,
     "pad": "none",
     "label": "GAMING",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#b91c1c",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "wide-band-hook",
    "title": "Wide-band hook (50 mm)",
    "description": "A 50 mm wide saddle with a 30 mm radius for studio headphones with a wide band and a heavy cup, screwed under the desk.",
    "values": {
     "mount": "screw",
     "width": 50,
     "saddleRadius": 30,
     "hookDepth": 55,
     "drop": 20,
     "thickness": 6,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 25,
     "clampFit": 0.4,
     "topDepth": 40,
     "bottomDepth": 30,
     "coupon": false,
     "pad": "none",
     "label": "STUDIO",
     "font": "lilita",
     "colorMode": "multi",
     "baseColor": "#0f766e",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   },
   {
    "id": "shelf-hanger-plain",
    "title": "Shelf hanger, plain (18 mm)",
    "description": "A small clamp for an 18 mm shelf, one colour and no name, for a spare headset in the cupboard.",
    "values": {
     "mount": "clamp",
     "width": 24,
     "saddleRadius": 16,
     "hookDepth": 35,
     "drop": 10,
     "thickness": 5,
     "cableHook": false,
     "plateDepth": 40,
     "screwSize": "m4",
     "deskThickness": 18,
     "clampFit": 0.4,
     "topDepth": 30,
     "bottomDepth": 12,
     "coupon": false,
     "pad": "none",
     "label": "",
     "font": "lilita",
     "colorMode": "single",
     "baseColor": "#f4efe6",
     "accentColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 5,
     "infill": 100
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "mount": {
   "type": "string",
   "enum": [
    "screw",
    "clamp",
    "wall"
   ],
   "x-enumTitles": {
    "screw": "Under a desk, screwed",
    "clamp": "Clamp on the desk edge",
    "wall": "On the wall, screwed"
   },
   "title": "Mount",
   "description": "Screwed under a desk or to the wall, or clamped on the edge of a desk, a shelf or a monitor with no screws.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Piestiprināšana",
   "default": "screw",
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 20,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Hook width",
   "description": "Across the saddle. A little wider than the headband, so that the band lies flat on it.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa platums",
   "default": 34,
   "x-resetOnPreset": true
  },
  "saddleRadius": {
   "type": "number",
   "minimum": 10,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Saddle radius",
   "description": "Of the round rest the headband hangs in. Wide bands want a wide saddle; small earbuds cases a narrow one.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Segla rādiuss",
   "default": 22,
   "x-resetOnPreset": true
  },
  "hookDepth": {
   "type": "number",
   "minimum": 20,
   "maximum": 90,
   "multipleOf": 1,
   "title": "Reach",
   "description": "How far the saddle stands out from the desk edge or the wall. A headband hangs lower than the saddle and needs room behind it.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Dziļums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "drop": {
   "type": "number",
   "minimum": 0,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Drop",
   "description": "How far the hook comes down before it reaches out. A clamp sits under the desk; this brings the saddle below its edge.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "screw",
     "clamp"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Nolaišanās",
   "default": 20,
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Thickness",
   "description": "Of the hook and its mount. 5 mm holds a heavy headset; a long reach wants more.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 5,
   "x-resetOnPreset": true
  },
  "cableHook": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Cable hook",
   "description": "A small hook under the saddle for the cable.",
   "x-group": "hook",
   "x-agentSafe": true,
   "x-label-lv": "Vada āķītis",
   "default": 0,
   "x-resetOnPreset": true
  },
  "plateDepth": {
   "type": "number",
   "minimum": 25,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Plate depth",
   "description": "How far the plate goes under the desk, or up the wall.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "screw",
     "wall"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes dziļums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "screwSize": {
   "type": "string",
   "enum": [
    "m3",
    "m4",
    "m5"
   ],
   "x-enumTitles": {
    "m3": "M3",
    "m4": "M4",
    "m5": "M5"
   },
   "title": "Screw size",
   "description": "Wood screws or machine screws with a round head. The plate has a pocket for the head.",
   "x-group": "mount",
   "x-visibleIf": {
    "mount": [
     "screw",
     "wall"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūves izmērs",
   "default": "m4",
   "x-resetOnPreset": true
  },
  "deskThickness": {
   "type": "number",
   "minimum": 10,
   "maximum": 50,
   "x-step": 0.5,
   "title": "Desk thickness",
   "description": "Measure the desk, shelf or monitor edge where the clamp goes, then print the fit coupon first.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "clamp"
   },
   "x-agentSafe": true,
   "x-label-lv": "Galda biezums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "clampFit": {
   "type": "number",
   "minimum": 0,
   "maximum": 1,
   "x-step": 0.1,
   "title": "Clamp grip",
   "description": "How much tighter the clamp is than the desk: 0 slides on, 0.5 holds firmly, 1 needs a push. The fit coupon shows what your desk takes.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "clamp"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skavas spiediens",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "topDepth": {
   "type": "number",
   "minimum": 15,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Top jaw",
   "description": "How far the clamp reaches over the top of the desk. A monitor edge takes 15 to 25.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "clamp"
   },
   "x-agentSafe": true,
   "x-label-lv": "Augšējais žoklis",
   "default": 40,
   "x-resetOnPreset": true
  },
  "bottomDepth": {
   "type": "number",
   "minimum": 10,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Bottom jaw",
   "description": "How far the clamp reaches under the desk. A hanger over a shelf edge takes 10 to 15; a desk 25 to 40.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "clamp"
   },
   "x-agentSafe": true,
   "x-label-lv": "Apakšējais žoklis",
   "default": 30,
   "x-resetOnPreset": true
  },
  "coupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A short piece of the clamp to try on the desk before printing the hook.",
   "x-group": "mount",
   "x-visibleIf": {
    "mount": "clamp"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pielaides paraugs",
   "default": 0,
   "x-resetOnPreset": true
  },
  "pad": {
   "type": "string",
   "enum": [
    "none",
    "inlay"
   ],
   "x-enumTitles": {
    "none": "None",
    "inlay": "Soft inlay in two colours"
   },
   "title": "Saddle inlay",
   "description": "The inner skin of the saddle as a second colour, for a soft filament on a multi-material printer, so that the band does not rest on hard plastic.",
   "x-group": "hook",
   "x-agentSafe": true,
   "x-label-lv": "Segla ieliktnis",
   "default": "none",
   "x-resetOnPreset": true
  },
  "label": {
   "type": "string",
   "maxLength": 12,
   "title": "Name",
   "description": "On the face of the mount, up to 12 characters. Empty: nothing. The letters shrink to fit.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "default": "PHONES",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long text (Barlow Condensed)"
   },
   "title": "Letter style",
   "description": "The bold style reads from across the room; the narrow one fits a longer word.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: hook and name or inlay"
   },
   "title": "Colours",
   "description": "Two colours fills the name flush and prints the inlay in a second colour, in a 3MF for a multi-material printer.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Hook colour",
   "description": "The hook and its mount.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Āķa krāsa",
   "default": "#0e7490",
   "x-resetOnPreset": true
  },
  "accentColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Name and inlay colour",
   "description": "The letters and the inlay of the saddle.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Vārda un ieliktna krāsa",
   "default": "#fef9c3",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA is stiff and holds a heavy headset. PETG bends further before it cracks, and takes a hot room or a car.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.12,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.16 mm or less keeps the saddle round and the name sharp.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.16,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "The hook prints on its side, so that the layers run along it: make the whole thickness walls, and the hook cannot split along a layer.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 5,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 10,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: a hook is small, and solid plastic does not creep under a load.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100,
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "pla-matte-filament",
   "title": "Matte PLA Filament 1.75 mm (1 kg) — smooth surface finish",
   "why": "Clean matte finish for decorative vases, ornaments and candle holders.",
   "url": "https://paramlet.com/go/pla-matte-filament?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}