{
  "manifest": {
    "spekkr": 1,
    "id": "onyx/coded-lens",
    "name": "Coded lens",
    "summary": "A camera lens designed and ray-traced in code: focal length, spot size and aberrations versus targets, with ray-trace plots as goldens.",
    "keywords": [
      "lens",
      "ray trace",
      "focal length",
      "aberration",
      "optics"
    ],
    "kind": "CAD",
    "version": "0.2.0",
    "author": {
      "id": "onyx",
      "name": "Onyx"
    },
    "targets": {
      "stack": [
        "Python"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "focal",
          "label": "Target focal length, mm",
          "default": "50",
          "help": "From 24 to 85, the design target."
        },
        {
          "key": "aperture",
          "label": "F-number",
          "default": "2.8",
          "help": "From 1.8 to 8."
        },
        {
          "key": "format",
          "label": "Image circle, mm",
          "default": "43.3",
          "help": "The diagonal of the image plane, default a 35 mm still frame."
        }
      ],
      "options": [
        {
          "key": "coatings",
          "label": "Simple coatings",
          "default": false,
          "help": "A transmission factor in the tracer, not a physical lab coating."
        },
        {
          "key": "aspheres",
          "label": "Allow an asphere",
          "default": true,
          "help": "If off, all surfaces are spherical or planar."
        }
      ],
      "swaps": [
        {
          "key": "tracer",
          "label": "Tracer",
          "choices": [
            "shipped",
            "external"
          ],
          "default": "shipped",
          "help": "shipped is a small tracer in the project. external is a named open library, if present."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance checks."
      },
      {
        "path": "design.md",
        "about": "Focal-length and spot-size targets, the prescription file, and ray-trace plot goldens."
      },
      {
        "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 a Python optics or ray-trace library, or a small shipped tracer",
        "install a tool that compares plots"
      ]
    },
    "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": 4513878,
      "type": "image/png"
    },
    "shots/hero.png": {
      "bytes": 4456306,
      "type": "image/png"
    }
  }
}
