so.sprk.embed.defs

sprk.so

{
  "id": "so.sprk.embed.defs",
  "defs": {
    "frame": {
      "type": "object",
      "required": [
        "x",
        "y",
        "w",
        "h"
      ],
      "properties": {
        "h": {
          "type": "integer",
          "maximum": 10000,
          "minimum": 1
        },
        "w": {
          "type": "integer",
          "maximum": 10000,
          "minimum": 1
        },
        "x": {
          "type": "integer",
          "maximum": 10000,
          "minimum": 0
        },
        "y": {
          "type": "integer",
          "maximum": 10000,
          "minimum": 0
        }
      },
      "description": "Bounding box in 10,000-based normalized coordinates relative to media canvas dimensions."
    },
    "views": {
      "type": "array",
      "items": {
        "refs": [
          "so.sprk.embed.mention#view",
          "so.sprk.embed.record#view"
        ],
        "type": "union"
      }
    },
    "embeds": {
      "type": "array",
      "items": {
        "refs": [
          "so.sprk.embed.mention",
          "so.sprk.embed.record"
        ],
        "type": "union"
      }
    },
    "mediaRef": {
      "type": "object",
      "required": [
        "index"
      ],
      "properties": {
        "index": {
          "type": "integer",
          "minimum": 0
        }
      },
      "description": "Optional media locator for records containing multiple media items."
    },
    "placement": {
      "type": "object",
      "required": [
        "frame"
      ],
      "properties": {
        "frame": {
          "ref": "#frame",
          "type": "ref"
        },
        "zIndex": {
          "type": "integer",
          "minimum": 0
        },
        "mediaRef": {
          "ref": "#mediaRef",
          "type": "ref"
        },
        "rotation": {
          "type": "integer",
          "maximum": 359,
          "minimum": 0
        }
      },
      "description": "Placement and layer metadata for an embed on a media canvas."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Shared definitions for Spark interactive embeds."
}

Validate Record

Validate a record against so.sprk.embed.defs

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:cveom2iroj3mt747sd4qqnr2
CID
bafyreigc5skzboog5rctw6i3zgmcloars3j5gsvafuh6ylnftq5ujdljsq
Indexed At
2026-04-21 22:28 UTC
AT-URI
at://did:plc:cveom2iroj3mt747sd4qqnr2/com.atproto.lexicon.schema/so.sprk.embed.defs

Referenced Schemas (4)

Lexicon Garden

@