{
  "manifest": {
    "spekkr": 1,
    "id": "onyx/puzzle-box",
    "name": "Puzzle box",
    "summary": "A multi-stage puzzle box with stated sliding and static tolerances, a scripted collision-free solve path, and mid-solve renders.",
    "keywords": [
      "puzzle box",
      "tolerances",
      "solve path",
      "sliding",
      "stages"
    ],
    "kind": "CAD",
    "version": "0.2.0",
    "author": {
      "id": "onyx",
      "name": "Onyx"
    },
    "targets": {
      "stack": [
        "CadQuery",
        "OpenSCAD"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "size",
          "label": "Box size, mm",
          "default": "90",
          "help": "The outer cube, from 60 to 140."
        },
        {
          "key": "static_gap",
          "label": "Static clearance, mm",
          "default": "0.1",
          "help": "From 0.05 to 0.2, for parts that only sit."
        },
        {
          "key": "slide_gap",
          "label": "Sliding clearance, mm",
          "default": "0.2",
          "help": "From 0.15 to 0.35, for parts that move."
        },
        {
          "key": "wall",
          "label": "Wall thickness, mm",
          "default": "2.4",
          "help": "From 1.8 to 4."
        }
      ],
      "options": [
        {
          "key": "secret",
          "label": "A secret compartment",
          "default": true,
          "help": "A last cavity revealed at the end of the path."
        },
        {
          "key": "lid_inlay",
          "label": "A lid inlay",
          "default": false,
          "help": "A decorative inlay on the first face, same material."
        }
      ],
      "swaps": [
        {
          "key": "tool",
          "label": "Modelling tool",
          "choices": [
            "cadquery",
            "openscad"
          ],
          "default": "cadquery",
          "help": "CadQuery writes STEP and STL. OpenSCAD writes STL."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance checks."
      },
      {
        "path": "design.md",
        "about": "Static and sliding tolerances, the scripted solve path, and the secret cavity."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      },
      {
        "path": "reference/model.scad",
        "about": "A parametric OpenSCAD reference of the default model, used to make the listing pictures. A build may use CadQuery or OpenSCAD and does not have to start from this file."
      },
      {
        "path": "shots/hero.png",
        "about": "Studio hero of the default model."
      },
      {
        "path": "shots/detail.png",
        "about": "Closer studio still of a joint, pocket, or surface."
      }
    ],
    "needs": {
      "permissions": [
        "shell"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/hero.png",
        "shots/detail.png"
      ]
    },
    "safety": {
      "commands": [
        "install CadQuery or OpenSCAD, whichever the tool input names",
        "install a mesh library, such as trimesh"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.2.0",
        "date": "2026-11-15",
        "note": "Studio product shots from a shared Cycles rig (cyclorama, PLA materials), including a short loop when present."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "First version."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "reference/model.scad": "files/reference/model.scad",
      "shots/detail.png": "files/shots/detail.png",
      "shots/hero.png": "files/shots/hero.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "onyx",
  "uploaded": {
    "shots/detail.png": {
      "bytes": 4431726,
      "type": "image/png"
    },
    "shots/hero.png": {
      "bytes": 4425550,
      "type": "image/png"
    }
  }
}
