# app.lexidraw.scene

> Published by [lexidraw.app](https://lexicon.garden/identity/did:web:lexidraw.app)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:lexidraw.app/app.lexidraw.scene)
- [Documentation](https://lexicon.garden/lexicon/did:web:lexidraw.app/app.lexidraw.scene/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:lexidraw.app/app.lexidraw.scene/examples)

## Definitions

### `app.lexidraw.scene`

**Type**: `record`

An Excalidraw drawing. The full scene (elements, appState and embedded image files as dataURLs) is stored as a gzipped JSON blob

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Human-readable drawing name. |
| `scene` | `blob` | Yes | Gzipped Excalidraw scene JSON (serializeAsJSON output, gzip level 6). |
| `thumb` | `blob` | No | WebP preview of the scene (max 1024px on the longest side). |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "app.lexidraw.scene",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "scene",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Human-readable drawing name.",
            "maxGraphemes": 200
          },
          "scene": {
            "type": "blob",
            "accept": [
              "application/gzip"
            ],
            "maxSize": 50000000,
            "description": "Gzipped Excalidraw scene JSON (serializeAsJSON output, gzip level 6)."
          },
          "thumb": {
            "type": "blob",
            "accept": [
              "image/webp"
            ],
            "maxSize": 2000000,
            "description": "WebP preview of the scene (max 1024px on the longest side)."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "An Excalidraw drawing. The full scene (elements, appState and embedded image files as dataURLs) is stored as a gzipped JSON blob"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
