{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/craft-bead-organizer/schema.json",
 "title": "Bead and sewing organizer — parameters",
 "description": "Generate a 3D-printable organizer for beads, buttons and sewing notions: round funnel wells or square compartments, needle slots and a lid that seals every compartment. 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": "craft-bead-organizer",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "size",
   "title": "Tray size"
  },
  {
   "id": "layout",
   "title": "Compartments"
  },
  {
   "id": "lids",
   "title": "Lid"
  },
  {
   "id": "look",
   "title": "Pattern and 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": "seed-bead-grid",
    "title": "Seed beads, 6 x 4 round wells",
    "description": "Twenty-four round wells with funnel bottoms for small seed beads, under a sliding lid that rests on the dividers.",
    "values": {
     "wellShape": "round",
     "columns": 6,
     "rows": 4,
     "slotRows": 0,
     "mainColor": "#c85a32",
     "accentColor": "#f4efe6"
    }
   },
   {
    "id": "large-beads-4x3",
    "title": "Large beads, 4 x 3",
    "description": "Twelve larger round wells for big beads, charms and findings.",
    "values": {
     "wellShape": "round",
     "columns": 4,
     "rows": 3,
     "slotRows": 0,
     "mainColor": "#2a7f76",
     "accentColor": "#f2c14e"
    }
   },
   {
    "id": "sewing-kit",
    "title": "Sewing kit",
    "description": "Two rows of square compartments for buttons, pins and bobbins plus two long slots for needles, scissors and a tape measure.",
    "values": {
     "wellShape": "square",
     "columns": 5,
     "rows": 2,
     "slotRows": 2,
     "mainColor": "#d4a024",
     "accentColor": "#ffffff"
    }
   },
   {
    "id": "button-box",
    "title": "Button box, 5 x 3",
    "description": "Fifteen square compartments with scooped floors for sorting buttons by size or colour.",
    "values": {
     "wellShape": "square",
     "columns": 5,
     "rows": 3,
     "slotRows": 0,
     "mainColor": "#3b5b8c",
     "accentColor": "#fbbf24"
    }
   },
   {
    "id": "floss-and-thread",
    "title": "Embroidery floss and thread",
    "description": "Four long slots for wound floss cards and thread, plus one row of small compartments.",
    "values": {
     "wellShape": "square",
     "columns": 6,
     "rows": 1,
     "slotRows": 4,
     "mainColor": "#5b7f4b",
     "accentColor": "#bae6fd"
    }
   },
   {
    "id": "open-work-tray",
    "title": "Open work tray",
    "description": "Open 4 x 2 tray without a lid for the beads you are using right now.",
    "values": {
     "wellShape": "round",
     "columns": 4,
     "rows": 2,
     "slotRows": 0,
     "lidType": "none",
     "mainColor": "#8c3b5c",
     "accentColor": "#fde68a"
    }
   },
   {
    "id": "two-colour-flower-tray",
    "title": "Two-colour bead tray with a flower lid",
    "description": "Round bead wells under a sliding lid with dots and a flower emblem, plus a dotted wall pattern; inlay parts for a multi-material printer.",
    "values": {
     "wellShape": "round",
     "lidType": "sliding",
     "lidPattern": "dots",
     "lidEmblem": "flower",
     "sidePattern": "dots",
     "colorMode": "multi-material",
     "mainColor": "#d97742",
     "accentColor": "#fed7aa"
    }
   }
  ]
 },
 "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"
  },
  "massUnits": {
   "type": "string",
   "title": "Weight shown in",
   "description": "Display only: grams or ounces (1 oz = 28.3495 g). Stored values, the API and exports are always grams.",
   "x-group": "view",
   "x-role": "core.displayMassUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "g",
    "oz"
   ],
   "x-enumTitles": {
    "g": "Grams",
    "oz": "Ounces"
   },
   "default": "g"
  }
 },
 "type": "object",
 "properties": {
  "trayLength": {
   "type": "number",
   "minimum": 40,
   "maximum": 400,
   "x-step": 0.5,
   "title": "Length",
   "description": "Outside length of the organizer.",
   "x-group": "size",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Garums",
   "default": 180
  },
  "trayWidth": {
   "type": "number",
   "minimum": 40,
   "maximum": 400,
   "x-step": 0.5,
   "title": "Width",
   "description": "Outside width of the organizer.",
   "x-group": "size",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Platums",
   "default": 120
  },
  "trayHeight": {
   "type": "number",
   "minimum": 10,
   "maximum": 120,
   "x-step": 0.5,
   "title": "Closed height",
   "description": "Height with the lid on; cap and magnet lids are taken off the tray body, sliding lids sit inside it.",
   "x-group": "size",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Aizvērts augstums",
   "default": 25
  },
  "wellShape": {
   "type": "string",
   "enum": [
    "round",
    "square"
   ],
   "x-enumTitles": {
    "round": "Round wells with a funnel bottom (beads)",
    "square": "Square compartments (buttons, findings)"
   },
   "title": "Compartment shape",
   "description": "Round wells gather small beads in the middle so they are easy to pick up or pour; square compartments use the space best.",
   "x-group": "layout",
   "x-agentSafe": true,
   "x-label-lv": "Nodalījuma forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "columns": {
   "type": "integer",
   "minimum": 1,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Columns",
   "description": "Compartments across the length of the tray.",
   "x-group": "layout",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Kolonnas",
   "default": 6,
   "x-resetOnPreset": true
  },
  "rows": {
   "type": "integer",
   "minimum": 0,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Rows",
   "description": "Rows of compartments; 0 leaves only long slots.",
   "x-group": "layout",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Rindas",
   "default": 4,
   "x-resetOnPreset": true
  },
  "slotRows": {
   "type": "integer",
   "minimum": 0,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Full-length slots",
   "description": "Rows that run the whole tray length, for needles, scissors, crochet hooks and tools.",
   "x-group": "layout",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Pilna garuma spraugas",
   "default": 0,
   "x-resetOnPreset": true
  },
  "scoop": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Scooped floors",
   "description": "Curved floor edges so a finger slides small beads and buttons out; prints without supports.",
   "x-group": "layout",
   "x-visibleIf": {
    "wellShape": "square"
   },
   "x-agentSafe": true,
   "x-label-lv": "Noapaļotas grīdas",
   "default": 1
  },
  "lidType": {
   "type": "string",
   "enum": [
    "none",
    "cap",
    "sliding",
    "magnet"
   ],
   "x-enumTitles": {
    "none": "No lid (open tray)",
    "cap": "Cap lid over the tray",
    "sliding": "Sliding lid in 45 degree grooves",
    "magnet": "Flat lid with magnet pockets"
   },
   "title": "Tray lid",
   "description": "Every lid rests directly on the divider tops, so beads cannot slip between compartments when the tray is carried or tipped.",
   "x-group": "lids",
   "x-agentSafe": true,
   "x-label-lv": "Paplātes vāks",
   "default": "sliding"
  },
  "lidThickness": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 5,
   "x-step": 0.1,
   "title": "Lid plate thickness",
   "description": "Thickness of the lid plate; cap and magnet lids add it to the tray height.",
   "x-group": "lids",
   "x-unit": "mm",
   "x-visibleIf": {
    "lidType": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka plāksnes biezums",
   "default": 2
  },
  "trayLidFit": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Lid fit gap (per side)",
   "description": "Play in the sliding grooves or under the cap skirt; 0.2 to 0.3 mm per side is a common start.",
   "x-group": "lids",
   "x-unit": "mm",
   "x-visibleIf": {
    "lidType": [
     "cap",
     "sliding"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka sprauga (katrā pusē)",
   "default": 0.25
  },
  "magnetDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Magnet diameter",
   "description": "Measured diameter of your disc magnets; pockets are 0.2 mm larger for glue. Magnets pull steel needles and pins, so they sit in the corners.",
   "x-group": "lids",
   "x-unit": "mm",
   "x-role": "core.magnetDiameter",
   "x-visibleIf": {
    "lidType": "magnet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta diametrs",
   "default": 6
  },
  "magnetHeight": {
   "type": "number",
   "minimum": 1,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Magnet height",
   "description": "Measured thickness of your magnets.",
   "x-group": "lids",
   "x-unit": "mm",
   "x-role": "core.magnetHeight",
   "x-visibleIf": {
    "lidType": "magnet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta augstums",
   "default": 2
  },
  "wallThickness": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 4,
   "x-step": 0.1,
   "title": "Wall thickness",
   "description": "Outer walls and dividers; 2 mm holds the sliding-lid grooves; 1.2 to 2 mm is usual.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienu biezums",
   "default": 2
  },
  "floorThickness": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Floor thickness",
   "description": "Solid floor of every tray.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Grīdas biezums",
   "default": 1.2
  },
  "nozzle": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Nozzle diameter",
   "description": "Walls thinner than two nozzle widths are raised automatically; also used for the weight estimate.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "print.nozzle",
   "x-agentSafe": true,
   "x-label-lv": "Sprauslas diametrs",
   "default": 0.4
  },
  "wallCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeters",
   "description": "Perimeters you will slice with; only changes the weight estimate.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Perimetri",
   "default": 3
  },
  "infill": {
   "type": "number",
   "minimum": 0,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Infill you will slice with; only changes the weight estimate.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 15
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA (recommended indoors)",
    "petg": "PETG (tougher lids and rails)"
   },
   "title": "Print material",
   "description": "PLA suits a craft drawer (heat deflection 55 C, so not in a hot car); PETG (68 C) is tougher for sliding lids that are opened often.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "pla"
  },
  "bedSize": {
   "type": "number",
   "minimum": 100,
   "maximum": 400,
   "multipleOf": 1,
   "title": "Printer bed size",
   "description": "Largest square your printer can print; bigger trays are split between compartments, never through one.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Printera galda izmērs",
   "default": 256
  },
  "splitParts": {
   "type": "integer",
   "minimum": 1,
   "maximum": 4,
   "multipleOf": 1,
   "title": "Max pieces per tray",
   "description": "How many pieces an over-bed tray may be split into; 1 never splits and only warns.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.splitParts",
   "x-agentSafe": true,
   "x-label-lv": "Maks. daļas vienai paplātei",
   "default": 4
  },
  "resolution": {
   "type": "integer",
   "minimum": 16,
   "maximum": 96,
   "multipleOf": 4,
   "title": "Curve resolution",
   "description": "Segments on scoops and holes; higher is smoother and a little larger to slice.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Līkņu izšķirtspēja",
   "default": 40
  },
  "fitTest": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Add a fit-test corner",
   "description": "Adds a small full-height corner of the first tray (and its lid) to print first, so you can check the fit with your real items in minutes.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Pievienot pielaides testa stūri",
   "default": 0
  },
  "fitTestSize": {
   "type": "number",
   "minimum": 30,
   "maximum": 120,
   "multipleOf": 5,
   "title": "Fit-test corner size",
   "description": "Width and depth of the test corner; make it wider than one compartment or card well to test that fit too.",
   "x-group": "print",
   "x-unit": "mm",
   "x-visibleIf": {
    "fitTest": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Testa stūra izmērs",
   "default": 60
  },
  "lidPattern": {
   "type": "string",
   "enum": [
    "none",
    "hex",
    "grid",
    "diamond",
    "dots",
    "lines",
    "waves"
   ],
   "x-enumTitles": {
    "none": "None (plain)",
    "hex": "Honeycomb",
    "grid": "Square grid",
    "diamond": "Diamond lattice",
    "dots": "Raised dots",
    "lines": "Diagonal lines",
    "waves": "Waves"
   },
   "title": "Lid pattern",
   "description": "Engraved into the outside of every lid, which prints face-down on the bed for a clean finish.",
   "x-group": "look",
   "x-visibleIf": {
    "lidType": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka raksts",
   "default": "none"
  },
  "lidEmblem": {
   "type": "string",
   "enum": [
    "none",
    "flower",
    "star",
    "heart",
    "circle",
    "diamond"
   ],
   "x-enumTitles": {
    "none": "None",
    "flower": "Flower",
    "star": "Star",
    "heart": "Heart",
    "circle": "Ring",
    "diamond": "Diamond"
   },
   "title": "Lid emblem",
   "description": "A simple symbol in the middle of each lid, with a plain ring around it.",
   "x-group": "look",
   "x-visibleIf": {
    "lidType": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka emblēma",
   "default": "none"
  },
  "emblemSize": {
   "type": "number",
   "minimum": 10,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Emblem height",
   "description": "Shrinks automatically on a small lid.",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "lidEmblem": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Emblēmas augstums",
   "default": 24
  },
  "sidePattern": {
   "type": "string",
   "enum": [
    "none",
    "hex",
    "grid",
    "diamond",
    "dots",
    "lines",
    "waves"
   ],
   "x-enumTitles": {
    "none": "None (plain)",
    "hex": "Honeycomb",
    "grid": "Square grid",
    "diamond": "Diamond lattice",
    "dots": "Raised dots",
    "lines": "Diagonal lines",
    "waves": "Waves"
   },
   "title": "Wall pattern",
   "description": "Engraved into the four outer walls of every box, below a sliding-lid groove.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Sienu raksts",
   "default": "none"
  },
  "patternCell": {
   "type": "number",
   "minimum": 3,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Pattern size",
   "description": "Pitch of the cells, dots or lines; big faces get a coarser pitch to keep the file small.",
   "x-group": "look",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Raksta izmērs",
   "default": 6
  },
  "patternLine": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Pattern line width",
   "description": "At least two nozzle widths, so every line prints cleanly.",
   "x-group": "look",
   "x-unit": "mm",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Raksta līnijas platums",
   "default": 1.2
  },
  "patternDepth": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 1.2,
   "x-step": 0.1,
   "title": "Pattern depth",
   "description": "0.4 to 0.6 mm (two or three layers) reads well and keeps the plate strong.",
   "x-group": "look",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Raksta dziļums",
   "default": 0.6
  },
  "patternMargin": {
   "type": "number",
   "minimum": 2,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Plain border",
   "description": "Unpatterned border around each face.",
   "x-group": "look",
   "x-unit": "mm",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Gluda mala",
   "default": 4
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "layer-change",
    "multi-material"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "layer-change": "Two colours, one nozzle (filament change)",
    "multi-material": "Two colours, multi-material printer (inlay parts)"
   },
   "title": "Colours",
   "description": "One nozzle: the lid face prints in the accent colour, one filament change fills the pattern. Multi-material: pattern, emblem and band are inlay parts with filament 2 already set.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "single"
  },
  "accentBand": {
   "type": "number",
   "minimum": 0,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Rim band in accent colour",
   "description": "Height of a coloured band at the top of every box; 0 for none.",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "colorMode": {
     "ne": "single"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas josla akcenta krāsā",
   "default": 0
  },
  "mainColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Main colour",
   "description": "Colour of the boxes; also written into the slicer colour-change marker.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Galvenā krāsa",
   "default": "#1f4e8c"
  },
  "accentColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Accent colour",
   "description": "Lid face, inlays and rim band; pick a strong contrast to the main colour.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": {
     "ne": "single"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Akcenta krāsa",
   "default": "#f2c14e"
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.08,
   "maximum": 0.4,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "The layer height you will slice with; the colour change is placed on this layer grid.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "print.layerHeight",
   "x-visibleIf": {
    "colorMode": "layer-change"
   },
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2
  },
  "firstLayerHeight": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.4,
   "x-step": 0.02,
   "title": "First layer height",
   "description": "First layer height in your slicer profile.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "print.firstLayerHeight",
   "x-visibleIf": {
    "colorMode": "layer-change"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pirmā slāņa augstums",
   "default": 0.2
  }
 },
 "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)"
  }
 ]
}