Media Discussions 0.1.0-alpha.1

Interoperability docs

Give each episode a stable AT URI so people can talk about it wherever they already post. An independent client can publish a catalog, resolve an episode link, or build its own directory.

This alpha documents the current prototype. The downloadable Lexicons are candidate schemas for local interoperability work. Network registration is pending the catalog reuse and compatibility review.

Resolve a real episode

These are the prototype’s public read endpoints. The same commands can target any instance running the app. A documentation-only instance serves this reference and the Lexicons. The catalog and resolver are available on a full instance. Source repository

BASE='https://media.experiments.verylittlegravitas.com'
curl -f "$BASE/api/episodes/73-yards"
curl -f -G "$BASE/api/resolve" \
  --data-urlencode 'url=https://www.imdb.com/title/tt28704625/'
curl -f "$BASE/api/catalog"
GET /api/episodes/{slug}
Returns episode, series, season, mappings, and curated source-link discussions. The episode has a stable web path; the record URI is present when a catalog DID is configured.
GET /api/resolve?url={external-url}
Returns {mapping, episode} on a trusted match, 404 when unresolved, or 409 when multiple episode results remain. Each client should surface ambiguity for human confirmation and retain the original link.
GET /api/catalog
Returns {records: [{collection, rkey, record}]}, the publication manifest. 503 means the publishing identity is unconfigured. Read the publisher’s PDS to verify which records are actually published.

Identify and publish media

  1. Publish a series, an optional season, and each episode as separate records. An episode’s seriesUri references the series. Set seasonUri when there is a season. Treat episode and season numbers as metadata that may be corrected.
  2. Use at://<publisher-did>/com.danhon.atprotomedia.episode/<rkey> as the episode reference. Require a complete public record URI with a DID, the episode collection, and a stable record key.
  3. Publish external matches as mapping records. Normalize URLs to the source’s own identifier, such as BBC PID m001zpzs or IMDb title ID tt28704625. The mapping author is the DID of the repository holding the claim. Choose which publishers to trust. Keep disagreeing claims visible to reviewers and leave an ambiguous link unresolved.
  4. When the schemas are ready for network registration, the namespace owner publishes com.atproto.lexicon.schema records keyed by their NSIDs and sets _lexicon.atprotomedia.danhon.com to a DNS TXT value of did=<publishing-did>. The publisher handle may change while the DID stays the same. AT Protocol Lexicon publishing guide

Connect discussions

For a native public reaction, write a com.danhon.atprotomedia.reply under the author’s DID, with episode set to the episode AT URI and text and createdAt populated. Use the author’s PDS and AT Protocol OAuth for end-user authorization. AT Protocol OAuth

For a Bluesky link, use a real external link facet or embed in an ordinary post. Resolve its destination URL. A link in the root post can identify the discussion; a reply link identifies that reply and its original thread context. Keep links to the source and apply its current audience restrictions before listing them. The prototype accepts explicit submissions into a moderation queue. Independent directories can use the same records with their own curation.

Keep gated material within its original audience. A public episode reference does not grant access to the associated discussion. Recheck availability and visibility on display, including signed-out preferences, and honor deletions. Put the spoiler policy on each discussion and keep share images and snippets spoiler-safe. Bluesky visibility preferences

Read and write a private watch record

Use the account’s com.danhon.atprotomedia.watchspace Personal Space with key self. Request the Space permission for that owner and its watch collection. Store episode and watchedAt in a watch record. The prototype uses the lowercase hexadecimal SHA-256 of the episode AT URI as its record key. Delete the record to clear watched state. Treat a PDS or permission failure as unavailable.

To verify portability, authorize a second client and read and update the same record there. Test a PDS migration independently of the client switch. Spaces data guide

Lexicons and versioning

JSON schema index · Agent discovery index · Agent implementation guide

The prototype uses Semantic Versioning and this instance serves 0.1.0-alpha.1. Pre-release builds may change HTTP behavior. Once a Lexicon is published, preserve its compatible meaning and give incompatible schemas new NSIDs. The Lexicon JSON field lexicon: 1 identifies the AT Protocol schema format.

Implementation resources