{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/shelf-bracket/schema.json",
 "title": "Shelf bracket — parameters",
 "description": "Wall shelf brackets sized to the shelf: depth, board, screw and style, from a light L to a honeycomb web, with a conservative load estimate. 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": "shelf-bracket",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "bracket",
   "title": "The bracket"
  },
  {
   "id": "fix",
   "title": "Screws"
  },
  {
   "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": "honeycomb-bracket-200mm",
    "title": "Honeycomb bracket 200 mm",
    "description": "A terracotta honeycomb bracket for a 200 mm shelf with an 18 mm board: 120 mm tall, 20 mm wide, two screws.",
    "values": {
     "color": "#b45309"
    }
   },
   {
    "id": "gusset-bracket-150mm-plants",
    "title": "Gusset bracket 150 mm for plants",
    "description": "A green open gusset with a centre rib, 150 mm deep and 100 mm tall, for a plant shelf.",
    "values": {
     "style": "gusset",
     "depth": 150,
     "height": 100,
     "web": 7,
     "fillet": 2.5,
     "color": "#3f6212"
    }
   },
   {
    "id": "bookshelf-bracket-200mm-heavy",
    "title": "Bookshelf bracket 200 mm, heavy",
    "description": "A graphite honeycomb bracket for books: 200 mm deep, 140 mm tall, 32 mm wide, four M6 screws.",
    "values": {
     "depth": 200,
     "height": 140,
     "width": 32,
     "plate": 8,
     "screw": "M6",
     "holes": "four",
     "cell": 10,
     "web": 3,
     "color": "#1f2937"
    }
   },
   {
    "id": "filament-spool-shelf-220mm",
    "title": "Filament spool shelf 220 mm",
    "description": "A blue 220 mm bracket for a row of filament spools: 160 mm tall, 40 mm wide, four M6 screws.",
    "values": {
     "depth": 220,
     "height": 160,
     "width": 40,
     "plate": 8,
     "screw": "M6",
     "holes": "four",
     "cell": 14,
     "web": 3,
     "color": "#1f4e8c"
    }
   },
   {
    "id": "floating-shelf-hidden-28mm",
    "title": "Floating shelf, hidden bracket, 28 mm board",
    "description": "A white tongue that slides into a slot in the back of a 28 mm board: nothing shows under the shelf.",
    "values": {
     "style": "hidden",
     "depth": 100,
     "height": 20,
     "width": 40,
     "board": 28,
     "color": "#f1f1f1"
    }
   },
   {
    "id": "corner-brace-80mm",
    "title": "Corner brace 80 × 80 mm",
    "description": "An orange brace with screws into the wall and up into the board, for a shelf in a cabinet or a box.",
    "values": {
     "style": "gusset",
     "depth": 80,
     "height": 80,
     "width": 20,
     "plate": 5,
     "screw": "wood4",
     "boardScrew": true,
     "web": 6,
     "fillet": 2,
     "color": "#c2410c"
    }
   },
   {
    "id": "clamp-on-desk-edge",
    "title": "Clamp-on bracket for a desk edge",
    "description": "A teal clamp for an 18 mm desk top with an M6 bolt: no screws in the wall, a 100 mm arm for a shelf over the desk.",
    "values": {
     "style": "clamp",
     "depth": 100,
     "height": 50,
     "width": 25,
     "screw": "M6",
     "web": 6,
     "color": "#0e7490"
    }
   },
   {
    "id": "light-l-bracket-80mm",
    "title": "Light L bracket 80 mm",
    "description": "A sand-coloured plain L, 80 mm deep and 30 mm wide, for a picture ledge or a small plant.",
    "values": {
     "style": "l",
     "depth": 80,
     "height": 50,
     "width": 30,
     "plate": 8,
     "board": 12,
     "screw": "wood4",
     "color": "#a16207"
    }
   }
  ]
 },
 "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": {
  "style": {
   "type": "string",
   "enum": [
    "honeycomb",
    "gusset",
    "l",
    "hidden",
    "clamp"
   ],
   "x-enumTitles": {
    "honeycomb": "Honeycomb web: stiff and decorative",
    "gusset": "Gusset: an open frame with a centre rib",
    "l": "L bracket: plain, for a light shelf",
    "hidden": "Hidden: a tongue into the board, a floating shelf",
    "clamp": "Clamp-on: grips a desk edge, no screws"
   },
   "title": "Style",
   "description": "Every style prints on its side, as exported, with no supports.",
   "x-group": "bracket",
   "x-agentSafe": true,
   "x-label-lv": "Stils",
   "default": "honeycomb",
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 60,
   "maximum": 300,
   "multipleOf": 5,
   "title": "Shelf depth",
   "description": "How far the arm reaches from the wall. A hidden bracket: how far the tongue goes into the board. A clamp: the arm past the desk's edge.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Plaukta dziļums",
   "default": 200,
   "x-resetOnPreset": true
  },
  "height": {
   "type": "number",
   "minimum": 20,
   "maximum": 250,
   "multipleOf": 5,
   "title": "Height",
   "description": "The wall plate's height. A shelf more than 2.5 times this deep droops. A hidden bracket: the tongue's height. A clamp: the jaw over the desk.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augstums",
   "default": 120,
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 15,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Width",
   "description": "Along the wall. 20 mm for a shelf, 30 to 40 for books and spools.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Platums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "board": {
   "type": "number",
   "minimum": 12,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Board thickness",
   "description": "The shelf board. The plate rises behind it to its top edge; a hidden bracket slots into the board's middle; a clamp grips a desk this thick.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Dēļa biezums",
   "default": 18,
   "x-resetOnPreset": true
  },
  "plate": {
   "type": "number",
   "minimum": 4,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Plate thickness",
   "description": "The wall plate and the arm. 6 mm for a shelf, 8 for books.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes biezums",
   "default": 6,
   "x-resetOnPreset": true
  },
  "cell": {
   "type": "number",
   "minimum": 6,
   "maximum": 24,
   "multipleOf": 1,
   "title": "Honeycomb cell",
   "description": "Across the flats of the honeycomb cells. Small cells make a busier, stiffer web.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Šūnas izmērs",
   "default": 12,
   "x-resetOnPreset": true
  },
  "web": {
   "type": "number",
   "minimum": 2,
   "maximum": 12,
   "x-step": 0.2,
   "title": "Web thickness",
   "description": "The honeycomb's walls, or the gusset's strut and rib. A strut under 4 mm buckles early.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Tīkla sieniņas",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "fillet": {
   "type": "number",
   "minimum": 0,
   "maximum": 6,
   "x-step": 0.5,
   "title": "Corner radius",
   "description": "Rounds the corners of the L and the gusset, inside and out. At most 45% of the plate.",
   "x-group": "bracket",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Stūru rādiuss",
   "default": 2,
   "x-resetOnPreset": true
  },
  "screw": {
   "type": "string",
   "enum": [
    "wood3",
    "wood35",
    "wood4",
    "wood5",
    "M3",
    "M4",
    "M5",
    "M6"
   ],
   "x-enumTitles": {
    "wood3": "Wood screw 3 mm",
    "wood35": "Wood screw 3.5 mm",
    "wood4": "Wood screw 4 mm",
    "wood5": "Wood screw 5 mm",
    "M3": "M3 machine screw",
    "M4": "M4 machine screw",
    "M5": "M5 machine screw",
    "M6": "M6 machine screw"
   },
   "title": "Screw",
   "description": "The hole and its 90° seat are made for this screw. A clamp needs a bolt with a nut: M4, M5 or M6.",
   "x-group": "fix",
   "x-agentSafe": true,
   "x-label-lv": "Skrūve",
   "default": "M5",
   "x-resetOnPreset": true
  },
  "holes": {
   "type": "string",
   "enum": [
    "two",
    "four"
   ],
   "x-enumTitles": {
    "two": "Two, one above the other",
    "four": "Four, in two columns"
   },
   "title": "Wall screws",
   "description": "For the L, gusset and honeycomb styles. Four need a bracket wide enough for the heads.",
   "x-group": "fix",
   "x-agentSafe": true,
   "x-label-lv": "Sienas skrūves",
   "default": "two",
   "x-resetOnPreset": true
  },
  "boardScrew": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Screws into the board",
   "description": "Two holes up through the arm to fasten the board from below, as a corner brace needs. Not for the hidden style.",
   "x-group": "fix",
   "x-agentSafe": true,
   "x-label-lv": "Skrūves dēlī",
   "default": 0,
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA is stiffest indoors. PETG creeps more, so its estimate is lower. ASA for a hot or sunny room.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "The bracket.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#b45309",
   "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": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}