{
  "manifest": {
    "spekkr": 1,
    "id": "onyx/project-enclosure",
    "name": "Enclosure for a circuit board",
    "summary": "A two-part printable enclosure sized to your board, modelled as code, with dimensions and volumes a build must reproduce.",
    "keywords": [
      "3d printing",
      "3d print",
      "case",
      "box",
      "openscad",
      "cadquery",
      "parametric",
      "stl",
      "step",
      "housing"
    ],
    "kind": "CAD",
    "version": "0.1.1",
    "author": {
      "id": "onyx",
      "name": "Onyx"
    },
    "targets": {
      "stack": [
        "CadQuery",
        "OpenSCAD"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "inner_length",
          "label": "Inside length, mm",
          "default": "100",
          "help": "The space the board needs, along its long side."
        },
        {
          "key": "inner_width",
          "label": "Inside width, mm",
          "default": "60"
        },
        {
          "key": "inner_height",
          "label": "Inside height, mm",
          "default": "30",
          "help": "From the floor to the underside of the lid."
        },
        {
          "key": "wall",
          "label": "Wall thickness, mm",
          "default": "2.4",
          "help": "From 1.2 to 5."
        },
        {
          "key": "corner_radius",
          "label": "Outside corner radius, mm",
          "default": "4",
          "help": "0 for square corners."
        }
      ],
      "options": [
        {
          "key": "standoffs",
          "label": "Standoffs for the board",
          "default": true,
          "help": "Four posts with pilot holes for M3 screws."
        },
        {
          "key": "cable_slot",
          "label": "Cable slot",
          "default": true,
          "help": "A slot in one short wall, open at the top."
        }
      ],
      "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": "Geometry, formulas and the numbers a build must match."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "permissions": [
        "shell"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/base.png",
        "shots/lid.png",
        "shots/closed.png",
        "shots/base-top.png"
      ]
    },
    "safety": {
      "commands": [
        "install CadQuery or OpenSCAD, whichever the tool input names",
        "install a mesh library, such as trimesh"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/project-enclosure."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/base-top.png": "files/shots/base-top.png",
      "shots/base.png": "files/shots/base.png",
      "shots/closed.png": "files/shots/closed.png",
      "shots/lid.png": "files/shots/lid.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "onyx",
  "uploaded": {
    "shots/base-top.png": {
      "bytes": 38665,
      "type": "image/png"
    },
    "shots/base.png": {
      "bytes": 33520,
      "type": "image/png"
    },
    "shots/closed.png": {
      "bytes": 25495,
      "type": "image/png"
    },
    "shots/lid.png": {
      "bytes": 29679,
      "type": "image/png"
    }
  }
}
