dev.openplaylist.defs

Shared object definitions for Open Playlist records. Track metadata field names follow fm.teal.feed.defs so teal.fm and Rocksky tooling can read them without a mapping layer.

Details · defs
Kinddefs
Authorityopenplaylist.dev
Indexed

#artist

object

Properties

artistMbId

string · uri

MusicBrainz artist id, formatted as mbid:<uuid>.

artistName

requiredstring

The name of the artist.

  • minLength: 1
  • maxLength: 2560
  • maxGraphemes: 256

#artwork

object

One cover art candidate. Either url or image must be present.

Properties

height

integer
  • minimum: 1

image

blob

A cached copy of the artwork stored in the hosting repo, so the record survives every external service going away.

  • maxSize: 1000000
  • accept: image/*

provider

requiredstring

Who serves this image. 'self' means the image blob is stored in this repo.

  • maxLength: 64
  • knownValues: spotify | appleMusic | coverArtArchive | youtube | self

url

string · uri

Public image URL.

width

integer
  • minimum: 1

#contributor

object

Who added something. Anonymous contributors have only a display name; signed-in contributors also carry their DID.

Properties

did

string · did

The contributor's ATProto identity, when they were signed in.

displayName

requiredstring

Name typed or chosen by the contributor.

  • minLength: 1
  • maxLength: 640
  • maxGraphemes: 64

#mirror

object

A native playlist on a music service that mirrors this record. The record is the source of truth; mirrors are downstream and append-only.

Properties

The service's playlist id.

  • maxLength: 256

hostDid

string · did

DID of the account whose service login owns the mirror. Absent means the Open Playlist app account hosts it.

service

requiredstring

Service identifier.

  • maxLength: 64
  • knownValues: spotify | appleMusic | youtube

syncedAt

string · datetime

When the mirror was last brought up to date with this record.

url

requiredstring · uri

Public, followable URL of the mirrored playlist.

#source

object

A location for a track on a specific music service.

Properties

The service's own track identifier, e.g. a Spotify track id or an Apple Music catalog id.

  • maxLength: 256

region

string

ISO 3166-1 alpha-2 storefront code when the externalId is region-specific, as Apple Music catalog ids are.

  • minLength: 2
  • maxLength: 2

service

requiredstring

Service identifier. Unknown values must be preserved by readers.

  • maxLength: 64
  • knownValues: spotify | appleMusic | youtube | youtubeMusic | tidal | deezer | bandcamp | soundcloud | musicbrainz

url

requiredstring · uri

Public URL of the track on that service.

#track

object

A catalog track. Identity is carried by isrc and MusicBrainz ids; per-service locations live in sources. Nothing here depends on a single music service.

Properties

artists

array

Artists in order of original appearance.

  • maxLength: 20
itemsref
Reference

artwork

array

Cover art candidates in preference order. Readers fall through on load failure.

  • maxLength: 10
itemsref
Reference

duration

integer

The length of the track in seconds.

  • minimum: 0

isrc

string

International Standard Recording Code. The primary cross-service identifier; both Spotify and Apple Music return it.

  • maxLength: 15

recordingMbId

string · uri

MusicBrainz recording id, formatted as mbid:<uuid>.

Distinguishing information for release variants, e.g. 'Deluxe Edition', '2023 Remaster'.

  • maxLength: 1280
  • maxGraphemes: 128

releaseGroupMbId

string · uri

MusicBrainz release-group id, formatted as mbid:<uuid>. Used to fetch art from the Cover Art Archive.

releaseMbId

string · uri

MusicBrainz release id, formatted as mbid:<uuid>.

The name of the release or album.

  • maxLength: 2560
  • maxGraphemes: 256

sources

array

Where this track can be played, one entry per service. Readers pick the entry matching the listener's service, or resolve a missing one from isrc.

  • maxLength: 20
itemsref
Reference

Distinguishing information for track variants, e.g. 'Live at Wembley', 'Radio Edit'.

  • maxLength: 1280
  • maxGraphemes: 128

trackName

requiredstring

The name of the track.

  • minLength: 1
  • maxLength: 2560
  • maxGraphemes: 256

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A collaborative playlist. Holds metadata only; tracks are dev.openplaylist.playlistItem records that point back at this record with a strong reference, the same shape used by fm.teal.feed.social.playlist and app.rocksky.playlist.

  • This lexicon is in a not officially released state. It is subject to change. | Misc. items related to feeds.

  • fm.plyr.track

    record

    A music track published to the AT Protocol network.

  • One track in a dev.openplaylist.playlist. Lives in the same repo as the playlist when added through the hosting app; a signed-in contributor may later write one into their own repo pointing at someone else's playlist.

  • Basic view of a playlist, including its metadata