{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/christmas-tree-topper/schema.json",
 "title": "Christmas Tree Topper — parameters",
 "description": "Make a 3D printed Christmas tree topper star with a sleeve sized to your tree tip: faceted, filigree, light-up or 3D star. Free STL and 3MF. 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": "christmas-tree-topper",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "star",
   "title": "Star"
  },
  {
   "id": "sleeve",
   "title": "Fit on the tree"
  },
  {
   "id": "light",
   "title": "Lights"
  },
  {
   "id": "look",
   "title": "Colours"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "classic-star-topper",
    "title": "Classic 5-point star tree topper 150 mm",
    "description": "Faceted 3D star with a flat back and a spring-finger sleeve for a 15–25 mm tree tip.",
    "values": {
     "style": "faceted",
     "points": 5,
     "diameter": 150,
     "innerRatio": 0.45,
     "reliefHeight": 16,
     "tipMin": 15,
     "tipMax": 25,
     "grip": "fingers",
     "mainColor": "#b91c1c",
     "accentColor": "#f4efe6"
    }
   },
   {
    "id": "two-piece-3d-star",
    "title": "3D star topper from two slotted halves",
    "description": "Two flat stars slot together at right angles into a star that looks good from every side.",
    "values": {
     "style": "cross3d",
     "points": 5,
     "diameter": 140,
     "innerRatio": 0.42,
     "thickness": 3.2,
     "mainColor": "#15803d",
     "accentColor": "#f2c14e"
    }
   },
   {
    "id": "filigree-star-fairy-lights",
    "title": "Filigree star topper",
    "description": "Open outline star with an inner star and spokes; wrap the top fairy lights through it.",
    "values": {
     "style": "outline",
     "points": 8,
     "diameter": 160,
     "innerRatio": 0.5,
     "borderWidth": 4,
     "thickness": 3.6,
     "mainColor": "#d4a017",
     "accentColor": "#ffffff"
    }
   },
   {
    "id": "light-up-led-tea-light-star",
    "title": "Light-up star topper for an LED tea light",
    "description": "A glowing star with a pocket for a Ø38 mm LED tea light; print the front in white or natural PLA.",
    "values": {
     "style": "lantern",
     "points": 5,
     "diameter": 180,
     "innerRatio": 0.52,
     "ledDiameter": 39,
     "lanternDepth": 22,
     "frontThickness": 1.2,
     "mainColor": "#1d4ed8",
     "accentColor": "#fbbf24"
    }
   },
   {
    "id": "fairy-light-star",
    "title": "Star topper with fairy-light holes",
    "description": "Flat two-colour star with a hole in every point for push-in fairy-light bulbs.",
    "values": {
     "style": "flat",
     "points": 6,
     "diameter": 160,
     "innerRatio": 0.5,
     "thickness": 4,
     "colorMode": "two",
     "lightHoles": true,
     "lightHoleDiameter": 6.5,
     "mainColor": "#7e22ce",
     "accentColor": "#bae6fd"
    }
   },
   {
    "id": "small-tabletop-tree-star",
    "title": "Small tabletop tree star 80 mm",
    "description": "An 80 mm star with a plain cone for the 6–12 mm tip of a small artificial tree.",
    "values": {
     "style": "faceted",
     "points": 5,
     "diameter": 80,
     "innerRatio": 0.45,
     "reliefHeight": 9,
     "thickness": 3,
     "tipMin": 8,
     "tipMax": 12,
     "sleeveLength": 45,
     "grip": "cone",
     "mainColor": "#0f766e",
     "accentColor": "#fde68a"
    }
   }
  ]
 },
 "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": {
  "style": {
   "type": "string",
   "enum": [
    "faceted",
    "flat",
    "outline",
    "lantern",
    "cross3d"
   ],
   "x-enumTitles": {
    "faceted": "Faceted 3D star (flat back)",
    "flat": "Flat star",
    "outline": "Filigree outline star",
    "lantern": "Light-up star for an LED tea light",
    "cross3d": "3D star from two slotted halves"
   },
   "title": "Style",
   "description": "Every style prints flat without supports; the 3D cross star is two flat pieces that slot together.",
   "x-group": "star",
   "x-agentSafe": true,
   "x-label-lv": "Stils",
   "default": "faceted",
   "x-resetOnPreset": true
  },
  "points": {
   "type": "integer",
   "minimum": 4,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Points",
   "description": "Number of star points.",
   "x-group": "star",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Stari",
   "default": 5,
   "x-resetOnPreset": true
  },
  "diameter": {
   "type": "number",
   "minimum": 80,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Star size (tip to tip)",
   "description": "Outer diameter across the points. 120–180 mm suits a 1.8–2.2 m tree.",
   "x-group": "star",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Zvaigznes izmērs (no gala līdz galam)",
   "default": 150,
   "x-resetOnPreset": true
  },
  "innerRatio": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.7,
   "x-step": 0.01,
   "title": "Point depth (inner ratio)",
   "description": "Smaller makes slimmer, sharper points; larger makes a chunkier star.",
   "x-group": "star",
   "x-unit": "ratio",
   "x-agentSafe": true,
   "x-label-lv": "Staru dziļums (iekšējā attiecība)",
   "default": 0.45,
   "x-resetOnPreset": true
  },
  "tipRound": {
   "type": "number",
   "minimum": 0,
   "maximum": 4,
   "x-step": 0.5,
   "title": "Tip rounding",
   "description": "Rounds the point tips so they are not sharp.",
   "x-group": "star",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Galu noapaļojums",
   "default": 1,
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.2,
   "title": "Edge thickness",
   "description": "Thickness of the flat star and of the edges of the faceted star. Also the thickness of the tab that goes into the sleeve.",
   "x-group": "star",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Malas biezums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "reliefHeight": {
   "type": "number",
   "minimum": 4,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Facet height",
   "description": "Height of the centre of the faceted star above its flat back.",
   "x-group": "star",
   "x-unit": "mm",
   "x-visibleIf": {
    "style": "faceted"
   },
   "x-agentSafe": true,
   "x-label-lv": "Šķautņu augstums",
   "default": 16,
   "x-resetOnPreset": true
  },
  "borderWidth": {
   "type": "number",
   "minimum": 2,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Border width",
   "description": "Width of the outline frame (filigree) or of the raised border (flat star).",
   "x-group": "star",
   "x-unit": "mm",
   "x-visibleIf": {
    "style": [
     "flat",
     "outline"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Apmales platums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "tipMin": {
   "type": "number",
   "minimum": 8,
   "maximum": 35,
   "x-step": 0.5,
   "title": "Tree tip, thinnest",
   "description": "Measure the top shoot about 8 cm below the tip. The sleeve grips anything between the thinnest and thickest value.",
   "x-group": "sleeve",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Egles galotne, tievākā vieta",
   "default": 15,
   "x-resetOnPreset": true
  },
  "tipMax": {
   "type": "number",
   "minimum": 10,
   "maximum": 40,
   "x-step": 0.5,
   "title": "Tree tip, thickest",
   "description": "Diameter of the shoot where the sleeve ends (lowest point).",
   "x-group": "sleeve",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Egles galotne, resnākā vieta",
   "default": 25,
   "x-resetOnPreset": true
  },
  "sleeveLength": {
   "type": "number",
   "minimum": 40,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Sleeve length",
   "description": "Longer sleeves hold heavier stars upright.",
   "x-group": "sleeve",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Uzmavas garums",
   "default": 70,
   "x-resetOnPreset": true
  },
  "grip": {
   "type": "string",
   "enum": [
    "fingers",
    "cone"
   ],
   "x-enumTitles": {
    "fingers": "Spring fingers (grips real branches)",
    "cone": "Plain cone (artificial trees)"
   },
   "title": "Grip",
   "description": "Spring fingers flex around uneven real tips; a plain cone suits round artificial-tree poles.",
   "x-group": "sleeve",
   "x-agentSafe": true,
   "x-label-lv": "Satvēriens",
   "default": "fingers",
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Fit clearance",
   "description": "Gap added to the tab slot and to the tip size so parts slide together.",
   "x-group": "sleeve",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.3
  },
  "sleeveWall": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Sleeve wall",
   "description": "Thicker walls are stiffer; thinner spring fingers flex more.",
   "x-group": "sleeve",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Uzmavas siena",
   "default": 2.4
  },
  "lightHoles": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fairy-light holes",
   "description": "One hole in each point and one in the centre for push-in fairy-light bulbs.",
   "x-group": "light",
   "x-visibleIf": {
    "style": [
     "faceted",
     "flat"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurumi virtenes spuldzītēm",
   "default": 0,
   "x-resetOnPreset": true
  },
  "lightHoleDiameter": {
   "type": "number",
   "minimum": 4,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Bulb hole diameter",
   "description": "Measure your bulbs; most mini fairy lights are 5–7 mm.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightHoles": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Spuldzītes cauruma diametrs",
   "default": 6.5,
   "x-resetOnPreset": true
  },
  "ledDiameter": {
   "type": "number",
   "minimum": 30,
   "maximum": 60,
   "x-step": 0.5,
   "title": "LED tea-light pocket",
   "description": "39 mm fits a standard 38 mm LED tea light.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "style": "lantern"
   },
   "x-agentSafe": true,
   "x-label-lv": "LED tējas sveces kabata",
   "default": 39,
   "x-resetOnPreset": true
  },
  "lanternDepth": {
   "type": "number",
   "minimum": 15,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Lantern depth",
   "description": "Total depth of the light-up star; the tea light sits in a pocket from the back.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "style": "lantern"
   },
   "x-agentSafe": true,
   "x-label-lv": "Laternas dziļums",
   "default": 22,
   "x-resetOnPreset": true
  },
  "frontThickness": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 2,
   "x-step": 0.1,
   "title": "Glowing front",
   "description": "Thin enough to glow in white or natural PLA; 1–1.4 mm works best.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "style": "lantern"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spīdošā priekšpuse",
   "default": 1.2,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "two"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "two": "Two colours"
   },
   "title": "Colours",
   "description": "Two colours: the border (flat) or the inner star (filigree) prints in a second filament.",
   "x-group": "look",
   "x-visibleIf": {
    "style": [
     "flat",
     "outline"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "single",
   "x-resetOnPreset": true
  },
  "mainColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Main colour",
   "description": "Preview and 3MF colour of the star.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Galvenā krāsa",
   "default": "#d4a72c"
  },
  "accentColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Second colour",
   "description": "Colour of the second filament.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "two"
   },
   "x-agentSafe": true,
   "x-label-lv": "Otrā krāsa",
   "default": "#c0392b"
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG"
   },
   "title": "Print material",
   "description": "Used for the weight readout. Silk or glitter PLA looks great.",
   "x-group": "look",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "pla"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "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)"
  },
  {
   "id": "led-tealight-candles",
   "title": "Flameless Warm-White LED Tealight Candles with Timer (24 pack)",
   "why": "Safe 38 mm flameless LED tealights sized for 3D-printed lanterns and trees.",
   "url": "https://paramlet.com/go/led-tealight-candles?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "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)"
  }
 ]
}