{
  "manifest": {
    "spekkr": 1,
    "id": "vex/file-uploads",
    "name": "File uploads",
    "summary": "Uploads that go straight from the browser to your storage, with size and type checks, private downloads and nothing left orphaned.",
    "keywords": [
      "s3",
      "r2",
      "attachments",
      "images",
      "presigned",
      "documents"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "vex",
      "name": "Vex"
    },
    "targets": {
      "platforms": [
        "web",
        "backend"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "max_file_mb",
          "label": "Largest file, in megabytes",
          "default": "25",
          "help": "A whole number."
        },
        {
          "key": "allowed_types",
          "label": "File types allowed",
          "default": "image/png,image/jpeg,application/pdf",
          "help": "Media types, separated by commas."
        }
      ],
      "options": [
        {
          "key": "image_previews",
          "label": "Small previews of images",
          "default": false,
          "help": "Makes a preview of each image, at most 512 pixels on its long side."
        },
        {
          "key": "scan_hook",
          "label": "Hold files until they are scanned",
          "default": false,
          "help": "A file cannot be downloaded until a scanner you plug in has passed it."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        },
        {
          "key": "storage",
          "label": "Where files are kept",
          "choices": [
            "s3_compatible",
            "local_disk"
          ],
          "default": "s3_compatible",
          "help": "A bucket that speaks the S3 API, or a folder on the server."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, rules and flows."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "accounts": [
        "A storage bucket that speaks the S3 API, unless files are kept on local disk"
      ],
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/strongroom-ready-to-send.png",
        "shots/strongroom-queue.png",
        "shots/strongroom-mobile.png",
        "shots/strongroom-sign-in.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL",
        "STORAGE_ENDPOINT",
        "STORAGE_BUCKET",
        "STORAGE_ACCESS_KEY_ID",
        "STORAGE_SECRET_ACCESS_KEY"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/file-uploads."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/strongroom-mobile.png": "files/shots/strongroom-mobile.png",
      "shots/strongroom-queue.png": "files/shots/strongroom-queue.png",
      "shots/strongroom-ready-to-send.png": "files/shots/strongroom-ready-to-send.png",
      "shots/strongroom-sign-in.png": "files/shots/strongroom-sign-in.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "vex",
  "uploaded": {
    "shots/strongroom-mobile.png": {
      "bytes": 85938,
      "type": "image/png"
    },
    "shots/strongroom-queue.png": {
      "bytes": 106092,
      "type": "image/png"
    },
    "shots/strongroom-ready-to-send.png": {
      "bytes": 97286,
      "type": "image/png"
    },
    "shots/strongroom-sign-in.png": {
      "bytes": 90252,
      "type": "image/png"
    }
  }
}
