# wiki.lichen.wiki

> Published by [lichen.wiki](https://lexicon.garden/identity/did:plc:xfs42pjf3n7imvgrdrp7xvez)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.wiki)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.wiki/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.wiki/examples)

## Definitions

### `wiki.lichen.wiki`

**Type**: `record`

A wiki. The rkey is a permanent slug.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Display name of the wiki. |
| `theme` | `string` | No | Optional theme preference set by the wiki creator (e.g. 'light', 'dark'). When present, clients should render with this theme; when absent, the viewer's own preference is used. Apps that don't recognize the name should fall back to their default. |
| `language` | `string` | Yes | BCP-47 language tag for the wiki content (e.g. 'en', 'fr', 'ja'). |
| `createdAt` | `string` (datetime) | Yes | When the wiki was created. |
| `visibility` | `string` | Yes | Access level. |
| `description` | `string` | No | Short description of the wiki's purpose or topic. |

## Raw Schema

```json
{
  "id": "wiki.lichen.wiki",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "visibility",
          "createdAt",
          "language"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 2560,
            "description": "Display name of the wiki.",
            "maxGraphemes": 256
          },
          "theme": {
            "type": "string",
            "maxLength": 64,
            "description": "Optional theme preference set by the wiki creator (e.g. 'light', 'dark'). When present, clients should render with this theme; when absent, the viewer's own preference is used. Apps that don't recognize the name should fall back to their default.",
            "knownValues": [
              "light",
              "dark"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 16,
            "description": "BCP-47 language tag for the wiki content (e.g. 'en', 'fr', 'ja')."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the wiki was created."
          },
          "visibility": {
            "type": "string",
            "maxLength": 32,
            "description": "Access level.",
            "knownValues": [
              "public",
              "private"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 3000,
            "description": "Short description of the wiki's purpose or topic.",
            "maxGraphemes": 300
          }
        }
      },
      "description": "A wiki. The rkey is a permanent slug."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
