Skip to content

Add the YouTube domain driver#3

Merged
tamnd merged 2 commits into
mainfrom
add-youtube-domain
Jun 14, 2026
Merged

Add the YouTube domain driver#3
tamnd merged 2 commits into
mainfrom
add-youtube-domain

Conversation

@tamnd

@tamnd tamnd commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Add YouTube as an ant domain by blank-importing the youtube package from ytb-cli. The driver registers itself with kit on init, exactly like the goodreads, x, and wikipedia drivers, so every verb works for the youtube:// scheme after a rebuild.

What you can address

youtube://video/dQw4w9WgXcQ
youtube://channel/UCuAXFkgsw1L7xaCfnd5JJOw
youtube://playlist/<id>

Aliases yt and ytb; hosts youtube.com, youtu.be, music.youtube.com.

Verification

Built ant and ran it against youtube.com:

  • ant domains lists the youtube scheme with its yt/ytb aliases.
  • ant get youtube://video/dQw4w9WgXcQ returns the JSON-LD record with a typed channel edge under @links.
  • ant resolve "https://youtu.be/dQw4w9WgXcQ" maps the short URL to youtube://video/dQw4w9WgXcQ.

go build ./..., go vet ./..., go test ./... all green.

Dependency note

This currently pins ytb-cli at the kit-native branch commit (a pseudo-version), since the kit-native rewrite that exposes the youtube.Domain driver is still in review at tamnd/ytb-cli#4. Once that merges and ytb-cli cuts a tag, this should bump to the tagged release before merging.

tamnd added 2 commits June 14, 2026 16:36
Blank-import the youtube package from ytb-cli so ant can address videos,
channels, playlists, and the rest of YouTube as URIs. The driver registers
itself with kit on init, exactly like the goodreads, x, and wikipedia drivers,
so every verb works for the youtube:// scheme after a rebuild.

Verified end to end: ant domains lists the scheme with its yt/ytb aliases,
ant get youtube://video/dQw4w9WgXcQ returns the JSON-LD record with a typed
channel edge under @links, and ant resolve maps a youtu.be URL to its URI.
The kit-native rewrite that exposes the youtube.Domain driver has merged and
tagged, so move off the kit-native branch pseudo-version onto the release.
@tamnd tamnd merged commit 605c1b0 into main Jun 14, 2026
7 checks passed
@tamnd tamnd deleted the add-youtube-domain branch June 14, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant