{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/coral-frag-rack/schema.json",
 "title": "Coral frag rack — parameters",
 "description": "Custom 3D-printable coral frag racks for reef tanks: straight or 90° corner, sized to your plugs, glass thickness and magnets, rim-hang arms or sump legs. Support-free. 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": "coral-frag-rack",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "deck",
   "title": "Rack & frag plugs"
  },
  {
   "id": "mount",
   "title": "Mounting"
  },
  {
   "id": "fit",
   "title": "Fit & clearance"
  },
  {
   "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": "magnetic-frag-rack-12",
    "title": "Magnetic coral frag rack, 12 plugs",
    "description": "3 × 4 staggered reef shelf with two 15 × 3 mm sealed magnet pockets and matching dry-side bar.",
    "values": {
     "shape": "straight",
     "rows": 3,
     "cols": 4,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 26,
     "deckThickness": 7,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "magnetic",
     "magnetDia": 15,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 10,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#1d4e6e",
     "accentColor": "#f97316",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "corner-frag-rack-10",
    "title": "90° corner magnetic frag rack, 10 plugs",
    "description": "Tucks into a 90° reef tank corner with 10 plugs and dual dry-side magnet blocks.",
    "values": {
     "shape": "corner",
     "rows": 4,
     "cols": 4,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 26,
     "deckThickness": 7,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "magnetic",
     "magnetDia": 15,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 10,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#0f766e",
     "accentColor": "#fbbf24",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "nano-frag-rack-6",
    "title": "Nano reef frag rack, 6 plugs",
    "description": "Compact 2 × 3 magnetic shelf for 5–20 gal nano tanks using 12 × 3 mm disc magnets.",
    "values": {
     "shape": "straight",
     "rows": 2,
     "cols": 3,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 24,
     "deckThickness": 6,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "magnetic",
     "magnetDia": 12,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 6,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#6d28d9",
     "accentColor": "#38bdf8",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "rim-hang-frag-rack",
    "title": "Rim-hang frag rack, no magnets",
    "description": "Hangs over 10 mm rimless glass on two flat-printed snap-in arms — zero magnets needed.",
    "values": {
     "shape": "straight",
     "rows": 2,
     "cols": 5,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 26,
     "deckThickness": 7,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "rim-hang",
     "magnetDia": 15,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 10,
     "sealWall": 1.6,
     "rimWidth": 10,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#0369a1",
     "accentColor": "#e2e8f0",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "large-frag-shelf-24",
    "title": "Large 24-plug coral propagation shelf",
    "description": "4 × 6 grow-out rack braced by three 20 × 4 mm magnet pairs for thick 12 mm glass.",
    "values": {
     "shape": "straight",
     "rows": 4,
     "cols": 6,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 25,
     "deckThickness": 8,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "magnetic",
     "magnetDia": 20,
     "magnetHeight": 4,
     "magnetPairs": 3,
     "glassThickness": 12,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#1e293b",
     "accentColor": "#22c55e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "deep-plug-lps-rack",
    "title": "Wide-spaced LPS & chalice frag rack",
    "description": "34 mm spacing and 13 mm wide sockets so fleshy acans, torches and chalices open fully.",
    "values": {
     "shape": "straight",
     "rows": 2,
     "cols": 4,
     "stagger": true,
     "plugDia": 13,
     "plugSpacing": 34,
     "deckThickness": 8,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "magnetic",
     "magnetDia": 18,
     "magnetHeight": 4,
     "magnetPairs": 2,
     "glassThickness": 12,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#9f1239",
     "accentColor": "#fde68a",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "framed-tank-rim-rack",
    "title": "Framed aquarium rim-hang rack (24 mm lip)",
    "description": "Wide 24 mm top hook built for plastic-rimmed aquariums with an 85 mm drop below the rim.",
    "values": {
     "shape": "straight",
     "rows": 2,
     "cols": 4,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 26,
     "deckThickness": 7,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "rim-hang",
     "magnetDia": 15,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 10,
     "sealWall": 1.6,
     "rimWidth": 24,
     "hangDrop": 85,
     "standHeight": 40,
     "clearance": 0.3,
     "baseColor": "#15803d",
     "accentColor": "#fed7aa",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "sump-standing-frag-stand",
    "title": "Freestanding sump frag stand",
    "description": "12-plug flat deck on four snap-in legs for grow-out in a sump or frag tank — no glass needed.",
    "values": {
     "shape": "straight",
     "rows": 3,
     "cols": 4,
     "stagger": true,
     "plugDia": 11,
     "plugSpacing": 26,
     "deckThickness": 7,
     "flowHoles": true,
     "cornerRadius": 6,
     "mount": "standing",
     "magnetDia": 15,
     "magnetHeight": 3,
     "magnetPairs": 2,
     "glassThickness": 10,
     "sealWall": 1.6,
     "rimWidth": 12,
     "hangDrop": 75,
     "standHeight": 45,
     "clearance": 0.3,
     "baseColor": "#b45309",
     "accentColor": "#cbd5e1",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   }
  ]
 },
 "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": {
  "shape": {
   "type": "string",
   "enum": [
    "straight",
    "corner"
   ],
   "x-enumTitles": {
    "straight": "Straight shelf (glass wall)",
    "corner": "90° corner shelf"
   },
   "title": "Rack shape",
   "description": "Straight mounts on a flat tank wall; corner tucks neatly into a 90° aquarium corner.",
   "x-group": "deck",
   "x-agentSafe": true,
   "x-label-lv": "Plaukta forma",
   "default": "straight",
   "x-resetOnPreset": true
  },
  "rows": {
   "type": "integer",
   "minimum": 1,
   "maximum": 5,
   "multipleOf": 1,
   "title": "Rows",
   "description": "Depth rows on a straight rack, or triangular ranks on a corner rack (3 ranks = 6 plugs, 4 = 10 plugs).",
   "x-group": "deck",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Rindas",
   "default": 3,
   "x-resetOnPreset": true
  },
  "cols": {
   "type": "integer",
   "minimum": 2,
   "maximum": 7,
   "multipleOf": 1,
   "title": "Columns",
   "description": "Number of frag holes along the length of a straight rack.",
   "x-group": "deck",
   "x-unit": "count",
   "x-visibleIf": {
    "shape": "straight"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kolonnas",
   "default": 4,
   "x-resetOnPreset": true
  },
  "stagger": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Staggered rows",
   "description": "Offset alternate rows by half a pitch for tighter packing and better reef flow between corals.",
   "x-group": "deck",
   "x-visibleIf": {
    "shape": "straight"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pamīšus rindas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "plugDia": {
   "type": "number",
   "minimum": 8,
   "maximum": 16,
   "x-step": 0.5,
   "title": "Frag plug stem diameter",
   "description": "Standard ceramic and ORA frag plug stems measure 9.5–10.5 mm (use 11 mm); thick stone or large LPS plugs take 12.5–14 mm.",
   "x-group": "deck",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Fraga kāta diametrs",
   "default": 11,
   "x-resetOnPreset": true
  },
  "plugSpacing": {
   "type": "number",
   "minimum": 20,
   "maximum": 42,
   "multipleOf": 1,
   "title": "Plug spacing (centre-to-centre)",
   "description": "22–26 mm fits zoanthids and small SPS frags; 32–38 mm gives fleshy LPS and chalices room to open.",
   "x-group": "deck",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp fragiem",
   "default": 26,
   "x-resetOnPreset": true
  },
  "deckThickness": {
   "type": "number",
   "minimum": 5,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Deck thickness",
   "description": "Thick enough to keep tall frag plug stems upright in strong flow. 7 mm works for most tanks.",
   "x-group": "deck",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Plaukta biezums",
   "default": 7,
   "x-resetOnPreset": true
  },
  "flowHoles": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Flow-through vents",
   "description": "Adds hexagonal flow cutouts between sockets so water circulates underneath and detritus does not build up.",
   "x-group": "deck",
   "x-agentSafe": true,
   "x-label-lv": "Caurplūdes atveres",
   "default": 1,
   "x-resetOnPreset": true
  },
  "cornerRadius": {
   "type": "number",
   "minimum": 2,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Corner radius",
   "description": "Rounds the front outer corners of the deck.",
   "x-group": "deck",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Stūru noapaļojums",
   "default": 6,
   "x-resetOnPreset": true
  },
  "mount": {
   "type": "string",
   "enum": [
    "magnetic",
    "rim-hang",
    "standing"
   ],
   "x-enumTitles": {
    "magnetic": "Magnetic (sealed wet pockets + dry bar)",
    "rim-hang": "Rim-hang (no magnets, snap-in arms)",
    "standing": "Freestanding sump stand (snap-in legs)"
   },
   "title": "Mount style",
   "description": "Magnetic lets you place the rack at any depth; rim-hang clips over rimless or framed tanks without magnets; standing sits on the floor of a sump or frag tank.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājuma veids",
   "default": "magnetic",
   "x-resetOnPreset": true
  },
  "magnetDia": {
   "type": "number",
   "minimum": 10,
   "maximum": 25,
   "multipleOf": 1,
   "title": "Magnet diameter",
   "description": "Round neodymium disc diameter. 12 mm suits nano racks up to 8 mm glass; 15–20 mm holds heavy shelves on 10–15 mm glass.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "core.magnetDiameter",
   "x-visibleIf": {
    "mount": "magnetic"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta diametrs",
   "default": 15,
   "x-resetOnPreset": true
  },
  "magnetHeight": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Magnet thickness",
   "description": "Thickness of each disc magnet (or stack height if doubling discs).",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "core.magnetHeight",
   "x-visibleIf": {
    "mount": "magnetic"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta biezums",
   "default": 3,
   "x-resetOnPreset": true
  },
  "magnetPairs": {
   "type": "integer",
   "minimum": 1,
   "maximum": 4,
   "multipleOf": 1,
   "title": "Magnet pairs",
   "description": "Number of wet/dry magnet pairs along the back bar. Use 2–3 pairs for medium and large racks.",
   "x-group": "mount",
   "x-unit": "count",
   "x-role": "insert.count",
   "x-visibleIf": {
    "mount": "magnetic",
    "shape": "straight"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnētu pāri",
   "default": 2,
   "x-resetOnPreset": true
  },
  "glassThickness": {
   "type": "number",
   "minimum": 4,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Tank glass thickness",
   "description": "Shown as the gap between the wet rack and outer dry magnet bar in the assembled view.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "core.glassThickness",
   "x-visibleIf": {
    "mount": "magnetic"
   },
   "x-agentSafe": true,
   "x-label-lv": "Akvārija stikla biezums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "sealWall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Magnet seal wall",
   "description": "Solid plastic thickness around the magnet pocket. 1.6 mm (4 walls at 0.4 mm nozzle) keeps magnets strong while resisting saltwater.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "mount": "magnetic"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta aizsargsiena",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "rimWidth": {
   "type": "number",
   "minimum": 4,
   "maximum": 32,
   "multipleOf": 1,
   "title": "Tank rim / glass thickness",
   "description": "Measure the top edge the hanger hooks over: 6–12 mm for rimless glass, 18–28 mm for plastic-framed tanks.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "rim-hang"
   },
   "x-agentSafe": true,
   "x-label-lv": "Akvārija malas / rāmja biezums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "hangDrop": {
   "type": "number",
   "minimum": 35,
   "maximum": 140,
   "multipleOf": 5,
   "title": "Drop below rim",
   "description": "Distance from the top of the tank rim down to the underside of the frag deck.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-role": "aquarium.waterlineDrop",
   "x-visibleIf": {
    "mount": "rim-hang"
   },
   "x-agentSafe": true,
   "x-label-lv": "Nolaidums zem malas",
   "default": 75,
   "x-resetOnPreset": true
  },
  "standHeight": {
   "type": "number",
   "minimum": 20,
   "maximum": 80,
   "multipleOf": 5,
   "title": "Stand leg height",
   "description": "Clear height from the sump or frag-tank floor to the underside of the rack deck.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "standing"
   },
   "x-agentSafe": true,
   "x-label-lv": "Statīva kāju augstums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Fit clearance",
   "description": "Extra room added to magnet pockets, rim hooks and snap-in slots. 0.3 mm suits a well-tuned PETG printer.",
   "x-group": "fit",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Piegulšanas sprauga",
   "default": 0.3,
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Rack colour",
   "description": "Colour of the main frag deck in the 3D preview and 3MF export.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Plaukta krāsa",
   "default": "#1d4e6e",
   "x-resetOnPreset": true
  },
  "accentColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Mount / hardware colour",
   "description": "Colour of the outer dry magnet bar, rim-hang arms or sump legs.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājumu krāsa",
   "default": "#f97316",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (reef-safe, recommended)",
    "asa": "ASA / ABS (reef-safe, rigid)",
    "pla": "PLA (short-term / dry test only)"
   },
   "title": "Filament",
   "description": "Use natural or black reef-safe PETG or ASA in saltwater; PLA softens and degrades underwater.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.16,
   "maximum": 0.28,
   "x-step": 0.04,
   "title": "Layer height",
   "description": "0.20 mm gives strong watertight walls around magnet pockets.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "print.layerHeight",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Wall loops",
   "description": "At least 4 walls for reef submersion and stiff rim hangers.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 10,
   "title": "Infill",
   "description": "40–100 % keeps the rack negatively buoyant (PETG at 100 % sinks cleanly).",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 40,
   "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)"
  }
 ]
}