# io.atcr.manifest

> A container image manifest following OCI specification, stored in ATProto

- Kind: record
- Record key: tid
- Authority: atcr.io
- Lexicon: 1
- Published by [did:web:lexicon.atcr.io](https://lexicon.garden/identity/did:web:lexicon.atcr.io), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.manifest)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.manifest/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.manifest/analytics)

## Record (`io.atcr.manifest`)

Type: record · key tid

### Properties

- `annotations` (unknown): Optional OCI annotation metadata. Map of string keys to string values (e.g., org.opencontainers.image.title → 'My App').
- `config` (ref): Reference to image configuration blob
  - Reference: `#blobReference`
- `createdAt` (string · datetime, required): Record creation timestamp
- `digest` (string, required): Content digest (e.g., 'sha256:abc123...')
  - Constraints: maxLength: 128
- `holdDid` (string · did): DID of the hold service where blobs are stored (e.g., 'did:web:hold01.atcr.io'). Primary reference for hold resolution.
- `holdEndpoint` (string · uri): Hold service endpoint URL where blobs are stored. DEPRECATED: Use holdDid instead. Kept for backward compatibility.
- `layers` (array): Filesystem layers (for image manifests)
  - `items` (ref)
    - Reference: `#blobReference`
- `manifestBlob` (blob): The full OCI manifest stored as a blob in ATProto.
- `manifests` (array): Referenced manifests (for manifest lists/indexes)
  - `items` (ref)
    - Reference: `#manifestReference`
- `mediaType` (string, required): OCI media type
  - Constraints: maxLength: 128, knownValues: application/vnd.oci.image.manifest.v1+json | application/vnd.docker.distribution.manifest.v2+json | application/vnd.oci.image.index.v1+json | application/vnd.docker.distribution.manifest.list.v2+json
- `repository` (string, required): Repository name (e.g., 'myapp'). Scoped to user's DID.
  - Constraints: maxLength: 255
- `schemaVersion` (integer, required): OCI schema version (typically 2)
- `subject` (ref): Optional reference to another manifest (for attestations, signatures)
  - Reference: `#blobReference`

## #blobReference (`io.atcr.manifest#blobReference`)

Type: object

Reference to a blob stored in S3 or external storage

### Properties

- `annotations` (unknown): Optional OCI annotation metadata. Map of string keys to string values.
- `digest` (string, required): Content digest (e.g., 'sha256:...')
  - Constraints: maxLength: 128
- `mediaType` (string, required): MIME type of the blob
  - Constraints: maxLength: 128
- `size` (integer, required): Size in bytes
- `urls` (array): Optional direct URLs to blob (for BYOS)
  - `items` (string · uri)

## #manifestReference (`io.atcr.manifest#manifestReference`)

Type: object

Reference to a manifest in a manifest list/index

### Properties

- `annotations` (unknown): Optional OCI annotation metadata. Map of string keys to string values.
- `digest` (string, required): Content digest (e.g., 'sha256:...')
  - Constraints: maxLength: 128
- `mediaType` (string, required): Media type of the referenced manifest
  - Constraints: maxLength: 128
- `platform` (ref): Platform information for this manifest
  - Reference: `#platform`
- `size` (integer, required): Size in bytes

## #platform (`io.atcr.manifest#platform`)

Type: object

Platform information describing OS and architecture

### Properties

- `architecture` (string, required): CPU architecture (e.g., 'amd64', 'arm64', 'arm')
  - Constraints: maxLength: 32
- `os` (string, required): Operating system (e.g., 'linux', 'windows', 'darwin')
  - Constraints: maxLength: 32
- `osFeatures` (array): Optional OS features
  - `items` (string)
    - Constraints: maxLength: 64
- `osVersion` (string): Optional OS version
  - Constraints: maxLength: 64
- `variant` (string): Optional CPU variant (e.g., 'v7' for ARM)
  - Constraints: maxLength: 32

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blobReference": {
      "description": "Reference to a blob stored in S3 or external storage",
      "properties": {
        "annotations": {
          "description": "Optional OCI annotation metadata. Map of string keys to string values.",
          "type": "unknown"
        },
        "digest": {
          "description": "Content digest (e.g., 'sha256:...')",
          "maxLength": 128,
          "type": "string"
        },
        "mediaType": {
          "description": "MIME type of the blob",
          "maxLength": 128,
          "type": "string"
        },
        "size": {
          "description": "Size in bytes",
          "type": "integer"
        },
        "urls": {
          "description": "Optional direct URLs to blob (for BYOS)",
          "items": {
            "format": "uri",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "mediaType",
        "size",
        "digest"
      ],
      "type": "object"
    },
    "main": {
      "description": "A container image manifest following OCI specification, stored in ATProto",
      "key": "tid",
      "record": {
        "properties": {
          "annotations": {
            "description": "Optional OCI annotation metadata. Map of string keys to string values (e.g., org.opencontainers.image.title → 'My App').",
            "type": "unknown"
          },
          "config": {
            "description": "Reference to image configuration blob",
            "ref": "#blobReference",
            "type": "ref"
          },
          "createdAt": {
            "description": "Record creation timestamp",
            "format": "datetime",
            "type": "string"
          },
          "digest": {
            "description": "Content digest (e.g., 'sha256:abc123...')",
            "maxLength": 128,
            "type": "string"
          },
          "holdDid": {
            "description": "DID of the hold service where blobs are stored (e.g., 'did:web:hold01.atcr.io'). Primary reference for hold resolution.",
            "format": "did",
            "type": "string"
          },
          "holdEndpoint": {
            "description": "Hold service endpoint URL where blobs are stored. DEPRECATED: Use holdDid instead. Kept for backward compatibility.",
            "format": "uri",
            "type": "string"
          },
          "layers": {
            "description": "Filesystem layers (for image manifests)",
            "items": {
              "ref": "#blobReference",
              "type": "ref"
            },
            "type": "array"
          },
          "manifestBlob": {
            "description": "The full OCI manifest stored as a blob in ATProto.",
            "type": "blob"
          },
          "manifests": {
            "description": "Referenced manifests (for manifest lists/indexes)",
            "items": {
              "ref": "#manifestReference",
              "type": "ref"
            },
            "type": "array"
          },
          "mediaType": {
            "description": "OCI media type",
            "knownValues": [
              "application/vnd.oci.image.manifest.v1+json",
              "application/vnd.docker.distribution.manifest.v2+json",
              "application/vnd.oci.image.index.v1+json",
              "application/vnd.docker.distribution.manifest.list.v2+json"
            ],
            "maxLength": 128,
            "type": "string"
          },
          "repository": {
            "description": "Repository name (e.g., 'myapp'). Scoped to user's DID.",
            "maxLength": 255,
            "type": "string"
          },
          "schemaVersion": {
            "description": "OCI schema version (typically 2)",
            "type": "integer"
          },
          "subject": {
            "description": "Optional reference to another manifest (for attestations, signatures)",
            "ref": "#blobReference",
            "type": "ref"
          }
        },
        "required": [
          "repository",
          "digest",
          "mediaType",
          "schemaVersion",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "manifestReference": {
      "description": "Reference to a manifest in a manifest list/index",
      "properties": {
        "annotations": {
          "description": "Optional OCI annotation metadata. Map of string keys to string values.",
          "type": "unknown"
        },
        "digest": {
          "description": "Content digest (e.g., 'sha256:...')",
          "maxLength": 128,
          "type": "string"
        },
        "mediaType": {
          "description": "Media type of the referenced manifest",
          "maxLength": 128,
          "type": "string"
        },
        "platform": {
          "description": "Platform information for this manifest",
          "ref": "#platform",
          "type": "ref"
        },
        "size": {
          "description": "Size in bytes",
          "type": "integer"
        }
      },
      "required": [
        "mediaType",
        "size",
        "digest"
      ],
      "type": "object"
    },
    "platform": {
      "description": "Platform information describing OS and architecture",
      "properties": {
        "architecture": {
          "description": "CPU architecture (e.g., 'amd64', 'arm64', 'arm')",
          "maxLength": 32,
          "type": "string"
        },
        "os": {
          "description": "Operating system (e.g., 'linux', 'windows', 'darwin')",
          "maxLength": 32,
          "type": "string"
        },
        "osFeatures": {
          "description": "Optional OS features",
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "type": "array"
        },
        "osVersion": {
          "description": "Optional OS version",
          "maxLength": 64,
          "type": "string"
        },
        "variant": {
          "description": "Optional CPU variant (e.g., 'v7' for ARM)",
          "maxLength": 32,
          "type": "string"
        }
      },
      "required": [
        "architecture",
        "os"
      ],
      "type": "object"
    }
  },
  "id": "io.atcr.manifest",
  "lexicon": 1
}
```
