# place.hud.getPlayground

> What the playground starts a view from: the bundled views, to start from one; the component catalog, to complete what is typed; and HUD's themes, to draw it in. The same for everyone. No auth required.

- Kind: query
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getPlayground)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getPlayground/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getPlayground/analytics)

## Query (`place.hud.getPlayground`)

Type: query · GET

### Output (application/json)

- `catalog` (unknown, required): The components and the grammar of a view's document, as describe_collection gives them.
- `chat` (boolean): Whether this HUD serves the chat to the caller, at /chat: with no model to chat with it does not, nor where the operator names the accounts it answers and the caller, signed in or not, is none of them; then the pages name no Chat.
- `themes` (array, required): HUD's themes: light and dark, then the rest, as getWorkspace lists them.
  - `items` (ref)
    - Reference: `place.hud.defs#theme`
- `views` (array, required): The bundled views list_records, get_record and query draw, by name; app pages are not among them.
  - `items` (ref)
    - Reference: `#bundledView`

## #bundledView (`place.hud.getPlayground#bundledView`)

Type: object

A view HUD bundles, as a view given inline may be: less what only a bundled view may say at its top (app, records, profile and the like). What its layout does that only a bundled view may, a procedure called or a feed told what was read, stays: a problem the playground shows.

### Properties

- `app` (string, required): The app the bundled view names, as Bluesky.
  - Constraints: maxLength: 64
- `name` (string, required): Its file's name in views/ without .json, as grain-gallery-view.
  - Constraints: maxLength: 64
- `view` (unknown, required): Its place.hud.view document.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bundledView": {
      "description": "A view HUD bundles, as a view given inline may be: less what only a bundled view may say at its top (app, records, profile and the like). What its layout does that only a bundled view may, a procedure called or a feed told what was read, stays: a problem the playground shows.",
      "properties": {
        "app": {
          "description": "The app the bundled view names, as Bluesky.",
          "maxLength": 64,
          "type": "string"
        },
        "name": {
          "description": "Its file's name in views/ without .json, as grain-gallery-view.",
          "maxLength": 64,
          "type": "string"
        },
        "view": {
          "description": "Its place.hud.view document.",
          "type": "unknown"
        }
      },
      "required": [
        "name",
        "app",
        "view"
      ],
      "type": "object"
    },
    "main": {
      "description": "What the playground starts a view from: the bundled views, to start from one; the component catalog, to complete what is typed; and HUD's themes, to draw it in. The same for everyone. No auth required.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "catalog": {
              "description": "The components and the grammar of a view's document, as describe_collection gives them.",
              "type": "unknown"
            },
            "chat": {
              "description": "Whether this HUD serves the chat to the caller, at /chat: with no model to chat with it does not, nor where the operator names the accounts it answers and the caller, signed in or not, is none of them; then the pages name no Chat.",
              "type": "boolean"
            },
            "themes": {
              "description": "HUD's themes: light and dark, then the rest, as getWorkspace lists them.",
              "items": {
                "ref": "place.hud.defs#theme",
                "type": "ref"
              },
              "type": "array"
            },
            "views": {
              "description": "The bundled views list_records, get_record and query draw, by name; app pages are not among them.",
              "items": {
                "ref": "#bundledView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "views",
            "catalog",
            "themes"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "What the playground starts from, at /playground.",
  "id": "place.hud.getPlayground",
  "lexicon": 1
}
```
