{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/key-rack/schema.json",
 "title": "Wall key rack — parameters",
 "description": "Design a 3D-printable wall key holder with 1–10 side-printed hooks, family header, individual names, optional phone/wallet shelf and hidden keyholes in 3MF and STL. 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": "key-rack",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "layout",
   "title": "Rack & hooks"
  },
  {
   "id": "text",
   "title": "Header & names"
  },
  {
   "id": "mounting",
   "title": "Wall mounting"
  },
  {
   "id": "print",
   "title": "Print & colours"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "family-4-names",
    "title": "Family key rack (4 names)",
    "description": "Rounded wall key holder with a family header, 4 individual hook names and hidden keyholes.",
    "values": {
     "hookCount": 4,
     "hookSpacing": 40,
     "hookStyle": "j",
     "plateStyle": "rounded",
     "shelfDepth": 0,
     "surfaceTexture": "wood",
     "textureDepth": 0.8,
     "headerText": "OUR HOME",
     "hookNames": "ANNA, TOM, MIA, LEO",
     "font": "lilita",
     "headerHeight": 16,
     "nameHeight": 8,
     "relief": 1.6,
     "mounting": "keyhole",
     "screwDiameter": 4,
     "plateThickness": 8,
     "fitClearance": 0.25,
     "bedSize": 220,
     "fitTest": false,
     "color": "#2b4c59",
     "textColor": "#f4efe6",
     "hookColor": "#d97736"
    }
   },
   {
    "id": "simple-5-hooks",
    "title": "Simple 5-hook key holder",
    "description": "Compact 5-hook hallway key rack with bold KEYS header and hidden keyhole slots.",
    "values": {
     "hookCount": 5,
     "hookSpacing": 34,
     "hookStyle": "j",
     "plateStyle": "rounded",
     "shelfDepth": 0,
     "surfaceTexture": "ribs",
     "textureDepth": 0.8,
     "headerText": "KEYS",
     "hookNames": "",
     "font": "barlow",
     "headerHeight": 16,
     "nameHeight": 8,
     "relief": 1.6,
     "mounting": "keyhole",
     "screwDiameter": 4,
     "plateThickness": 8,
     "fitClearance": 0.25,
     "bedSize": 220,
     "fitTest": false,
     "color": "#1e293b",
     "textColor": "#f8fafc",
     "hookColor": "#38bdf8"
    }
   },
   {
    "id": "phone-wallet-shelf",
    "title": "Key rack with phone & wallet shelf",
    "description": "Entryway key holder with a 45 mm slide-in top shelf for phone, wallet or mail.",
    "values": {
     "hookCount": 4,
     "hookSpacing": 42,
     "hookStyle": "j",
     "plateStyle": "rectangle",
     "shelfDepth": 45,
     "surfaceTexture": "hex",
     "textureDepth": 0.8,
     "headerText": "HOME",
     "hookNames": "",
     "font": "barlow",
     "headerHeight": 15,
     "nameHeight": 8,
     "relief": 1.6,
     "mounting": "screws",
     "screwDiameter": 4.5,
     "plateThickness": 9,
     "fitClearance": 0.25,
     "bedSize": 220,
     "fitTest": false,
     "color": "#3f3f46",
     "textColor": "#fafaf9",
     "hookColor": "#b45309"
    }
   },
   {
    "id": "house-number-keys",
    "title": "House-number key holder",
    "description": "House-shaped key rack displaying your house number with 4 matching hooks.",
    "values": {
     "hookCount": 4,
     "hookSpacing": 38,
     "hookStyle": "house",
     "plateStyle": "house",
     "shelfDepth": 0,
     "headerText": "42B",
     "hookNames": "",
     "font": "lilita",
     "headerHeight": 22,
     "nameHeight": 8,
     "relief": 1.8,
     "mounting": "keyhole",
     "screwDiameter": 4,
     "plateThickness": 8,
     "fitClearance": 0.25,
     "bedSize": 220,
     "fitTest": false,
     "color": "#14532d",
     "textColor": "#fef9c3",
     "hookColor": "#ca8a04"
    }
   },
   {
    "id": "garage-car-keys",
    "title": "Garage car-key rack",
    "description": "Heavy-duty 5-peg garage rack labelled for Car, Van, Bike, Shed and Gate.",
    "values": {
     "hookCount": 5,
     "hookSpacing": 38,
     "hookStyle": "peg",
     "plateStyle": "rectangle",
     "shelfDepth": 0,
     "surfaceTexture": "diamond",
     "textureDepth": 0.8,
     "headerText": "GARAGE",
     "hookNames": "CAR, VAN, BIKE, SHED, GATE",
     "font": "barlow",
     "headerHeight": 16,
     "nameHeight": 7.5,
     "relief": 1.6,
     "mounting": "screws",
     "screwDiameter": 5,
     "plateThickness": 9,
     "fitClearance": 0.25,
     "bedSize": 250,
     "fitTest": false,
     "color": "#27272a",
     "textColor": "#facc15",
     "hookColor": "#ea580c"
    }
   },
   {
    "id": "minimal-magnet-pegs",
    "title": "Minimal magnetic peg row",
    "description": "Clean no-text peg row with 8×3 mm rear magnet pockets for steel doors or fridges.",
    "values": {
     "hookCount": 4,
     "hookSpacing": 35,
     "hookStyle": "peg",
     "plateStyle": "rounded",
     "shelfDepth": 0,
     "surfaceTexture": "waves",
     "textureDepth": 0.8,
     "headerText": "",
     "hookNames": "",
     "font": "varela",
     "headerHeight": 14,
     "nameHeight": 8,
     "relief": 1.4,
     "mounting": "magnets",
     "magnetDiameter": 8,
     "magnetThickness": 3,
     "plateThickness": 8,
     "fitClearance": 0.25,
     "bedSize": 220,
     "fitTest": false,
     "color": "#334155",
     "textColor": "#f1f5f9",
     "hookColor": "#14b8a6"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); 3mf_prusa = 3MF for PrusaSlicer (mm, colour parts as volumes); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "3mf_prusa",
    "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": {
  "hookCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 10,
   "multipleOf": 1,
   "title": "Number of hooks",
   "description": "How many snap-in key hooks sit along the bottom row of the rack.",
   "x-group": "layout",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Āķu skaits",
   "default": 4
  },
  "hookSpacing": {
   "type": "number",
   "minimum": 25,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Hook spacing",
   "description": "Centre-to-centre distance between neighbouring hooks. Use 40+ mm for bulky car fobs.",
   "x-group": "layout",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Attālums starp āķiem",
   "default": 38
  },
  "hookStyle": {
   "type": "string",
   "enum": [
    "j",
    "peg",
    "house"
   ],
   "x-enumTitles": {
    "j": "J-hook",
    "peg": "Angled peg",
    "house": "House hook"
   },
   "title": "Hook style",
   "description": "All hook profiles print flat on their side for maximum layer-line strength without supports.",
   "x-group": "layout",
   "x-agentSafe": true,
   "x-label-lv": "Āķa forma",
   "default": "j"
  },
  "plateStyle": {
   "type": "string",
   "enum": [
    "rounded",
    "rectangle",
    "house"
   ],
   "x-enumTitles": {
    "rounded": "Rounded rectangle",
    "rectangle": "Sharp rectangle",
    "house": "House silhouette"
   },
   "title": "Back plate shape",
   "description": "Outline of the wall back plate: rounded corners, crisp rectangle or peaked house roof.",
   "x-group": "layout",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes forma",
   "default": "rounded"
  },
  "shelfDepth": {
   "type": "number",
   "minimum": 0,
   "maximum": 60,
   "multipleOf": 5,
   "title": "Top shelf depth (0 = off)",
   "description": "Adds a slide-in upper tray for mail, wallet or phone when set to 10 mm or deeper.",
   "x-group": "layout",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augšējā plaukta dziļums (0 = nav)",
   "default": 0
  },
  "surfaceTexture": {
   "type": "string",
   "enum": [
    "none",
    "ribs",
    "diamond",
    "hex",
    "waves",
    "wood"
   ],
   "x-enumTitles": {
    "none": "Smooth (plain)",
    "ribs": "Fluted ribs",
    "diamond": "Geometric diamond",
    "hex": "Honeycomb hex",
    "waves": "Wavy grooves",
    "wood": "Wood grain"
   },
   "title": "Front surface texture",
   "description": "Engraved decorative pattern on the front face; keeps hook slots and text zones clean.",
   "x-group": "layout",
   "x-agentSafe": true,
   "x-label-lv": "Priekšpuses faktūra",
   "default": "none"
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 1.4,
   "x-step": 0.2,
   "title": "Texture groove depth",
   "description": "How deep the front surface texture grooves are cut into the back plate.",
   "x-group": "layout",
   "x-unit": "mm",
   "x-visibleIf": {
    "surfaceTexture": [
     "ribs",
     "diamond",
     "hex",
     "waves",
     "wood"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras dziļums",
   "default": 0.8
  },
  "headerText": {
   "type": "string",
   "maxLength": 24,
   "title": "Header text",
   "description": "Raised title across the top of the rack (e.g. KEYS, family name, or address). Leave empty to omit.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Virsraksts",
   "default": "KEYS"
  },
  "hookNames": {
   "type": "string",
   "maxLength": 90,
   "title": "Names per hook (comma-separated)",
   "description": "Optional comma-separated labels placed above each hook (e.g. Anna, Janis, Car, Bike).",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Vārdi virs āķiem (ar komatu)",
   "default": ""
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "barlow",
    "varela",
    "pacifico"
   ],
   "x-enumTitles": {
    "lilita": "Lilita One (bold rounded)",
    "barlow": "Barlow (clean sans)",
    "varela": "Varela Round (soft)",
    "pacifico": "Pacifico (script)"
   },
   "title": "Font",
   "description": "Letter style used for both the header title and per-hook names.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita"
  },
  "headerHeight": {
   "type": "number",
   "minimum": 10,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Header letter height",
   "description": "Target height of the raised header letters; shrinks automatically if the title is long.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Virsraksta burtu augstums",
   "default": 16
  },
  "nameHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 14,
   "x-step": 0.5,
   "title": "Hook name height",
   "description": "Target height of the labels printed above each individual hook.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Vārdu augstums",
   "default": 8
  },
  "relief": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Text relief height",
   "description": "How high the raised letters stand above the back plate face.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Teksta reljefs",
   "default": 1.6
  },
  "mounting": {
   "type": "string",
   "enum": [
    "keyhole",
    "screws",
    "adhesive",
    "magnets"
   ],
   "x-enumTitles": {
    "keyhole": "Hidden keyholes",
    "screws": "Countersunk screws",
    "adhesive": "Adhesive tape pads",
    "magnets": "Magnet pockets"
   },
   "title": "Mounting method",
   "description": "Choose hidden rear keyholes, countersunk screw holes, recessed tape pads or magnet pockets.",
   "x-group": "mounting",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājuma veids",
   "default": "keyhole"
  },
  "screwDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 6,
   "x-step": 0.5,
   "title": "Screw diameter",
   "description": "Shank diameter of the wall mounting screws (4 mm suits standard M4 / #8 wall screws).",
   "x-group": "mounting",
   "x-unit": "mm",
   "x-role": "core.screwDiameter",
   "x-visibleIf": {
    "mounting": [
     "keyhole",
     "screws"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūves diametrs",
   "default": 4
  },
  "magnetDiameter": {
   "type": "number",
   "minimum": 6,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Magnet diameter",
   "description": "Diameter of round neodymium magnets glued into the rear pockets.",
   "x-group": "mounting",
   "x-unit": "mm",
   "x-role": "core.magnetDiameter",
   "x-visibleIf": {
    "mounting": [
     "magnets"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta diametrs",
   "default": 8
  },
  "magnetThickness": {
   "type": "number",
   "minimum": 1.5,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Magnet thickness",
   "description": "Thickness of the disc magnets; pocket depth stays at least 2 mm clear of the front face.",
   "x-group": "mounting",
   "x-unit": "mm",
   "x-role": "core.magnetHeight",
   "x-visibleIf": {
    "mounting": [
     "magnets"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta biezums",
   "default": 3
  },
  "plateThickness": {
   "type": "number",
   "minimum": 6,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Back plate thickness",
   "description": "Total depth of the back plate (must fit hook tenons and rear keyhole/magnet pockets).",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes biezums",
   "default": 8
  },
  "fitClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.5,
   "x-step": 0.05,
   "title": "Hook & shelf fit clearance",
   "description": "Gap around each hook tenon and shelf slot. 0.25 mm gives a snug press fit on most printers.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Āķu un plaukta pielaide",
   "default": 0.25
  },
  "bedSize": {
   "type": "number",
   "minimum": 150,
   "maximum": 400,
   "multipleOf": 10,
   "title": "Print bed width",
   "description": "Racks wider than bed width minus 10 mm split automatically into interlocking pin-aligned segments.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Drukas galda platums",
   "default": 220
  },
  "fitTest": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Print fit-test coupon only",
   "description": "Outputs one small coupon with a single mortise, keyhole and sample hook to check fit fast.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Drukāt tikai pielaides testa gabalu",
   "default": 0
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Back plate colour",
   "description": "Colour of the main wall back plate in the preview and 3MF export.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes krāsa",
   "default": "#2b4c59"
  },
  "textColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Text & border colour",
   "description": "Second colour assigned to raised header and hook-name text in multi-colour 3MF.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Teksta un apmales krāsa",
   "default": "#f4efe6"
  },
  "hookColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Hook & shelf colour",
   "description": "Colour of the separate snap-in hooks and optional top shelf.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Āķu un plaukta krāsa",
   "default": "#d97736"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "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)"
  },
  {
   "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)"
  }
 ]
}