{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/measuring-cup-spoon/schema.json",
 "title": "Measuring cup and spoon — parameters",
 "description": "Measuring cups and spoons for an exact amount: type millilitres, grams of coffee, flour or protein, or spoons and cups, and print a scoop that holds it. 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": "measuring-cup-spoon",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "bowl",
   "title": "Measure"
  },
  {
   "id": "handle",
   "title": "Handle and label"
  },
  {
   "id": "set",
   "title": "Set"
  },
  {
   "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": "coffee-scoop-10g",
    "title": "Coffee scoop, 10 g",
    "description": "A 10 g scoop for ground coffee, about 31 ml, with a 50 mm handle and its measure raised on it.",
    "values": {
     "set": "single",
     "amount": 10,
     "unit": "g",
     "material": "coffee",
     "density": 0.5,
     "shape": "round",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 50,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#0e7490",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "coffee-scoop-7g",
    "title": "Coffee scoop, 7 g",
    "description": "For a single cup: 7 g of ground coffee, a shorter handle, in PLA for a dry scoop.",
    "values": {
     "set": "single",
     "amount": 7,
     "unit": "g",
     "material": "coffee",
     "density": 0.5,
     "shape": "round",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 40,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#b45309",
     "material3d": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "baking-spoon-set",
    "title": "Baking spoon set, ¼ tsp to 1 tbsp",
    "description": "Five measuring spoons from a quarter teaspoon to a tablespoon, each labelled, printed side by side.",
    "values": {
     "set": "spoons",
     "amount": 10,
     "unit": "g",
     "material": "coffee",
     "density": 0.5,
     "shape": "round",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 45,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#a21caf",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "us-cup-set",
    "title": "Measuring cup set, ¼ to 1 cup",
    "description": "Four square measuring cups from a quarter cup to a cup in US measures, 2 mm walls that wash well.",
    "values": {
     "set": "cups",
     "amount": 10,
     "unit": "g",
     "material": "coffee",
     "density": 0.5,
     "shape": "square",
     "depth": 60,
     "wall": 2,
     "handleLength": 60,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#1d4ed8",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "protein-scoop-30g",
    "title": "Protein powder scoop, 30 g",
    "description": "A 30 g scoop for protein powder, about 67 ml, with a long handle that reaches the bottom of the tub.",
    "values": {
     "set": "single",
     "amount": 30,
     "unit": "g",
     "material": "protein",
     "density": 0.5,
     "shape": "round",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 90,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#15803d",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "pet-food-scoop-100g",
    "title": "Pet food scoop, 100 g",
    "description": "A square 100 g scoop for dry kibble, about 180 ml, with a 100 mm handle.",
    "values": {
     "set": "single",
     "amount": 100,
     "unit": "g",
     "material": "kibble",
     "density": 0.5,
     "shape": "square",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 100,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#b91c1c",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "detergent-scoop-50ml",
    "title": "Detergent scoop, 50 ml",
    "description": "An oval 50 ml scoop for detergent or fertiliser with a 150 mm handle, in PETG that stands washing.",
    "values": {
     "set": "single",
     "amount": 50,
     "unit": "ml",
     "material": "coffee",
     "density": 0.5,
     "shape": "oval",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 150,
     "handleAngle": 55,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#374151",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "flour-scoop-125g",
    "title": "Flour scoop, 125 g",
    "description": "A 125 g scoop for flour, about 227 ml, a cup by another measure: no handle, its measure engraved underneath.",
    "values": {
     "set": "single",
     "amount": 125,
     "unit": "g",
     "material": "flour",
     "density": 0.5,
     "shape": "round",
     "depth": 70,
     "wall": 1.6,
     "handleLength": 0,
     "handleAngle": 50,
     "hangHole": true,
     "label": "",
     "font": "barlow",
     "baseColor": "#3f6212",
     "material3d": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   }
  ]
 },
 "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": {
  "set": {
   "type": "string",
   "enum": [
    "single",
    "spoons",
    "cups"
   ],
   "x-enumTitles": {
    "single": "One scoop",
    "spoons": "Spoon set: ¼ tsp to 1 tbsp",
    "cups": "Cup set: ¼ to 1 cup"
   },
   "title": "Set",
   "description": "One scoop of the measure below, or a set of five spoons or four cups, each labelled, printed side by side.",
   "x-group": "set",
   "x-agentSafe": true,
   "x-label-lv": "Komplekts",
   "default": "single",
   "x-resetOnPreset": true
  },
  "amount": {
   "type": "number",
   "minimum": 0.5,
   "maximum": 500,
   "x-step": 0.5,
   "title": "Amount",
   "description": "How much one level scoop holds, in the unit below: millilitres, grams of the material, or spoons and cups.",
   "x-group": "bowl",
   "x-unit": "none",
   "x-visibleIf": {
    "set": [
     "single"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Daudzums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "unit": {
   "type": "string",
   "enum": [
    "ml",
    "g",
    "tsp",
    "tbsp",
    "cup"
   ],
   "x-enumTitles": {
    "ml": "ml",
    "g": "g of a material",
    "tsp": "teaspoons (US)",
    "tbsp": "tablespoons (US)",
    "cup": "cups (US)"
   },
   "title": "Unit",
   "description": "Grams need the material's bulk density, picked below. A US teaspoon is 4.93 ml, a tablespoon 14.79 ml, a cup 236.6 ml.",
   "x-group": "bowl",
   "x-visibleIf": {
    "set": [
     "single"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vienība",
   "default": "g",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "coffee",
    "sugar",
    "flour",
    "protein",
    "cocoa",
    "kibble",
    "salt",
    "other"
   ],
   "x-enumTitles": {
    "coffee": "Ground coffee",
    "sugar": "Sugar",
    "flour": "Flour",
    "protein": "Protein powder",
    "cocoa": "Cocoa powder",
    "kibble": "Pet food kibble",
    "salt": "Salt",
    "other": "Other: a density of your own"
   },
   "title": "Material",
   "description": "What is measured by grams. The density is how much a level millilitre of it weighs, settled in the scoop.",
   "x-group": "bowl",
   "x-visibleIf": {
    "set": [
     "single"
    ],
    "unit": [
     "g"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Materiāls",
   "default": "coffee",
   "x-resetOnPreset": true
  },
  "density": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 2,
   "x-step": 0.01,
   "title": "Bulk density",
   "description": "Grams in a level millilitre of your material. Weigh a known volume to find it: a scoop holds less of a light, fluffy powder.",
   "x-group": "bowl",
   "x-unit": "gcm3",
   "x-visibleIf": {
    "set": [
     "single"
    ],
    "unit": [
     "g"
    ],
    "material": [
     "other"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Blīvums",
   "default": 0.5,
   "x-resetOnPreset": true
  },
  "shape": {
   "type": "string",
   "enum": [
    "round",
    "oval",
    "square"
   ],
   "x-enumTitles": {
    "round": "Round",
    "oval": "Oval",
    "square": "Square"
   },
   "title": "Bowl shape",
   "description": "A round, an oval (one and a half as long) or a square bowl with rounded corners. All hold the same measure.",
   "x-group": "bowl",
   "x-agentSafe": true,
   "x-label-lv": "Bļodiņa forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 50,
   "maximum": 120,
   "multipleOf": 5,
   "title": "Bowl depth",
   "description": "As a share of its width. 70 % a scoop; 60 % a cup measure; 100 % a tall narrow bowl for a deep drawer.",
   "x-group": "bowl",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Bļodiņas dziļums",
   "default": 70,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Wall thickness",
   "description": "Of the bowl. 1.6 mm with four perimeters prints solid; 2 mm for a cup that is washed daily.",
   "x-group": "bowl",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "handleLength": {
   "type": "number",
   "minimum": 0,
   "maximum": 150,
   "multipleOf": 5,
   "title": "Handle length",
   "description": "Beyond the bowl. 0: no handle, a scoop to hold by the bowl. The handle rises at the angle below, so that it prints without support.",
   "x-group": "handle",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Roktuņa garums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "handleAngle": {
   "type": "number",
   "minimum": 30,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Handle angle",
   "description": "Up from the rim. 45° or steeper prints clean; under it the underside sags, and the page says so.",
   "x-group": "handle",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Roktuņa leņķis",
   "default": 50,
   "x-resetOnPreset": true
  },
  "hangHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Hanging hole",
   "description": "A 5 mm hole through the handle's end. Not on a handle under 25 mm.",
   "x-group": "handle",
   "x-agentSafe": true,
   "x-label-lv": "Pakarināšanas caurums",
   "default": 1,
   "x-resetOnPreset": true
  },
  "label": {
   "type": "string",
   "maxLength": 12,
   "title": "Label",
   "description": "Raised on the handle, up to 12 characters. Empty: the amount and its unit.",
   "x-group": "handle",
   "x-agentSafe": true,
   "x-label-lv": "Uzraksts",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "barlow",
    "varela",
    "pacifico"
   ],
   "x-enumTitles": {
    "lilita": "Lilita: rounded",
    "barlow": "Barlow: plain",
    "varela": "Varela: wide",
    "pacifico": "Pacifico: script"
   },
   "title": "Lettering",
   "description": "The label's lettering.",
   "x-group": "handle",
   "x-agentSafe": true,
   "x-label-lv": "Šrifts",
   "default": "barlow",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Scoop colour",
   "description": "The scoop, handle and label.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Karotes krāsa",
   "default": "#0e7490",
   "x-resetOnPreset": true
  },
  "material3d": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "For dry goods. PETG washes; PLA is fine for a coffee scoop wiped clean. See the safety notes.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.12,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.2 mm; 0.16 mm for the lettering to come out crisp.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "The bowl prints all walls: four lines make 1.6 mm solid.",
   "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": 0,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Only the handle's root has room for infill.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20,
   "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)"
  }
 ]
}