{
  "openapi": "3.1.1",
  "info": {
    "title": "Bundlekeep API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://bundlekeep.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "bundlekeep-project-identifier",
                "bundlekeep-backup-builder",
                "bundlekeep-backup-verifier",
                "file-encryption-studio",
                "hash-hmac-calculator",
                "file-format-doctor"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bundlekeep-project-identifier/calculate": {
      "post": {
        "operationId": "calculateBundlekeepProjectIdentifier",
        "summary": "Find out which usefulweb app opens a project file and what it leaves out.",
        "description": "Paste a project file from any usefulweb premium app: the tool names the app and format, counts embedded images, computes a SHA-256 checksum, suggests a file name and warns when documents, media or secrets need extra care.\n\nMethodology:\n- Parses the JSON and reads its format marker (the `format` field, or `app` for Opsdeck). 54 formats of 27 apps are known; Kinetica and Threadsmith files without a marker are recognised by their required fields.\n- Counts base64 data URLs (embedded images and other files) and computes the SHA-256 checksum of the exact UTF-8 text, so a later copy can be compared byte for byte.\n- Warns about parts a project file does not contain: Paperwell document files (unless the dossier was saved with its files), Reelcraft media files, and Keysmith projects that keep secrets.\n- The file is not changed, stored or opened in an app; the app link opens an empty workspace where you can open the downloaded file.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "bundlekeep_project_identifier",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BundlekeepProjectIdentifierInput"
              },
              "examples": {
                "example1": {
                  "summary": "Identify an Ohmforge circuit project",
                  "value": {}
                },
                "example2": {
                  "summary": "Identify a Paperwell dossier without its documents",
                  "value": {
                    "project": "{\"format\":\"paperwell-project\",\"version\":1,\"name\":\"Tenancy\",\"documents\":[{\"id\":\"d1\",\"name\":\"lease.pdf\"},{\"id\":\"d2\",\"name\":\"amendment.pdf\"}]}"
                  }
                },
                "example3": {
                  "summary": "Check an unknown JSON file",
                  "value": {
                    "project": "{\"title\":\"Shopping list\",\"items\":[\"milk\",\"bread\"]}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BundlekeepProjectIdentifierResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bundlekeep-backup-builder/calculate": {
      "post": {
        "operationId": "calculateBundlekeepBackupBuilder",
        "summary": "Combine usefulweb project files into one Bundlekeep backup with checksums.",
        "description": "Give a list of project files from any usefulweb premium apps: the tool packs them unchanged into one Bundlekeep backup, names each file after its project, skips identical copies and records a SHA-256 checksum per file.\n\nMethodology:\n- Each entry is kept as text: entries given with \"content\" stay byte for byte, project objects are written as indented JSON. Entries must be JSON objects or arrays of at most 10 MB.\n- File names come from the entry or from the project name plus the app’s extension (for example kitchen.kerfwise.json); clashing names get a number, names without folders or reserved characters are enforced.\n- Identical files (same SHA-256 of the text) are added once. Limits: 200 files and 50 MB per backup.\n- The backup only records a date when you enter one, so the same files and settings always produce the identical backup file and checksum.\n- The backup is the Bundlekeep format described in project.schema.json; open it in Bundlekeep to review, verify and restore single files.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "bundlekeep_backup_builder",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BundlekeepBackupBuilderInput"
              },
              "examples": {
                "example1": {
                  "summary": "Back up a cabinet and a circuit",
                  "value": {}
                },
                "example2": {
                  "summary": "Keep exact file names and skip a duplicate",
                  "value": {
                    "name": "Studio files",
                    "projects": "[{\"name\":\"my-base-cabinet.kerfwise.json\",\"content\":\"{\\n  \\\"format\\\": \\\"kerfwise\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"Base cabinet 600\\\",\\n  \\\"cabinets\\\": [\\n    {\\n      \\\"id\\\": \\\"c1\\\",\\n      \\\"name\\\": \\\"Base 600\\\",\\n      \\\"type\\\": \\\"base\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"params\\\": {\\n        \\\"width\\\": 600,\\n        \\\"height\\\": 870,\\n        \\\"depth\\\": 560,\\n        \\\"doorCount\\\": 1,\\n        \\\"shelfCount\\\": 1,\\n        \\\"topType\\\": \\\"rails\\\",\\n        \\\"countertop\\\": false\\n      }\\n    }\\n  ]\\n}\"},{\"name\":\"copy.json\",\"content\":\"{\\n  \\\"format\\\": \\\"kerfwise\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"Base cabinet 600\\\",\\n  \\\"cabinets\\\": [\\n    {\\n      \\\"id\\\": \\\"c1\\\",\\n      \\\"name\\\": \\\"Base 600\\\",\\n      \\\"type\\\": \\\"base\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"params\\\": {\\n        \\\"width\\\": 600,\\n        \\\"height\\\": 870,\\n        \\\"depth\\\": 560,\\n        \\\"doorCount\\\": 1,\\n        \\\"shelfCount\\\": 1,\\n        \\\"topType\\\": \\\"rails\\\",\\n        \\\"countertop\\\": false\\n      }\\n    }\\n  ]\\n}\"},{\"format\":\"twinworks-project\",\"version\":1,\"name\":\"3-station line\",\"active\":\"base\",\"scenarios\":[{\"id\":\"base\",\"name\":\"Baseline\",\"notes\":\"\",\"model\":{\"format\":\"twinworks-model\",\"version\":1,\"name\":\"3-station line\",\"description\":\"A simple serial line: random arrivals, three machines with triangular cycle times and two small buffers. The classic starting point.\",\"settings\":{\"horizon\":28800,\"warmup\":1800,\"seed\":12345,\"replications\":5,\"confidence\":0.95,\"sampleInterval\":null,\"currency\":\"EUR\",\"timeUnit\":\"s\",\"lengthUnit\":\"m\",\"gridSize\":0.5},\"products\":[{\"id\":\"P1\",\"name\":\"Bracket\",\"color\":\"#2563eb\",\"priority\":0,\"materialCost\":4.2,\"price\":19,\"routing\":[]}],\"calendars\":[],\"pools\":[],\"nodes\":[{\"id\":\"SRC1\",\"type\":\"source\",\"name\":\"Raw parts\",\"x\":2,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"arrival\":\"interval\",\"interval\":{\"type\":\"exponential\",\"mean\":55},\"firstAt\":0,\"batchSize\":1,\"maxArrivals\":null,\"mix\":[],\"schedule\":[],\"repeatEvery\":null,\"whenBlocked\":\"queue\"},{\"id\":\"M1\",\"type\":\"machine\",\"name\":\"Saw\",\"x\":6,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"servers\":1,\"cycle\":{\"type\":\"triangular\",\"min\":35,\"mode\":40,\"max\":50},\"cycleByProduct\":{},\"setup\":null,\"idealCycleTime\":null,\"batchSize\":1,\"scrapPct\":0,\"failure\":null,\"maintenance\":null,\"operator\":null,\"costPerHour\":38,\"costPerPart\":0},{\"id\":\"B1\",\"type\":\"buffer\",\"name\":\"Buffer 1\",\"x\":10,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"capacity\":5,\"discipline\":\"fifo\"},{\"id\":\"M2\",\"type\":\"machine\",\"name\":\"Mill\",\"x\":14,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"servers\":1,\"cycle\":{\"type\":\"triangular\",\"min\":40,\"mode\":48,\"max\":58},\"cycleByProduct\":{},\"setup\":null,\"idealCycleTime\":null,\"batchSize\":1,\"scrapPct\":0,\"failure\":null,\"maintenance\":null,\"operator\":null,\"costPerHour\":65,\"costPerPart\":0},{\"id\":\"B2\",\"type\":\"buffer\",\"name\":\"Buffer 2\",\"x\":18,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"capacity\":5,\"discipline\":\"fifo\"},{\"id\":\"M3\",\"type\":\"machine\",\"name\":\"Deburr\",\"x\":22,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\",\"servers\":1,\"cycle\":{\"type\":\"triangular\",\"min\":30,\"mode\":38,\"max\":45},\"cycleByProduct\":{},\"setup\":null,\"idealCycleTime\":null,\"batchSize\":1,\"scrapPct\":0,\"failure\":null,\"maintenance\":null,\"operator\":null,\"costPerHour\":30,\"costPerPart\":0},{\"id\":\"OUT1\",\"type\":\"sink\",\"name\":\"Finished goods\",\"x\":26,\"y\":6,\"rotation\":0,\"calendar\":null,\"routing\":\"first\",\"note\":\"\"}],\"links\":[{\"id\":\"L1\",\"from\":\"SRC1\",\"to\":\"M1\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1},{\"id\":\"L2\",\"from\":\"M1\",\"to\":\"B1\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1},{\"id\":\"L3\",\"from\":\"B1\",\"to\":\"M2\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1},{\"id\":\"L4\",\"from\":\"M2\",\"to\":\"B2\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1},{\"id\":\"L5\",\"from\":\"B2\",\"to\":\"M3\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1},{\"id\":\"L6\",\"from\":\"M3\",\"to\":\"OUT1\",\"weight\":1,\"products\":[],\"kind\":\"normal\",\"qty\":1}],\"cost\":{\"overheadPerHour\":20,\"scrapDisposal\":0},\"notes\":[]}}]}]",
                    "created": "2026-10-31"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BundlekeepBackupBuilderResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/bundlekeep-backup-verifier/calculate": {
      "post": {
        "operationId": "calculateBundlekeepBackupVerifier",
        "summary": "Check a Bundlekeep backup file by file and get a restore checklist.",
        "description": "Open a Bundlekeep backup: the tool recomputes the SHA-256 checksum of every project file, lists what each file is and what it leaves out, writes a restore checklist per app and can extract one project file for download.\n\nMethodology:\n- Validates the Bundlekeep format (version 1), unique file names, JSON content and the limits of 200 files, 10 MB per file and 50 MB in total.\n- Recomputes SHA-256 for each file and compares it with the checksum recorded when the file was added: verified (identical), changed (different) or no checksum (older backups).\n- Recognises the app and format of each file and lists the same warnings as the Project File Identifier (documents or media outside the file, kept secrets, unknown format).\n- The restore checklist groups files by app with workspace links. Restoring means downloading a file and opening it in its app; nothing is written into an app.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "bundlekeep_backup_verifier",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BundlekeepBackupVerifierInput"
              },
              "examples": {
                "example1": {
                  "summary": "Verify the workshop example backup",
                  "value": {}
                },
                "example2": {
                  "summary": "Extract the circuit from a backup",
                  "value": {
                    "extract": "led-with-series-resistor.ohmforge.json"
                  }
                },
                "example3": {
                  "summary": "Spot a changed file",
                  "value": {
                    "backup": "{\"format\":\"bundlekeep\",\"version\":1,\"name\":\"Workshop backup\",\"items\":[{\"name\":\"base-cabinet-600.kerfwise.json\",\"content\":\"{\\n  \\\"format\\\": \\\"kerfwise\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\" : \\\"Base cabinet 600\\\",\\n  \\\"cabinets\\\": [\\n    {\\n      \\\"id\\\": \\\"c1\\\",\\n      \\\"name\\\": \\\"Base 600\\\",\\n      \\\"type\\\": \\\"base\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"params\\\": {\\n        \\\"width\\\": 600,\\n        \\\"height\\\": 870,\\n        \\\"depth\\\": 560,\\n        \\\"doorCount\\\": 1,\\n        \\\"shelfCount\\\": 1,\\n        \\\"topType\\\": \\\"rails\\\",\\n        \\\"countertop\\\": false\\n      }\\n    }\\n  ]\\n}\",\"app\":\"kerfwise\",\"format\":\"kerfwise\",\"sha256\":\"e6f17c489b32c4e577c7c857a650bbbbbf8a1d2f1c9daaf8718ce7f6e0e3e6dc\",\"source\":\"template\"},{\"name\":\"led-with-series-resistor.ohmforge.json\",\"content\":\"{\\n  \\\"format\\\": \\\"ohmforge\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"LED with series resistor\\\",\\n  \\\"parts\\\": [\\n    {\\n      \\\"id\\\": \\\"BT1\\\",\\n      \\\"kind\\\": \\\"battery\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"voltage\\\": \\\"9\\\",\\n        \\\"rint\\\": \\\"1\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"SW1\\\",\\n      \\\"kind\\\": \\\"switch\\\",\\n      \\\"x\\\": 4,\\n      \\\"y\\\": -6,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"closed\\\": true,\\n        \\\"ron\\\": \\\"10m\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"R1\\\",\\n      \\\"kind\\\": \\\"resistor\\\",\\n      \\\"x\\\": 10,\\n      \\\"y\\\": -6,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"value\\\": \\\"390\\\",\\n        \\\"power\\\": \\\"0.25\\\",\\n        \\\"tolerance\\\": \\\"5%\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"D1\\\",\\n      \\\"kind\\\": \\\"led\\\",\\n      \\\"x\\\": 14,\\n      \\\"y\\\": -4,\\n      \\\"rot\\\": 90,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"colour\\\": \\\"red\\\",\\n        \\\"imax\\\": \\\"20m\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"GND1\\\",\\n      \\\"kind\\\": \\\"ground\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 4,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {}\\n    }\\n  ],\\n  \\\"wires\\\": [\\n    {\\n      \\\"id\\\": \\\"w1\\\",\\n      \\\"pts\\\": [\\n        [\\n          0,\\n          -2\\n        ],\\n        [\\n          0,\\n          -6\\n        ],\\n        [\\n          2,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w2\\\",\\n      \\\"pts\\\": [\\n        [\\n          6,\\n          -6\\n        ],\\n        [\\n          8,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w3\\\",\\n      \\\"pts\\\": [\\n        [\\n          12,\\n          -6\\n        ],\\n        [\\n          14,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w4\\\",\\n      \\\"pts\\\": [\\n        [\\n          14,\\n          -2\\n        ],\\n        [\\n          14,\\n          4\\n        ],\\n        [\\n          0,\\n          4\\n        ],\\n        [\\n          0,\\n          2\\n        ]\\n      ]\\n    }\\n  ],\\n  \\\"notes\\\": [\\n    {\\n      \\\"id\\\": \\\"n1\\\",\\n      \\\"x\\\": 17,\\n      \\\"y\\\": -7,\\n      \\\"text\\\": \\\"R = (9 V − 1.9 V) / 0.02 A ≈ 355 Ω → 390 Ω\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"n2\\\",\\n      \\\"x\\\": 17,\\n      \\\"y\\\": -5,\\n      \\\"text\\\": \\\"Try 47 Ω to see the LED burn out\\\"\\n    }\\n  ],\\n  \\\"sim\\\": {\\n    \\\"mode\\\": \\\"op\\\",\\n    \\\"tran\\\": {\\n      \\\"tstop\\\": \\\"10m\\\",\\n      \\\"tstep\\\": \\\"10u\\\",\\n      \\\"method\\\": \\\"trap\\\",\\n      \\\"uic\\\": false\\n    },\\n    \\\"ac\\\": {\\n      \\\"fstart\\\": \\\"10\\\",\\n      \\\"fstop\\\": \\\"1Meg\\\",\\n      \\\"ppd\\\": 20\\n    },\\n    \\\"dc\\\": {\\n      \\\"start\\\": \\\"0\\\",\\n      \\\"stop\\\": \\\"10\\\",\\n      \\\"step\\\": \\\"0.1\\\"\\n    },\\n    \\\"speed\\\": 0.001\\n  },\\n  \\\"description\\\": \\\"Sizing an LED resistor: R = (Vs − Vf) / If = (9 V − 1.9 V) / 20 mA ≈ 355 Ω → 390 Ω (E12), giving ≈ 18 mA.\\\",\\n  \\\"instruments\\\": {\\n    \\\"meter\\\": {\\n      \\\"mode\\\": \\\"A\\\",\\n      \\\"part\\\": \\\"D1\\\"\\n    }\\n  }\\n}\",\"app\":\"ohmforge\",\"format\":\"ohmforge\",\"sha256\":\"57ea75125b44a8784e6b84b321cf3ae296a7a7f7584606a4e30067278bb0a51b\",\"source\":\"template\"},{\"name\":\"3-station-line.twinworks.json\",\"content\":\"{\\n  \\\"format\\\": \\\"twinworks-project\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"3-station line\\\",\\n  \\\"active\\\": \\\"base\\\",\\n  \\\"scenarios\\\": [\\n    {\\n      \\\"id\\\": \\\"base\\\",\\n      \\\"name\\\": \\\"Baseline\\\",\\n      \\\"notes\\\": \\\"\\\",\\n      \\\"model\\\": {\\n        \\\"format\\\": \\\"twinworks-model\\\",\\n        \\\"version\\\": 1,\\n        \\\"name\\\": \\\"3-station line\\\",\\n        \\\"description\\\": \\\"A simple serial line: random arrivals, three machines with triangular cycle times and two small buffers. The classic starting point.\\\",\\n        \\\"settings\\\": {\\n          \\\"horizon\\\": 28800,\\n          \\\"warmup\\\": 1800,\\n          \\\"seed\\\": 12345,\\n          \\\"replications\\\": 5,\\n          \\\"confidence\\\": 0.95,\\n          \\\"sampleInterval\\\": null,\\n          \\\"currency\\\": \\\"EUR\\\",\\n          \\\"timeUnit\\\": \\\"s\\\",\\n          \\\"lengthUnit\\\": \\\"m\\\",\\n          \\\"gridSize\\\": 0.5\\n        },\\n        \\\"products\\\": [\\n          {\\n            \\\"id\\\": \\\"P1\\\",\\n            \\\"name\\\": \\\"Bracket\\\",\\n            \\\"color\\\": \\\"#2563eb\\\",\\n            \\\"priority\\\": 0,\\n            \\\"materialCost\\\": 4.2,\\n            \\\"price\\\": 19,\\n            \\\"routing\\\": []\\n          }\\n        ],\\n        \\\"calendars\\\": [],\\n        \\\"pools\\\": [],\\n        \\\"nodes\\\": [\\n          {\\n            \\\"id\\\": \\\"SRC1\\\",\\n            \\\"type\\\": \\\"source\\\",\\n            \\\"name\\\": \\\"Raw parts\\\",\\n            \\\"x\\\": 2,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"arrival\\\": \\\"interval\\\",\\n            \\\"interval\\\": {\\n              \\\"type\\\": \\\"exponential\\\",\\n              \\\"mean\\\": 55\\n            },\\n            \\\"firstAt\\\": 0,\\n            \\\"batchSize\\\": 1,\\n            \\\"maxArrivals\\\": null,\\n            \\\"mix\\\": [],\\n            \\\"schedule\\\": [],\\n            \\\"repeatEvery\\\": null,\\n            \\\"whenBlocked\\\": \\\"queue\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M1\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Saw\\\",\\n            \\\"x\\\": 6,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 35,\\n              \\\"mode\\\": 40,\\n              \\\"max\\\": 50\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 38,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"B1\\\",\\n            \\\"type\\\": \\\"buffer\\\",\\n            \\\"name\\\": \\\"Buffer 1\\\",\\n            \\\"x\\\": 10,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"capacity\\\": 5,\\n            \\\"discipline\\\": \\\"fifo\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M2\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Mill\\\",\\n            \\\"x\\\": 14,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 40,\\n              \\\"mode\\\": 48,\\n              \\\"max\\\": 58\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 65,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"B2\\\",\\n            \\\"type\\\": \\\"buffer\\\",\\n            \\\"name\\\": \\\"Buffer 2\\\",\\n            \\\"x\\\": 18,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"capacity\\\": 5,\\n            \\\"discipline\\\": \\\"fifo\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M3\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Deburr\\\",\\n            \\\"x\\\": 22,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 30,\\n              \\\"mode\\\": 38,\\n              \\\"max\\\": 45\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 30,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"OUT1\\\",\\n            \\\"type\\\": \\\"sink\\\",\\n            \\\"name\\\": \\\"Finished goods\\\",\\n            \\\"x\\\": 26,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\"\\n          }\\n        ],\\n        \\\"links\\\": [\\n          {\\n            \\\"id\\\": \\\"L1\\\",\\n            \\\"from\\\": \\\"SRC1\\\",\\n            \\\"to\\\": \\\"M1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L2\\\",\\n            \\\"from\\\": \\\"M1\\\",\\n            \\\"to\\\": \\\"B1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L3\\\",\\n            \\\"from\\\": \\\"B1\\\",\\n            \\\"to\\\": \\\"M2\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L4\\\",\\n            \\\"from\\\": \\\"M2\\\",\\n            \\\"to\\\": \\\"B2\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L5\\\",\\n            \\\"from\\\": \\\"B2\\\",\\n            \\\"to\\\": \\\"M3\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L6\\\",\\n            \\\"from\\\": \\\"M3\\\",\\n            \\\"to\\\": \\\"OUT1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          }\\n        ],\\n        \\\"cost\\\": {\\n          \\\"overheadPerHour\\\": 20,\\n          \\\"scrapDisposal\\\": 0\\n        },\\n        \\\"notes\\\": []\\n      }\\n    }\\n  ]\\n}\",\"app\":\"twinworks\",\"format\":\"twinworks-project\",\"sha256\":\"4b094bfae3303ae29c7a57e3f3c835725ce4150c8dd350d6ca62a2aa20959008\",\"source\":\"template\"},{\"name\":\"name-tag.threadsmith.json\",\"content\":\"{\\n  \\\"format\\\": \\\"threadsmith\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"Name tag\\\",\\n  \\\"hoop\\\": \\\"130x180\\\",\\n  \\\"palette\\\": [\\n    {\\n      \\\"id\\\": \\\"sapphire\\\",\\n      \\\"name\\\": \\\"Sapphire\\\",\\n      \\\"hex\\\": \\\"#0f4c81\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"coral\\\",\\n      \\\"name\\\": \\\"Coral\\\",\\n      \\\"hex\\\": \\\"#e8705a\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"ivory\\\",\\n      \\\"name\\\": \\\"Ivory\\\",\\n      \\\"hex\\\": \\\"#fffbf0\\\"\\n    }\\n  ],\\n  \\\"objects\\\": [\\n    {\\n      \\\"id\\\": \\\"frame\\\",\\n      \\\"name\\\": \\\"Frame\\\",\\n      \\\"kind\\\": \\\"rect\\\",\\n      \\\"color\\\": \\\"sapphire\\\",\\n      \\\"x\\\": -45,\\n      \\\"y\\\": -22,\\n      \\\"w\\\": 90,\\n      \\\"h\\\": 44,\\n      \\\"r\\\": 8,\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"satin\\\",\\n        \\\"mode\\\": \\\"border\\\",\\n        \\\"width\\\": 3,\\n        \\\"density\\\": 0.4\\n      },\\n      \\\"underlay\\\": {\\n        \\\"center\\\": true\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"hello\\\",\\n      \\\"name\\\": \\\"Hello\\\",\\n      \\\"kind\\\": \\\"text\\\",\\n      \\\"color\\\": \\\"coral\\\",\\n      \\\"text\\\": \\\"Hello, my name is\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": -7,\\n      \\\"size\\\": 6,\\n      \\\"font\\\": \\\"single\\\",\\n      \\\"align\\\": \\\"center\\\",\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"running\\\",\\n        \\\"length\\\": 1.8,\\n        \\\"bean\\\": true\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"name\\\",\\n      \\\"name\\\": \\\"Name\\\",\\n      \\\"kind\\\": \\\"text\\\",\\n      \\\"color\\\": \\\"sapphire\\\",\\n      \\\"text\\\": \\\"Ada\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 14,\\n      \\\"size\\\": 16,\\n      \\\"font\\\": \\\"single\\\",\\n      \\\"align\\\": \\\"center\\\",\\n      \\\"spacing\\\": 1,\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"satin\\\",\\n        \\\"width\\\": 2.4,\\n        \\\"density\\\": 0.36\\n      },\\n      \\\"underlay\\\": {\\n        \\\"center\\\": true\\n      }\\n    }\\n  ]\\n}\",\"app\":\"threadsmith\",\"format\":\"threadsmith\",\"sha256\":\"2c85ac2d4b00a28a099fb597b0fb21decbf41538dca1fac2e3ca3c5a6178dfee\",\"source\":\"template\"}]}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BundlekeepBackupVerifierResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/file-encryption-studio/calculate": {
      "post": {
        "operationId": "calculateFileEncryptionStudio",
        "summary": "Encrypt and decrypt files with AES-256-GCM and a password, locally in your browser.",
        "description": "Encrypts any file up to 100 MB with AES-256-GCM, using a password (PBKDF2-SHA-256, at least 600,000 iterations) or a raw 256-bit key, and decrypts it again. The output is a small documented container. With JavaScript on, everything runs in your browser via WebCrypto and the file never leaves your device.\n\nMethodology:\n- Encryption: AES-256 in GCM mode (authenticated encryption) with a random 96-bit IV. The 16-byte authentication tag detects a wrong key and any modification of the file or its header.\n- Password mode: the key is PBKDF2-HMAC-SHA-256(password in Unicode NFC, UTF-8; random 16-byte salt; ≥ 600,000 iterations; 32 bytes). Raw-key mode uses your 32-byte key directly (or a random one generated for you).\n- Container \"UWFE\" v1, all integers big-endian: bytes 0–3 \"UWFE\"; 4 version (1); 5 KDF (1 = PBKDF2-SHA-256, 0 = raw key); 6–9 iterations (0 for raw key); 10 salt length S; then S salt bytes; then IV length (12) and the IV; then ciphertext followed by the 16-byte tag. The whole header is authenticated as GCM additional data.\n- With JavaScript on, the browser does everything with WebCrypto (crypto.subtle: PBKDF2, AES-GCM) and offers the result as a local download; the file and password never leave your device.\n- Without JavaScript or via the API/MCP, the server performs the same steps with Node.js crypto. It then receives the file and the password; the output is kept as a download for about 2 hours and then deleted.\n\nIf you forget the password or lose the key, the file cannot be recovered. Keep an unencrypted backup until you have tested decryption.",
        "tags": [
          "crypto"
        ],
        "x-mcp-tool": "file_encryption_studio",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileEncryptionStudioInput"
              },
              "examples": {
                "example1": {
                  "summary": "Encrypt a text file with a password (demo seed)",
                  "value": {
                    "action": "encrypt",
                    "file": {
                      "filename": "notes.txt",
                      "contentType": "text/plain",
                      "contentBase64": "TWVldGluZyBub3RlczogdGhlIHNwYXJlIGtleSBpcyB1bmRlciB0aGUgYmx1ZSBmbG93ZXJwb3QuCg=="
                    },
                    "keyMode": "password",
                    "password": "correct horse battery staple",
                    "seed": "demo"
                  }
                },
                "example2": {
                  "summary": "Decrypt the demo file",
                  "value": {
                    "action": "decrypt",
                    "file": {
                      "filename": "notes.txt.uwenc",
                      "contentType": "application/octet-stream",
                      "contentBase64": "VVdGRQEBAAknwBDpZOKuJvfa5dh6b4uQWgxhDBz+qzPNLpyER5uJf0+lqHctv57Gg4dAu9etoo9XyTMcu4qngNaolW3xIPUsAFquU/AQK9yw1zMFh2AKPSCkQVO45yYcipxdJ/Geh65IpBMyFXIxSia1"
                    },
                    "keyMode": "password",
                    "password": "correct horse battery staple"
                  }
                },
                "example3": {
                  "summary": "Encrypt with a raw AES-256 key",
                  "value": {
                    "action": "encrypt",
                    "file": {
                      "filename": "data.csv",
                      "contentType": "text/csv",
                      "contentBase64": "aWQsYW1vdW50CjEsNDIK"
                    },
                    "keyMode": "rawkey",
                    "rawKey": "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
                    "seed": "raw-demo"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileEncryptionStudioResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/hash-hmac-calculator/calculate": {
      "post": {
        "operationId": "calculateHashHmacCalculator",
        "summary": "MD5, SHA-2, SHA-3, BLAKE2, CRC32 and HMAC of text or files, with checksum compare.",
        "description": "Computes MD5, SHA-1, SHA-224/256/384/512, SHA3-256/512, BLAKE2b-512, BLAKE2s-256 and CRC-32 of text or a file, or an HMAC with your key, in hex or Base64, and checks a published checksum against all of them. With JavaScript on, files and keys are hashed locally in your browser.\n\nMethodology:\n- The input bytes are the file as uploaded, or the text decoded as UTF-8, hex or Base64. Text is hashed exactly as entered: no newline is appended (unlike `echo` without `-n`).\n- Digests come from OpenSSL via Node.js crypto (MD5, SHA-1, SHA-2, SHA-3, BLAKE2b-512, BLAKE2s-256) and zlib (CRC-32, IEEE polynomial, shown big-endian as in `crc32`/`cksum -a crc32b`).\n- With a key, HMAC (RFC 2104) is computed for every selected hash; CRC-32 has no HMAC. SHA-3 HMACs use the SHA-3 rate as block size (NIST), BLAKE2 HMACs the BLAKE2 block size, as OpenSSL does.\n- The comparison accepts hex (any case, optional spaces or colons) or Base64 and reports which algorithm matches.\n- With JavaScript on, the browser computes everything locally: SHA-1/2 via WebCrypto, MD5, SHA-224, SHA-3, BLAKE2 and CRC-32 via small built-in JavaScript implementations. Files and keys never leave your device.\n\nMD5, SHA-1 and CRC-32 must not be used where an attacker could craft collisions. To store passwords use a password hash (Argon2id, scrypt, bcrypt), not a plain hash.",
        "tags": [
          "crypto"
        ],
        "x-mcp-tool": "hash_hmac_calculator",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HashHmacCalculatorInput"
              },
              "examples": {
                "example1": {
                  "summary": "Hashes of \"hello world\"",
                  "value": {
                    "text": "hello world"
                  }
                },
                "example2": {
                  "summary": "HMAC-SHA256 (RFC 4231 test case 2)",
                  "value": {
                    "text": "what do ya want for nothing?",
                    "hmacKey": "Jefe",
                    "algorithms": [
                      "sha256",
                      "sha512"
                    ]
                  }
                },
                "example3": {
                  "summary": "Verify a SHA-256 checksum of a small file",
                  "value": {
                    "file": {
                      "filename": "readme.txt",
                      "contentType": "text/plain",
                      "contentBase64": "dXNlZnVsd2ViLnNpdGUgY2hlY2tzdW0gZGVtbwo="
                    },
                    "algorithms": [
                      "sha256",
                      "sha3-256",
                      "crc32"
                    ],
                    "expected": "CFA892AD DD30FF8C 6453D2F3 B44C88C3 63B38A3F B5113357 39A5067F 555BE6C0"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HashHmacCalculatorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/file-format-doctor/calculate": {
      "post": {
        "operationId": "calculateFileFormatDoctor",
        "summary": "Find out what a file really is from its bytes, why it will not open and how to convert it.",
        "description": "Upload a file (or paste its first bytes as hex) and the doctor reads its magic number against a table of 74 formats, looks inside ZIP containers (DOCX, XLSX, ODT, EPUB, JAR, APK), and diagnoses wrong extensions, truncated or encrypted files, text encoding problems and disguised executables — with offline conversion commands.\n\nMethodology:\n- Magic numbers are matched at their documented offsets for 74 formats (e.g. \"%PDF-\" at 0, \"ustar\" at 257, \"CD001\" at 0x8001, \"ftyp\" brands at 4).\n- ISO-BMFF files are told apart by their ftyp brands (heic/heix → HEIC, mif1 → HEIF, avif → AVIF, qt → QuickTime, M4A → audio, isom/mp42 → MP4).\n- ZIP files are opened by reading the central directory (or local file headers in a sample): [Content_Types].xml + word/ → DOCX, xl/ → XLSX, ppt/ → PPTX, the stored \"mimetype\" entry → ODT/ODS/ODP/EPUB, AndroidManifest.xml → APK, META-INF/MANIFEST.MF → JAR. General-purpose bit 0 marks encrypted entries.\n- Without a binary signature the bytes are checked for BOMs, UTF-16 patterns, strict UTF-8 validity and typical mojibake sequences (e.g. \"Ã©\", \"â€™\"), then for SVG/HTML/XML/JSON/CSV structure.\n- Truncation checks (uploads only): PDF must end with %%EOF, PNG with IEND, JPEG with FF D9, GIF with 3B, ZIP must have an end-of-central-directory record, RIFF/BMP declared sizes must fit.\n- Conversion suggestions use free, offline tools (LibreOffice, ImageMagick, FFmpeg, 7-Zip, iconv) with the exact command for your file name.\n\nDetection reads bytes only; it does not scan for malware. Never run an executable you did not expect to receive.",
        "tags": [
          "internet"
        ],
        "x-mcp-tool": "file_format_doctor",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileFormatDoctorInput"
              },
              "examples": {
                "example1": {
                  "summary": "iPhone photo renamed to .jpg (HEIC inside)",
                  "value": {
                    "filename": "IMG_0420.jpg",
                    "hexBytes": "00 00 00 18 66 74 79 70 68 65 69 63 00 00 00 00 6d 69 66 31 68 65 69 63"
                  }
                },
                "example2": {
                  "summary": "Invoice that is really a Windows program",
                  "value": {
                    "filename": "invoice_2026.pdf.exe",
                    "hexBytes": "4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00 B8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00"
                  }
                },
                "example3": {
                  "summary": "Word document (ZIP local header with word/ entry)",
                  "value": {
                    "filename": "contract.zip",
                    "hexBytes": "50 4B 03 04 14 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 77 6F 72 64 2F 64 6F 63 75 6D 65 6E 74 2E 78 6D 6C"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileFormatDoctorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "BundlekeepProjectIdentifierInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "project": {
            "title": "Project file (JSON)",
            "description": "The text of a project file saved by a usefulweb app, at most 10 MB.",
            "type": "string",
            "maxLength": 10000000,
            "default": "{\n  \"format\": \"ohmforge\",\n  \"version\": 1,\n  \"name\": \"LED with series resistor\",\n  \"parts\": [\n    {\n      \"id\": \"BT1\",\n      \"kind\": \"battery\",\n      \"x\": 0,\n      \"y\": 0,\n      \"rot\": 0,\n      \"flip\": false,\n      \"props\": {\n        \"voltage\": \"9\",\n        \"rint\": \"1\"\n      }\n    },\n    {\n      \"id\": \"SW1\",\n      \"kind\": \"switch\",\n      \"x\": 4,\n      \"y\": -6,\n      \"rot\": 0,\n      \"flip\": false,\n      \"props\": {\n        \"closed\": true,\n        \"ron\": \"10m\"\n      }\n    },\n    {\n      \"id\": \"R1\",\n      \"kind\": \"resistor\",\n      \"x\": 10,\n      \"y\": -6,\n      \"rot\": 0,\n      \"flip\": false,\n      \"props\": {\n        \"value\": \"390\",\n        \"power\": \"0.25\",\n        \"tolerance\": \"5%\"\n      }\n    },\n    {\n      \"id\": \"D1\",\n      \"kind\": \"led\",\n      \"x\": 14,\n      \"y\": -4,\n      \"rot\": 90,\n      \"flip\": false,\n      \"props\": {\n        \"colour\": \"red\",\n        \"imax\": \"20m\"\n      }\n    },\n    {\n      \"id\": \"GND1\",\n      \"kind\": \"ground\",\n      \"x\": 0,\n      \"y\": 4,\n      \"rot\": 0,\n      \"flip\": false,\n      \"props\": {}\n    }\n  ],\n  \"wires\": [\n    {\n      \"id\": \"w1\",\n      \"pts\": [\n        [\n          0,\n          -2\n        ],\n        [\n          0,\n          -6\n        ],\n        [\n          2,\n          -6\n        ]\n      ]\n    },\n    {\n      \"id\": \"w2\",\n      \"pts\": [\n        [\n          6,\n          -6\n        ],\n        [\n          8,\n          -6\n        ]\n      ]\n    },\n    {\n      \"id\": \"w3\",\n      \"pts\": [\n        [\n          12,\n          -6\n        ],\n        [\n          14,\n          -6\n        ]\n      ]\n    },\n    {\n      \"id\": \"w4\",\n      \"pts\": [\n        [\n          14,\n          -2\n        ],\n        [\n          14,\n          4\n        ],\n        [\n          0,\n          4\n        ],\n        [\n          0,\n          2\n        ]\n      ]\n    }\n  ],\n  \"notes\": [\n    {\n      \"id\": \"n1\",\n      \"x\": 17,\n      \"y\": -7,\n      \"text\": \"R = (9 V − 1.9 V) / 0.02 A ≈ 355 Ω → 390 Ω\"\n    },\n    {\n      \"id\": \"n2\",\n      \"x\": 17,\n      \"y\": -5,\n      \"text\": \"Try 47 Ω to see the LED burn out\"\n    }\n  ],\n  \"sim\": {\n    \"mode\": \"op\",\n    \"tran\": {\n      \"tstop\": \"10m\",\n      \"tstep\": \"10u\",\n      \"method\": \"trap\",\n      \"uic\": false\n    },\n    \"ac\": {\n      \"fstart\": \"10\",\n      \"fstop\": \"1Meg\",\n      \"ppd\": 20\n    },\n    \"dc\": {\n      \"start\": \"0\",\n      \"stop\": \"10\",\n      \"step\": \"0.1\"\n    },\n    \"speed\": 0.001\n  },\n  \"description\": \"Sizing an LED resistor: R = (Vs − Vf) / If = (9 V − 1.9 V) / 20 mA ≈ 355 Ω → 390 Ω (E12), giving ≈ 18 mA.\",\n  \"instruments\": {\n    \"meter\": {\n      \"mode\": \"A\",\n      \"part\": \"D1\"\n    }\n  }\n}"
          }
        },
        "required": []
      },
      "BundlekeepProjectIdentifierResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "app",
              "appName",
              "format",
              "label",
              "known",
              "projectName",
              "bytes",
              "embeddedDataUrls",
              "sha256",
              "suggestedFileName",
              "warnings",
              "openApp"
            ],
            "properties": {
              "app": {
                "type": "string"
              },
              "appName": {
                "type": "string"
              },
              "format": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "known": {
                "type": "boolean"
              },
              "projectName": {
                "type": "string"
              },
              "bytes": {
                "type": "integer"
              },
              "embeddedDataUrls": {
                "type": "integer"
              },
              "sha256": {
                "type": "string"
              },
              "suggestedFileName": {
                "type": "string"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "openApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "BundlekeepBackupBuilderInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Backup name",
            "type": "string",
            "maxLength": 120,
            "default": "My project backup"
          },
          "projects": {
            "title": "Project files (JSON array)",
            "description": "Either project objects, or {\"name\": \"file.json\", \"content\": \"<project text>\"} to keep the exact text and name.",
            "type": "string",
            "maxLength": 14000000,
            "default": "[\n  {\n    \"format\": \"kerfwise\",\n    \"version\": 1,\n    \"name\": \"Base cabinet 600\",\n    \"cabinets\": [\n      {\n        \"id\": \"c1\",\n        \"name\": \"Base 600\",\n        \"type\": \"base\",\n        \"x\": 0,\n        \"y\": 0,\n        \"rot\": 0,\n        \"params\": {\n          \"width\": 600,\n          \"height\": 870,\n          \"depth\": 560,\n          \"doorCount\": 1,\n          \"shelfCount\": 1,\n          \"topType\": \"rails\",\n          \"countertop\": false\n        }\n      }\n    ]\n  },\n  {\n    \"format\": \"ohmforge\",\n    \"version\": 1,\n    \"name\": \"LED with series resistor\",\n    \"parts\": [\n      {\n        \"id\": \"BT1\",\n        \"kind\": \"battery\",\n        \"x\": 0,\n        \"y\": 0,\n        \"rot\": 0,\n        \"flip\": false,\n        \"props\": {\n          \"voltage\": \"9\",\n          \"rint\": \"1\"\n        }\n      },\n      {\n        \"id\": \"SW1\",\n        \"kind\": \"switch\",\n        \"x\": 4,\n        \"y\": -6,\n        \"rot\": 0,\n        \"flip\": false,\n        \"props\": {\n          \"closed\": true,\n          \"ron\": \"10m\"\n        }\n      },\n      {\n        \"id\": \"R1\",\n        \"kind\": \"resistor\",\n        \"x\": 10,\n        \"y\": -6,\n        \"rot\": 0,\n        \"flip\": false,\n        \"props\": {\n          \"value\": \"390\",\n          \"power\": \"0.25\",\n          \"tolerance\": \"5%\"\n        }\n      },\n      {\n        \"id\": \"D1\",\n        \"kind\": \"led\",\n        \"x\": 14,\n        \"y\": -4,\n        \"rot\": 90,\n        \"flip\": false,\n        \"props\": {\n          \"colour\": \"red\",\n          \"imax\": \"20m\"\n        }\n      },\n      {\n        \"id\": \"GND1\",\n        \"kind\": \"ground\",\n        \"x\": 0,\n        \"y\": 4,\n        \"rot\": 0,\n        \"flip\": false,\n        \"props\": {}\n      }\n    ],\n    \"wires\": [\n      {\n        \"id\": \"w1\",\n        \"pts\": [\n          [\n            0,\n            -2\n          ],\n          [\n            0,\n            -6\n          ],\n          [\n            2,\n            -6\n          ]\n        ]\n      },\n      {\n        \"id\": \"w2\",\n        \"pts\": [\n          [\n            6,\n            -6\n          ],\n          [\n            8,\n            -6\n          ]\n        ]\n      },\n      {\n        \"id\": \"w3\",\n        \"pts\": [\n          [\n            12,\n            -6\n          ],\n          [\n            14,\n            -6\n          ]\n        ]\n      },\n      {\n        \"id\": \"w4\",\n        \"pts\": [\n          [\n            14,\n            -2\n          ],\n          [\n            14,\n            4\n          ],\n          [\n            0,\n            4\n          ],\n          [\n            0,\n            2\n          ]\n        ]\n      }\n    ],\n    \"notes\": [\n      {\n        \"id\": \"n1\",\n        \"x\": 17,\n        \"y\": -7,\n        \"text\": \"R = (9 V − 1.9 V) / 0.02 A ≈ 355 Ω → 390 Ω\"\n      },\n      {\n        \"id\": \"n2\",\n        \"x\": 17,\n        \"y\": -5,\n        \"text\": \"Try 47 Ω to see the LED burn out\"\n      }\n    ],\n    \"sim\": {\n      \"mode\": \"op\",\n      \"tran\": {\n        \"tstop\": \"10m\",\n        \"tstep\": \"10u\",\n        \"method\": \"trap\",\n        \"uic\": false\n      },\n      \"ac\": {\n        \"fstart\": \"10\",\n        \"fstop\": \"1Meg\",\n        \"ppd\": 20\n      },\n      \"dc\": {\n        \"start\": \"0\",\n        \"stop\": \"10\",\n        \"step\": \"0.1\"\n      },\n      \"speed\": 0.001\n    },\n    \"description\": \"Sizing an LED resistor: R = (Vs − Vf) / If = (9 V − 1.9 V) / 20 mA ≈ 355 Ω → 390 Ω (E12), giving ≈ 18 mA.\",\n    \"instruments\": {\n      \"meter\": {\n        \"mode\": \"A\",\n        \"part\": \"D1\"\n      }\n    }\n  }\n]"
          },
          "notes": {
            "title": "Backup notes (optional)",
            "type": "string",
            "maxLength": 4000,
            "default": ""
          },
          "created": {
            "title": "Backup date (optional)",
            "description": "Recorded as the backup and file date. Empty = no date, so the same files always give the identical backup.",
            "type": "string",
            "format": "date"
          }
        },
        "required": []
      },
      "BundlekeepBackupBuilderResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "summary",
              "inventory",
              "skippedDuplicates",
              "backupFile"
            ],
            "properties": {
              "summary": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "files",
                  "bytes",
                  "apps",
                  "unknown",
                  "embeddedDataUrls",
                  "verified",
                  "changed",
                  "unchecked",
                  "warnings"
                ],
                "properties": {
                  "files": {
                    "type": "integer"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "apps": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "integer"
                    }
                  },
                  "unknown": {
                    "type": "integer"
                  },
                  "embeddedDataUrls": {
                    "type": "integer"
                  },
                  "verified": {
                    "type": "integer"
                  },
                  "changed": {
                    "type": "integer"
                  },
                  "unchecked": {
                    "type": "integer"
                  },
                  "warnings": {
                    "type": "integer"
                  }
                }
              },
              "inventory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "app",
                    "format",
                    "projectName",
                    "bytes",
                    "embeddedDataUrls",
                    "sha256",
                    "check",
                    "warnings"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "app": {
                      "type": "string"
                    },
                    "format": {
                      "type": "string"
                    },
                    "projectName": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "embeddedDataUrls": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "check": {
                      "enum": [
                        "verified",
                        "changed",
                        "unchecked"
                      ]
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "skippedDuplicates": {
                "type": "integer"
              },
              "backupFile": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "BundlekeepBackupVerifierInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "backup": {
            "title": "Backup (JSON text)",
            "description": "Paste a .bundlekeep.json backup, or upload the file below.",
            "type": "string",
            "maxLength": 14000000,
            "default": "{\n  \"format\": \"bundlekeep\",\n  \"version\": 1,\n  \"name\": \"Workshop backup\",\n  \"items\": [\n    {\n      \"name\": \"base-cabinet-600.kerfwise.json\",\n      \"content\": \"{\\n  \\\"format\\\": \\\"kerfwise\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"Base cabinet 600\\\",\\n  \\\"cabinets\\\": [\\n    {\\n      \\\"id\\\": \\\"c1\\\",\\n      \\\"name\\\": \\\"Base 600\\\",\\n      \\\"type\\\": \\\"base\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"params\\\": {\\n        \\\"width\\\": 600,\\n        \\\"height\\\": 870,\\n        \\\"depth\\\": 560,\\n        \\\"doorCount\\\": 1,\\n        \\\"shelfCount\\\": 1,\\n        \\\"topType\\\": \\\"rails\\\",\\n        \\\"countertop\\\": false\\n      }\\n    }\\n  ]\\n}\",\n      \"app\": \"kerfwise\",\n      \"format\": \"kerfwise\",\n      \"sha256\": \"e6f17c489b32c4e577c7c857a650bbbbbf8a1d2f1c9daaf8718ce7f6e0e3e6dc\",\n      \"source\": \"template\"\n    },\n    {\n      \"name\": \"led-with-series-resistor.ohmforge.json\",\n      \"content\": \"{\\n  \\\"format\\\": \\\"ohmforge\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"LED with series resistor\\\",\\n  \\\"parts\\\": [\\n    {\\n      \\\"id\\\": \\\"BT1\\\",\\n      \\\"kind\\\": \\\"battery\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 0,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"voltage\\\": \\\"9\\\",\\n        \\\"rint\\\": \\\"1\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"SW1\\\",\\n      \\\"kind\\\": \\\"switch\\\",\\n      \\\"x\\\": 4,\\n      \\\"y\\\": -6,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"closed\\\": true,\\n        \\\"ron\\\": \\\"10m\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"R1\\\",\\n      \\\"kind\\\": \\\"resistor\\\",\\n      \\\"x\\\": 10,\\n      \\\"y\\\": -6,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"value\\\": \\\"390\\\",\\n        \\\"power\\\": \\\"0.25\\\",\\n        \\\"tolerance\\\": \\\"5%\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"D1\\\",\\n      \\\"kind\\\": \\\"led\\\",\\n      \\\"x\\\": 14,\\n      \\\"y\\\": -4,\\n      \\\"rot\\\": 90,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {\\n        \\\"colour\\\": \\\"red\\\",\\n        \\\"imax\\\": \\\"20m\\\"\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"GND1\\\",\\n      \\\"kind\\\": \\\"ground\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 4,\\n      \\\"rot\\\": 0,\\n      \\\"flip\\\": false,\\n      \\\"props\\\": {}\\n    }\\n  ],\\n  \\\"wires\\\": [\\n    {\\n      \\\"id\\\": \\\"w1\\\",\\n      \\\"pts\\\": [\\n        [\\n          0,\\n          -2\\n        ],\\n        [\\n          0,\\n          -6\\n        ],\\n        [\\n          2,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w2\\\",\\n      \\\"pts\\\": [\\n        [\\n          6,\\n          -6\\n        ],\\n        [\\n          8,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w3\\\",\\n      \\\"pts\\\": [\\n        [\\n          12,\\n          -6\\n        ],\\n        [\\n          14,\\n          -6\\n        ]\\n      ]\\n    },\\n    {\\n      \\\"id\\\": \\\"w4\\\",\\n      \\\"pts\\\": [\\n        [\\n          14,\\n          -2\\n        ],\\n        [\\n          14,\\n          4\\n        ],\\n        [\\n          0,\\n          4\\n        ],\\n        [\\n          0,\\n          2\\n        ]\\n      ]\\n    }\\n  ],\\n  \\\"notes\\\": [\\n    {\\n      \\\"id\\\": \\\"n1\\\",\\n      \\\"x\\\": 17,\\n      \\\"y\\\": -7,\\n      \\\"text\\\": \\\"R = (9 V − 1.9 V) / 0.02 A ≈ 355 Ω → 390 Ω\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"n2\\\",\\n      \\\"x\\\": 17,\\n      \\\"y\\\": -5,\\n      \\\"text\\\": \\\"Try 47 Ω to see the LED burn out\\\"\\n    }\\n  ],\\n  \\\"sim\\\": {\\n    \\\"mode\\\": \\\"op\\\",\\n    \\\"tran\\\": {\\n      \\\"tstop\\\": \\\"10m\\\",\\n      \\\"tstep\\\": \\\"10u\\\",\\n      \\\"method\\\": \\\"trap\\\",\\n      \\\"uic\\\": false\\n    },\\n    \\\"ac\\\": {\\n      \\\"fstart\\\": \\\"10\\\",\\n      \\\"fstop\\\": \\\"1Meg\\\",\\n      \\\"ppd\\\": 20\\n    },\\n    \\\"dc\\\": {\\n      \\\"start\\\": \\\"0\\\",\\n      \\\"stop\\\": \\\"10\\\",\\n      \\\"step\\\": \\\"0.1\\\"\\n    },\\n    \\\"speed\\\": 0.001\\n  },\\n  \\\"description\\\": \\\"Sizing an LED resistor: R = (Vs − Vf) / If = (9 V − 1.9 V) / 20 mA ≈ 355 Ω → 390 Ω (E12), giving ≈ 18 mA.\\\",\\n  \\\"instruments\\\": {\\n    \\\"meter\\\": {\\n      \\\"mode\\\": \\\"A\\\",\\n      \\\"part\\\": \\\"D1\\\"\\n    }\\n  }\\n}\",\n      \"app\": \"ohmforge\",\n      \"format\": \"ohmforge\",\n      \"sha256\": \"57ea75125b44a8784e6b84b321cf3ae296a7a7f7584606a4e30067278bb0a51b\",\n      \"source\": \"template\"\n    },\n    {\n      \"name\": \"3-station-line.twinworks.json\",\n      \"content\": \"{\\n  \\\"format\\\": \\\"twinworks-project\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"3-station line\\\",\\n  \\\"active\\\": \\\"base\\\",\\n  \\\"scenarios\\\": [\\n    {\\n      \\\"id\\\": \\\"base\\\",\\n      \\\"name\\\": \\\"Baseline\\\",\\n      \\\"notes\\\": \\\"\\\",\\n      \\\"model\\\": {\\n        \\\"format\\\": \\\"twinworks-model\\\",\\n        \\\"version\\\": 1,\\n        \\\"name\\\": \\\"3-station line\\\",\\n        \\\"description\\\": \\\"A simple serial line: random arrivals, three machines with triangular cycle times and two small buffers. The classic starting point.\\\",\\n        \\\"settings\\\": {\\n          \\\"horizon\\\": 28800,\\n          \\\"warmup\\\": 1800,\\n          \\\"seed\\\": 12345,\\n          \\\"replications\\\": 5,\\n          \\\"confidence\\\": 0.95,\\n          \\\"sampleInterval\\\": null,\\n          \\\"currency\\\": \\\"EUR\\\",\\n          \\\"timeUnit\\\": \\\"s\\\",\\n          \\\"lengthUnit\\\": \\\"m\\\",\\n          \\\"gridSize\\\": 0.5\\n        },\\n        \\\"products\\\": [\\n          {\\n            \\\"id\\\": \\\"P1\\\",\\n            \\\"name\\\": \\\"Bracket\\\",\\n            \\\"color\\\": \\\"#2563eb\\\",\\n            \\\"priority\\\": 0,\\n            \\\"materialCost\\\": 4.2,\\n            \\\"price\\\": 19,\\n            \\\"routing\\\": []\\n          }\\n        ],\\n        \\\"calendars\\\": [],\\n        \\\"pools\\\": [],\\n        \\\"nodes\\\": [\\n          {\\n            \\\"id\\\": \\\"SRC1\\\",\\n            \\\"type\\\": \\\"source\\\",\\n            \\\"name\\\": \\\"Raw parts\\\",\\n            \\\"x\\\": 2,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"arrival\\\": \\\"interval\\\",\\n            \\\"interval\\\": {\\n              \\\"type\\\": \\\"exponential\\\",\\n              \\\"mean\\\": 55\\n            },\\n            \\\"firstAt\\\": 0,\\n            \\\"batchSize\\\": 1,\\n            \\\"maxArrivals\\\": null,\\n            \\\"mix\\\": [],\\n            \\\"schedule\\\": [],\\n            \\\"repeatEvery\\\": null,\\n            \\\"whenBlocked\\\": \\\"queue\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M1\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Saw\\\",\\n            \\\"x\\\": 6,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 35,\\n              \\\"mode\\\": 40,\\n              \\\"max\\\": 50\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 38,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"B1\\\",\\n            \\\"type\\\": \\\"buffer\\\",\\n            \\\"name\\\": \\\"Buffer 1\\\",\\n            \\\"x\\\": 10,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"capacity\\\": 5,\\n            \\\"discipline\\\": \\\"fifo\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M2\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Mill\\\",\\n            \\\"x\\\": 14,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 40,\\n              \\\"mode\\\": 48,\\n              \\\"max\\\": 58\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 65,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"B2\\\",\\n            \\\"type\\\": \\\"buffer\\\",\\n            \\\"name\\\": \\\"Buffer 2\\\",\\n            \\\"x\\\": 18,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"capacity\\\": 5,\\n            \\\"discipline\\\": \\\"fifo\\\"\\n          },\\n          {\\n            \\\"id\\\": \\\"M3\\\",\\n            \\\"type\\\": \\\"machine\\\",\\n            \\\"name\\\": \\\"Deburr\\\",\\n            \\\"x\\\": 22,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\",\\n            \\\"servers\\\": 1,\\n            \\\"cycle\\\": {\\n              \\\"type\\\": \\\"triangular\\\",\\n              \\\"min\\\": 30,\\n              \\\"mode\\\": 38,\\n              \\\"max\\\": 45\\n            },\\n            \\\"cycleByProduct\\\": {},\\n            \\\"setup\\\": null,\\n            \\\"idealCycleTime\\\": null,\\n            \\\"batchSize\\\": 1,\\n            \\\"scrapPct\\\": 0,\\n            \\\"failure\\\": null,\\n            \\\"maintenance\\\": null,\\n            \\\"operator\\\": null,\\n            \\\"costPerHour\\\": 30,\\n            \\\"costPerPart\\\": 0\\n          },\\n          {\\n            \\\"id\\\": \\\"OUT1\\\",\\n            \\\"type\\\": \\\"sink\\\",\\n            \\\"name\\\": \\\"Finished goods\\\",\\n            \\\"x\\\": 26,\\n            \\\"y\\\": 6,\\n            \\\"rotation\\\": 0,\\n            \\\"calendar\\\": null,\\n            \\\"routing\\\": \\\"first\\\",\\n            \\\"note\\\": \\\"\\\"\\n          }\\n        ],\\n        \\\"links\\\": [\\n          {\\n            \\\"id\\\": \\\"L1\\\",\\n            \\\"from\\\": \\\"SRC1\\\",\\n            \\\"to\\\": \\\"M1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L2\\\",\\n            \\\"from\\\": \\\"M1\\\",\\n            \\\"to\\\": \\\"B1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L3\\\",\\n            \\\"from\\\": \\\"B1\\\",\\n            \\\"to\\\": \\\"M2\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L4\\\",\\n            \\\"from\\\": \\\"M2\\\",\\n            \\\"to\\\": \\\"B2\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L5\\\",\\n            \\\"from\\\": \\\"B2\\\",\\n            \\\"to\\\": \\\"M3\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          },\\n          {\\n            \\\"id\\\": \\\"L6\\\",\\n            \\\"from\\\": \\\"M3\\\",\\n            \\\"to\\\": \\\"OUT1\\\",\\n            \\\"weight\\\": 1,\\n            \\\"products\\\": [],\\n            \\\"kind\\\": \\\"normal\\\",\\n            \\\"qty\\\": 1\\n          }\\n        ],\\n        \\\"cost\\\": {\\n          \\\"overheadPerHour\\\": 20,\\n          \\\"scrapDisposal\\\": 0\\n        },\\n        \\\"notes\\\": []\\n      }\\n    }\\n  ]\\n}\",\n      \"app\": \"twinworks\",\n      \"format\": \"twinworks-project\",\n      \"sha256\": \"4b094bfae3303ae29c7a57e3f3c835725ce4150c8dd350d6ca62a2aa20959008\",\n      \"source\": \"template\"\n    },\n    {\n      \"name\": \"name-tag.threadsmith.json\",\n      \"content\": \"{\\n  \\\"format\\\": \\\"threadsmith\\\",\\n  \\\"version\\\": 1,\\n  \\\"name\\\": \\\"Name tag\\\",\\n  \\\"hoop\\\": \\\"130x180\\\",\\n  \\\"palette\\\": [\\n    {\\n      \\\"id\\\": \\\"sapphire\\\",\\n      \\\"name\\\": \\\"Sapphire\\\",\\n      \\\"hex\\\": \\\"#0f4c81\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"coral\\\",\\n      \\\"name\\\": \\\"Coral\\\",\\n      \\\"hex\\\": \\\"#e8705a\\\"\\n    },\\n    {\\n      \\\"id\\\": \\\"ivory\\\",\\n      \\\"name\\\": \\\"Ivory\\\",\\n      \\\"hex\\\": \\\"#fffbf0\\\"\\n    }\\n  ],\\n  \\\"objects\\\": [\\n    {\\n      \\\"id\\\": \\\"frame\\\",\\n      \\\"name\\\": \\\"Frame\\\",\\n      \\\"kind\\\": \\\"rect\\\",\\n      \\\"color\\\": \\\"sapphire\\\",\\n      \\\"x\\\": -45,\\n      \\\"y\\\": -22,\\n      \\\"w\\\": 90,\\n      \\\"h\\\": 44,\\n      \\\"r\\\": 8,\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"satin\\\",\\n        \\\"mode\\\": \\\"border\\\",\\n        \\\"width\\\": 3,\\n        \\\"density\\\": 0.4\\n      },\\n      \\\"underlay\\\": {\\n        \\\"center\\\": true\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"hello\\\",\\n      \\\"name\\\": \\\"Hello\\\",\\n      \\\"kind\\\": \\\"text\\\",\\n      \\\"color\\\": \\\"coral\\\",\\n      \\\"text\\\": \\\"Hello, my name is\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": -7,\\n      \\\"size\\\": 6,\\n      \\\"font\\\": \\\"single\\\",\\n      \\\"align\\\": \\\"center\\\",\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"running\\\",\\n        \\\"length\\\": 1.8,\\n        \\\"bean\\\": true\\n      }\\n    },\\n    {\\n      \\\"id\\\": \\\"name\\\",\\n      \\\"name\\\": \\\"Name\\\",\\n      \\\"kind\\\": \\\"text\\\",\\n      \\\"color\\\": \\\"sapphire\\\",\\n      \\\"text\\\": \\\"Ada\\\",\\n      \\\"x\\\": 0,\\n      \\\"y\\\": 14,\\n      \\\"size\\\": 16,\\n      \\\"font\\\": \\\"single\\\",\\n      \\\"align\\\": \\\"center\\\",\\n      \\\"spacing\\\": 1,\\n      \\\"stitch\\\": {\\n        \\\"type\\\": \\\"satin\\\",\\n        \\\"width\\\": 2.4,\\n        \\\"density\\\": 0.36\\n      },\\n      \\\"underlay\\\": {\\n        \\\"center\\\": true\\n      }\\n    }\\n  ]\\n}\",\n      \"app\": \"threadsmith\",\n      \"format\": \"threadsmith\",\n      \"sha256\": \"2c85ac2d4b00a28a099fb597b0fb21decbf41538dca1fac2e3ca3c5a6178dfee\",\n      \"source\": \"template\"\n    }\n  ]\n}"
          },
          "backupFile": {
            "title": "Backup file (optional)",
            "description": "Used instead of the pasted text when given. Upload as {filename, contentType?, contentBase64}. Max 53711 KiB. Accepts .json,application/json.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "extract": {
            "title": "File to extract (optional)",
            "description": "Exact file name from the backup; the tool returns that project file for download.",
            "type": "string",
            "maxLength": 160,
            "default": ""
          }
        },
        "required": []
      },
      "BundlekeepBackupVerifierResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "summary",
              "inventory",
              "checklist",
              "extracted"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "summary": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "files",
                  "bytes",
                  "apps",
                  "unknown",
                  "embeddedDataUrls",
                  "verified",
                  "changed",
                  "unchecked",
                  "warnings"
                ],
                "properties": {
                  "files": {
                    "type": "integer"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "apps": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "integer"
                    }
                  },
                  "unknown": {
                    "type": "integer"
                  },
                  "embeddedDataUrls": {
                    "type": "integer"
                  },
                  "verified": {
                    "type": "integer"
                  },
                  "changed": {
                    "type": "integer"
                  },
                  "unchecked": {
                    "type": "integer"
                  },
                  "warnings": {
                    "type": "integer"
                  }
                }
              },
              "inventory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "app",
                    "format",
                    "projectName",
                    "bytes",
                    "embeddedDataUrls",
                    "sha256",
                    "check",
                    "warnings"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "app": {
                      "type": "string"
                    },
                    "format": {
                      "type": "string"
                    },
                    "projectName": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "embeddedDataUrls": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "check": {
                      "enum": [
                        "verified",
                        "changed",
                        "unchecked"
                      ]
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "checklist": {
                "type": "string"
              },
              "extracted": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "FileEncryptionStudioInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action": {
            "title": "Action",
            "type": "string",
            "enum": [
              "encrypt",
              "decrypt"
            ],
            "default": "encrypt"
          },
          "file": {
            "title": "File",
            "description": "Up to 100 MB. With JavaScript on, the file is processed in your browser and never uploaded. Upload as {filename, contentType?, contentBase64}. Max 102400 KiB. Accepts */*.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "keyMode": {
            "title": "Key",
            "type": "string",
            "enum": [
              "password",
              "rawkey"
            ],
            "default": "password"
          },
          "password": {
            "title": "Password",
            "description": "Use a long passphrase. It cannot be recovered: without it the file is lost.",
            "type": "string",
            "maxLength": 1024
          },
          "rawKey": {
            "title": "Raw key (64 hex or 44 Base64 characters)",
            "description": "Raw-key mode. Leave empty when encrypting to generate a random key (shown once).",
            "type": "string",
            "maxLength": 200
          },
          "iterations": {
            "title": "PBKDF2 iterations (encrypt)",
            "description": "At least 600,000 (OWASP 2023 recommendation for PBKDF2-HMAC-SHA-256). Decryption reads the value from the file.",
            "type": "integer",
            "minimum": 600000,
            "maximum": 10000000,
            "default": 600000
          },
          "seed": {
            "title": "Demo seed (optional; fixes salt and IV — never for real files)",
            "description": "Only for reproducible demos. Reusing a salt/IV with the same password breaks AES-GCM security.",
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "file"
        ]
      },
      "FileEncryptionStudioResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "action",
              "format",
              "kdf",
              "iterations",
              "saltHex",
              "ivHex",
              "headerBytes",
              "inputBytes",
              "outputBytes",
              "generatedKeyHex",
              "seeded",
              "artifact"
            ],
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "encrypt",
                  "decrypt"
                ]
              },
              "format": {
                "type": "string",
                "description": "Container format id."
              },
              "kdf": {
                "type": "string",
                "enum": [
                  "pbkdf2-sha256",
                  "raw-key"
                ]
              },
              "iterations": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "saltHex": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ivHex": {
                "type": "string"
              },
              "headerBytes": {
                "type": "integer"
              },
              "inputBytes": {
                "type": "integer"
              },
              "outputBytes": {
                "type": "integer"
              },
              "generatedKeyHex": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Only when a random raw key was generated for you."
              },
              "seeded": {
                "type": "boolean"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "HashHmacCalculatorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Text",
            "description": "Hashed exactly as entered (no trailing newline is added). Leave empty when you choose a file.",
            "type": "string",
            "maxLength": 1000000
          },
          "textFormat": {
            "title": "Text is",
            "type": "string",
            "enum": [
              "utf8",
              "hex",
              "base64"
            ],
            "default": "utf8"
          },
          "file": {
            "title": "Or a file",
            "description": "Any file up to 100 MB. With JavaScript on it is hashed in your browser and never uploaded. Upload as {filename, contentType?, contentBase64}. Max 102400 KiB. Accepts */*.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "algorithms": {
            "title": "Algorithms",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "md5",
                "sha1",
                "sha224",
                "sha256",
                "sha384",
                "sha512",
                "sha3-256",
                "sha3-512",
                "blake2b512",
                "blake2s256",
                "crc32"
              ]
            },
            "default": [
              "md5",
              "sha1",
              "sha256",
              "sha512",
              "sha3-256",
              "blake2b512",
              "crc32"
            ]
          },
          "hmacKey": {
            "title": "HMAC key (optional)",
            "description": "With a key, an HMAC (RFC 2104) is computed instead of a plain hash.",
            "type": "string",
            "maxLength": 4096
          },
          "hmacKeyFormat": {
            "title": "Key is",
            "type": "string",
            "enum": [
              "utf8",
              "hex",
              "base64"
            ],
            "default": "utf8"
          },
          "outputEncoding": {
            "title": "Output",
            "type": "string",
            "enum": [
              "hex",
              "base64"
            ],
            "default": "hex"
          },
          "expected": {
            "title": "Expected hash to compare (optional)",
            "description": "Paste a published checksum (hex or Base64); it is compared with every computed value.",
            "type": "string",
            "maxLength": 300
          }
        },
        "required": []
      },
      "HashHmacCalculatorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "source",
              "inputBytes",
              "mode",
              "encoding",
              "digests",
              "comparison"
            ],
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "text",
                  "file"
                ]
              },
              "filename": {
                "type": "string"
              },
              "inputBytes": {
                "type": "integer"
              },
              "mode": {
                "type": "string",
                "enum": [
                  "hash",
                  "hmac"
                ]
              },
              "encoding": {
                "type": "string",
                "enum": [
                  "hex",
                  "base64"
                ]
              },
              "digests": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "algorithm",
                    "label",
                    "bits",
                    "hex",
                    "base64",
                    "note"
                  ],
                  "properties": {
                    "algorithm": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "bits": {
                      "type": "integer"
                    },
                    "hex": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "base64": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "comparison": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "expected",
                  "format",
                  "matched"
                ],
                "properties": {
                  "expected": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  },
                  "matched": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "FileFormatDoctorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "title": "File",
            "description": "Analysed in memory and not stored. Max 10 MiB. Upload as {filename, contentType?, contentBase64}. Max 10240 KiB. Accepts */*.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "filename": {
            "title": "File name (for hex input)",
            "description": "Used to compare the extension with the detected format. Ignored when a file is uploaded.",
            "type": "string",
            "maxLength": 255
          },
          "hexBytes": {
            "title": "Or: first bytes as hex",
            "description": "E.g. from `xxd -l 512 file` or `Format-Hex`. At least 16 bytes recommended; 512+ for ZIP-based formats.",
            "type": "string",
            "maxLength": 140000
          }
        },
        "required": []
      },
      "FileFormatDoctorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "input",
              "detected",
              "alternatives",
              "extensionMatches",
              "encrypted",
              "executable",
              "container",
              "text",
              "diagnoses",
              "conversions"
            ],
            "properties": {
              "input": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mode",
                  "filename",
                  "extension",
                  "bytesAnalyzed",
                  "completeFile"
                ],
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "upload",
                      "hex"
                    ]
                  },
                  "filename": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "extension": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "bytesAnalyzed": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "completeFile": {
                    "type": "boolean",
                    "description": "True for uploads (truncation checks possible); false for hex samples."
                  }
                }
              },
              "detected": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "id",
                  "name",
                  "mime",
                  "category",
                  "extensions",
                  "confidence",
                  "evidence"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  },
                  "extensions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "confidence": {
                    "type": "string",
                    "enum": [
                      "high",
                      "medium",
                      "low"
                    ]
                  },
                  "evidence": {
                    "type": "string"
                  }
                }
              },
              "alternatives": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "name",
                    "evidence"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "evidence": {
                      "type": "string"
                    }
                  }
                }
              },
              "extensionMatches": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "encrypted": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "null = cannot be determined from the bytes provided."
              },
              "executable": {
                "type": "boolean"
              },
              "container": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "entries",
                  "sampleEntries",
                  "encryptedEntries",
                  "hasEndRecord",
                  "mimetype"
                ],
                "properties": {
                  "entries": {
                    "type": "integer"
                  },
                  "sampleEntries": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 20
                  },
                  "encryptedEntries": {
                    "type": "integer"
                  },
                  "hasEndRecord": {
                    "type": "boolean"
                  },
                  "mimetype": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              "text": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "encoding",
                  "bom",
                  "mojibake"
                ],
                "properties": {
                  "encoding": {
                    "type": "string"
                  },
                  "bom": {
                    "type": "boolean"
                  },
                  "mojibake": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "diagnoses": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "severity",
                    "message",
                    "evidence"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "string",
                      "enum": [
                        "critical",
                        "warning",
                        "info",
                        "ok"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "evidence": {
                      "type": "string"
                    }
                  }
                }
              },
              "conversions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "goal",
                    "tool",
                    "command",
                    "note"
                  ],
                  "properties": {
                    "goal": {
                      "type": "string"
                    },
                    "tool": {
                      "type": "string"
                    },
                    "command": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}