# computer.localnetwork.dj.set

> One per set the DJ chose to publish. The tracklist comes from what the players logged during the set, a recording of it, or tracks the DJ added by hand. Never holds file paths, history-list names or the DJ's own notes. Tracks the DJ chose not to name are present, unidentified.

- Kind: record
- Record key: tid
- Authority: dj.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.dj.set)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.dj.set/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.dj.set/analytics)

## Record (`computer.localnetwork.dj.set`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required): When it was first published.
- `date` (string, required): The day it was played, as YYYY-MM-DD.
  - Constraints: minLength: 10, maxLength: 10
- `event` (string · at-uri): The event it was part of: a community.lexicon.calendar.event record.
- `kind` (string): What sort of set it was. club and festival: played to a crowd. radio: on air. livestream: streamed as it was played. studio: recorded at home or in a studio, to be listened to later (older records say mix).
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: club | festival | radio | livestream | mix | studio
- `links` (array): Where people can listen to it: Mixcloud, SoundCloud, YouTube, a station's archive.
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#link`
- `location` (union): Where the venue is: an address (its name, city and country), or another kind of location a reader may not know.
  - One of: `community.lexicon.location.address`
- `playedWith` (array): Who the DJ played with, back to back.
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `computer.localnetwork.dj.defs#partner`
- `recording` (ref): The record where its recording can be played, like an fm.plyr.track in the DJ's own repo.
  - Reference: `com.atproto.repo.strongRef`
- `sources` (array): What the tracklist came from.
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#source`
- `title` (string)
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `tracks` (array, required): In play order.
  - Constraints: maxLength: 500
  - `items` (ref)
    - Reference: `computer.localnetwork.dj.defs#track`
- `venue` (string): Where it was played: the club, festival or station.
  - Constraints: maxLength: 1000, maxGraphemes: 100

## #link (`computer.localnetwork.dj.set#link`)

Type: object

A place to listen to the set.

### Properties

- `name` (string): What it is, like Mixcloud or the station's archive.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `uri` (string · uri, required)
  - Constraints: maxLength: 2000

## #source (`computer.localnetwork.dj.set#source`)

Type: object

Something the tracklist came from.

### Properties

- `kind` (string, required): history: what the players logged during the set (or a log another app kept). mix: a recording of the set, with the tracks found in it and when they start. added: tracks the DJ added by hand.
  - Constraints: maxLength: 64, knownValues: history | mix | added

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "link": {
      "description": "A place to listen to the set.",
      "properties": {
        "name": {
          "description": "What it is, like Mixcloud or the station's archive.",
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "main": {
      "description": "One per set the DJ chose to publish. The tracklist comes from what the players logged during the set, a recording of it, or tracks the DJ added by hand. Never holds file paths, history-list names or the DJ's own notes. Tracks the DJ chose not to name are present, unidentified.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When it was first published.",
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "The day it was played, as YYYY-MM-DD.",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "event": {
            "description": "The event it was part of: a community.lexicon.calendar.event record.",
            "format": "at-uri",
            "type": "string"
          },
          "kind": {
            "description": "What sort of set it was. club and festival: played to a crowd. radio: on air. livestream: streamed as it was played. studio: recorded at home or in a studio, to be listened to later (older records say mix).",
            "knownValues": [
              "club",
              "festival",
              "radio",
              "livestream",
              "mix",
              "studio"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "links": {
            "description": "Where people can listen to it: Mixcloud, SoundCloud, YouTube, a station's archive.",
            "items": {
              "ref": "#link",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "location": {
            "closed": false,
            "description": "Where the venue is: an address (its name, city and country), or another kind of location a reader may not know.",
            "refs": [
              "community.lexicon.location.address"
            ],
            "type": "union"
          },
          "playedWith": {
            "description": "Who the DJ played with, back to back.",
            "items": {
              "ref": "computer.localnetwork.dj.defs#partner",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "recording": {
            "description": "The record where its recording can be played, like an fm.plyr.track in the DJ's own repo.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "sources": {
            "description": "What the tracklist came from.",
            "items": {
              "ref": "#source",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "title": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "tracks": {
            "description": "In play order.",
            "items": {
              "ref": "computer.localnetwork.dj.defs#track",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "venue": {
            "description": "Where it was played: the club, festival or station.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "date",
          "tracks",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "source": {
      "description": "Something the tracklist came from.",
      "properties": {
        "kind": {
          "description": "history: what the players logged during the set (or a log another app kept). mix: a recording of the set, with the tracks found in it and when they start. added: tracks the DJ added by hand.",
          "knownValues": [
            "history",
            "mix",
            "added"
          ],
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    }
  },
  "description": "A DJ set: a performance the DJ played, and the tracks they played in it, in order.",
  "id": "computer.localnetwork.dj.set",
  "lexicon": 1
}
```
