{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/name-keychain/schema.json",
 "title": "Name keychain — parameters",
 "description": "Make a personalised name keychain, bag tag, pet tag or shopping-cart coin: your text, 4 fonts, two colours, ready-to-print 3MF in seconds. 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": "name-keychain",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "text",
   "title": "Text"
  },
  {
   "id": "shape",
   "title": "Shape"
  },
  {
   "id": "ring",
   "title": "Key ring"
  },
  {
   "id": "colour",
   "title": "Texture & 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": "name-keychain",
    "title": "Name keychain",
    "description": "Bold two-colour name that follows the letters, loop on the left.",
    "values": {}
   },
   {
    "id": "script-name",
    "title": "Script name keychain",
    "description": "Joined handwriting letters, a classic gift.",
    "values": {
     "font": "pacifico",
     "letterHeight": 11,
     "baseColor": "#f2a7c3",
     "textColor": "#ffffff",
     "margin": 2.5
    }
   },
   {
    "id": "luggage-tag",
    "title": "Luggage tag with phone number",
    "description": "Two lines on a sturdy tag with the hole inside; PETG for travel.",
    "values": {
     "line2": "+371 2000 0000",
     "font": "barlow",
     "letterHeight": 8,
     "shape": "tag",
     "baseThickness": 3,
     "holeDiameter": 6,
     "printMaterial": "petg",
     "baseColor": "#1f3b57",
     "textColor": "#ffd24a"
    }
   },
   {
    "id": "school-bag-tag",
    "title": "Kids' school-bag tag",
    "description": "Big rounded letters and a class line, easy to spot.",
    "values": {
     "line2": "2.B",
     "letterHeight": 14,
     "shape": "rounded",
     "baseColor": "#ffcc33",
     "textColor": "#1f3b57",
     "ringPosition": "top"
    }
   },
   {
    "id": "pet-tag",
    "title": "Pet name tag (bone)",
    "description": "Bone shape with the pet's name and your phone; letters inlaid so they do not wear off.",
    "values": {
     "line2": "2000 0000",
     "letterHeight": 7,
     "shape": "bone",
     "textStyle": "inlay",
     "textDepth": 0.8,
     "baseThickness": 3,
     "ringPosition": "top",
     "holeDiameter": 4,
     "printMaterial": "petg",
     "baseColor": "#d94a3d",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "cart-coin",
    "title": "Shopping-cart coin with name",
    "description": "€1-size coin (23.25 mm, 2.2 mm thick) with the name inlaid flush and a loop on top.",
    "values": {
     "shape": "coin",
     "textStyle": "inlay",
     "textDepth": 0.6,
     "baseThickness": 2.2,
     "ringPosition": "top",
     "holeDiameter": 4,
     "ringWall": 2,
     "baseColor": "#2e7d4f",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "christmas-gift-tag",
    "title": "Christmas gift tag",
    "description": "Name and a greeting on a gift tag, ribbon hole on the left.",
    "values": {
     "line2": "Merry Christmas",
     "font": "varela",
     "letterHeight": 9,
     "shape": "tag",
     "holeDiameter": 5,
     "baseColor": "#b3202a",
     "textColor": "#ffe08a"
    }
   }
  ]
 },
 "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": {
  "line1": {
   "type": "string",
   "maxLength": 16,
   "title": "Name",
   "description": "Up to 16 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "default": "Anna"
  },
  "line2": {
   "type": "string",
   "maxLength": 16,
   "title": "Second line (optional)",
   "description": "Phone number, class, pet's owner …",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Otrā rinda (nav obligāta)",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long names (Barlow Condensed)"
   },
   "title": "Font",
   "description": "All fonts are free (SIL Open Font License).",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 5,
   "maximum": 25,
   "x-step": 0.5,
   "title": "Letter height",
   "description": "Height of a capital letter. 8 mm and up prints clean letters on a 0.4 mm nozzle.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "letterSpacing": {
   "type": "number",
   "minimum": -0.1,
   "maximum": 0.4,
   "x-step": 0.01,
   "title": "Letter spacing",
   "description": "Extra space between letters, as a share of the letter height.",
   "x-group": "text",
   "x-unit": "ratio",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.02,
   "x-resetOnPreset": true
  },
  "textStyle": {
   "type": "string",
   "enum": [
    "raised",
    "inlay",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised letters",
    "inlay": "Inlaid, flush (two colours)",
    "engraved": "Engraved (one colour, paint them)"
   },
   "title": "Letter style",
   "description": "Inlaid letters stay flush, good for coins and tags that rub in a pocket.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "textDepth": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Letter depth",
   "description": "How far letters stand out (or go in). Multiples of the layer height print cleanest.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu biezums",
   "default": 1.2,
   "x-resetOnPreset": true
  },
  "shape": {
   "type": "string",
   "enum": [
    "outline",
    "rounded",
    "tag",
    "bone",
    "coin"
   ],
   "x-enumTitles": {
    "outline": "Follows the letters",
    "rounded": "Rounded rectangle",
    "tag": "Bag tag (hole inside)",
    "bone": "Bone (pet tag)",
    "coin": "Shopping-cart coin"
   },
   "title": "Shape",
   "description": "The base under the letters.",
   "x-group": "shape",
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "outline",
   "x-resetOnPreset": true
  },
  "margin": {
   "type": "number",
   "minimum": 1,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Border round the text",
   "description": "Width of the base around the letters.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "shape": {
     "ne": "coin"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Mala ap tekstu",
   "default": 3,
   "x-resetOnPreset": true
  },
  "baseThickness": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Base thickness",
   "description": "2–3 mm is stiff enough for a keychain. Cart coins are about 2.3 mm.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes biezums",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "coinDiameter": {
   "type": "number",
   "minimum": 18,
   "maximum": 30,
   "x-step": 0.05,
   "title": "Coin diameter",
   "description": "€1 is 23.25 mm, 50 cent 24.25 mm, £1 23.43 mm. Check your cart lock.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "shape": "coin"
   },
   "x-agentSafe": true,
   "x-label-lv": "Monētas diametrs",
   "default": 23.25,
   "x-resetOnPreset": true
  },
  "ringPosition": {
   "type": "string",
   "enum": [
    "left",
    "right",
    "top",
    "none"
   ],
   "x-enumTitles": {
    "left": "Left",
    "right": "Right",
    "top": "Top",
    "none": "No hole"
   },
   "title": "Ring position",
   "description": "Where the key-ring loop sits.",
   "x-group": "ring",
   "x-agentSafe": true,
   "x-label-lv": "Riņķa vieta",
   "default": "left",
   "x-resetOnPreset": true
  },
  "holeDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Hole diameter",
   "description": "Split rings need about 4 mm; ball chains 3 mm; lanyards 6 mm.",
   "x-group": "ring",
   "x-unit": "mm",
   "x-visibleIf": {
    "ringPosition": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Cauruma diametrs",
   "default": 4.5,
   "x-resetOnPreset": true
  },
  "ringWall": {
   "type": "number",
   "minimum": 2,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Loop wall",
   "description": "Material round the hole; 2 mm or more does not snap.",
   "x-group": "ring",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "ringPosition": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Cilpas siena",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "baseTexture": {
   "type": "string",
   "enum": [
    "none",
    "waves",
    "diamond",
    "hex",
    "wood",
    "hammered",
    "basketweave",
    "folk",
    "dots"
   ],
   "x-enumTitles": {
    "none": "Smooth (none)",
    "waves": "Waves",
    "diamond": "Diamond",
    "hex": "Hexagon",
    "wood": "Wood grain",
    "hammered": "Hammered",
    "basketweave": "Basketweave",
    "folk": "Folk diamond",
    "dots": "Dots"
   },
   "title": "Base surface texture",
   "description": "Carved pattern on the top face around the letters and key-ring hole. Prints flat without supports.",
   "x-group": "colour",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes virsmas tekstūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Texture depth",
   "description": "Carved depth into the top face (0.3–0.6 mm).",
   "x-group": "colour",
   "x-unit": "mm",
   "x-visibleIf": {
    "baseTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 4,
   "maximum": 14,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Pattern repeat pitch in millimetres.",
   "x-group": "colour",
   "x-unit": "mm",
   "x-visibleIf": {
    "baseTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras mērogs",
   "default": 6,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "multi",
    "swap",
    "single"
   ],
   "x-enumTitles": {
    "multi": "Two colours (AMS / multi-material)",
    "swap": "One filament change (any printer)",
    "single": "One colour"
   },
   "title": "Colour mode",
   "description": "A filament change at the top of the base makes raised letters a second colour on any printer.",
   "x-group": "colour",
   "x-agentSafe": true,
   "x-label-lv": "Krāsu režīms",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Base colour",
   "description": "Preview and the 3MF filament colour of the base.",
   "x-group": "colour",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes krāsa",
   "default": "#2f6fde",
   "x-resetOnPreset": true
  },
  "textColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "Pick a strong contrast to the base.",
   "x-group": "colour",
   "x-visibleIf": {
    "colorMode": [
     "multi",
     "swap"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#ffffff",
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG (tougher, for bags and pets)"
   },
   "title": "Print material",
   "description": "Used for the weight estimate.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "curveDetail": {
   "type": "integer",
   "minimum": 2,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Curve detail",
   "description": "Segments per letter curve; higher is smoother and larger.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Liekumu detalizācija",
   "default": 6
  }
 },
 "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": "silk-gold-pla",
   "title": "Silk Gold PLA Filament 1.75 mm (1 kg)",
   "why": "Metallic festive sheen for tree ornaments, stars and snowflakes.",
   "url": "https://paramlet.com/go/silk-gold-pla?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}