Développeurs
Données publiques
Tout ce que Bluvy Tube écrit est un enregistrement AT Protocol public, stocké dans le dépôt de l’utilisateur. Cette page décrit ces enregistrements, explique comment les lire et présente les quelques endpoints HTTP que nous exposons en plus.
Le principe
Bluvy Tube ne garde pas les données des vidéos pour lui. Il les lit et les écrit dans le PDS de chaque utilisateur, avec son autorisation (OAuth). Pour une vidéo, on trouve :
- un post
app.bsky.feed.poststandard, qui porte la vidéo (app.bsky.embed.video) et reste visible dans Bluesky et dans toutes les apps compatibles ; - un enregistrement
app.bluvy.tube.video.metadatafacultatif, qui contient ce que Bluesky ne gère pas : titre, description longue, catégorie, chapitres, sous-titres, miniature personnalisée ; - notre index (vues, tendances, recherche), dérivé de ces données et non exposé sous forme d’API.
Lexicons app.bluvy.tube.*
Les schémas sont publiés selon la convention de résolution des lexicons. L’enregistrement DNS _lexicon.tube.bluvy.app désigne le compte de Bluvy Tube, qui héberge chaque schéma sous forme d’enregistrement com.atproto.lexicon.schema, avec le NSID comme rkey.
$ dig +short TXT _lexicon.tube.bluvy.app
"did=did:plc:dgqudubx2plnmynqu5wtsoan"
$ curl "https://eurosky.social/xrpc/com.atproto.repo.getRecord?repo=did:plc:dgqudubx2plnmynqu5wtsoan&collection=com.atproto.lexicon.schema&rkey=app.bluvy.tube.video.metadata"
Le PDS de ce compte (aujourd’hui eurosky.social) peut changer : résolvez-le depuis le document DID plutôt que de l’écrire en dur. Les tableaux ci-dessous sont générés à partir des fichiers de schéma de l’application. Un astérisque signale un champ obligatoire.
app.bluvy.tube.authFull
permission-set
Les permissions que Bluvy Tube demande lors de la connexion OAuth.
Collections couvertes : app.bluvy.tube.clip, app.bluvy.tube.favorite, app.bluvy.tube.playlist, app.bluvy.tube.playlist.item, app.bluvy.tube.video.metadata, app.bluvy.tube.preferences, app.bluvy.tube.channel
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.authFull",
"defs": {
"main": {
"type": "permission-set",
"title": "Bluvy Tube",
"title:lang": {
"fr": "Bluvy Tube"
},
"detail": "Bluvy Tube, the video platform for Bluesky, saves your favorites, playlists, app preferences, your channel's presentation (about text, banner, links), the clips you cut from videos and the details of the videos you publish (title, description, category, chapters, captions) as app.bluvy.tube.* records in your account.",
"detail:lang": {
"fr": "Bluvy Tube, la plateforme vidéo pour Bluesky, enregistre vos favoris, vos playlists, vos préférences d'application, la présentation de votre chaîne (texte, bannière, liens), les extraits que vous découpez dans des vidéos et les informations des vidéos que vous publiez (titre, description, catégorie, chapitres, sous-titres) sous forme d'enregistrements app.bluvy.tube.* dans votre compte."
},
"permissions": [
{
"type": "permission",
"resource": "repo",
"collection": [
"app.bluvy.tube.clip",
"app.bluvy.tube.favorite",
"app.bluvy.tube.playlist",
"app.bluvy.tube.playlist.item",
"app.bluvy.tube.video.metadata"
],
"action": ["create", "update", "delete"]
},
{
"type": "permission",
"resource": "repo",
"collection": ["app.bluvy.tube.preferences"],
"action": ["create", "update"]
},
{
"type": "permission",
"resource": "repo",
"collection": ["app.bluvy.tube.channel"],
"action": ["create", "update", "delete"]
}
]
}
}
}
app.bluvy.tube.channel
record
rkey: literal:self | Champ | Type | Description |
|---|---|---|
about |
string |
Free-text channel description, shown on the channel's About tab. Plain text; line breaks are kept. |
banner |
blob |
Channel banner, displayed at a 3:1 ratio. |
links |
array<ref → #link> |
Links shown on the channel (website, shop, other networks). |
featuredVideo |
ref → com.atproto.repo.strongRef |
A video post of this account, shown first on the channel's home tab to its followers. |
trailerVideo |
ref → com.atproto.repo.strongRef |
A video post of this account, shown first on the channel's home tab to visitors who don't follow it yet. |
allowClips |
boolean |
Whether others may cut short clips (app.bluvy.tube.clip) from this channel's videos on Bluvy Tube. |
updatedAt * |
string (datetime) |
Client-declared timestamp of the last change. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.channel",
"defs": {
"main": {
"type": "record",
"description": "How a creator presents their Bluvy Tube channel, on top of their Bluesky profile (name, avatar and bio stay in app.bsky.actor.profile): a longer about text, a banner, links, and the videos to feature. One per account, written to the creator's own repo. See App\\Creator\\ChannelProfileService in the Bluvy Tube source for the writer.",
"key": "literal:self",
"record": {
"type": "object",
"required": ["updatedAt"],
"properties": {
"about": {
"type": "string",
"maxGraphemes": 2000,
"maxLength": 12000,
"description": "Free-text channel description, shown on the channel's About tab. Plain text; line breaks are kept."
},
"banner": {
"type": "blob",
"accept": ["image/png", "image/jpeg", "image/webp"],
"maxSize": 2000000,
"description": "Channel banner, displayed at a 3:1 ratio."
},
"links": {
"type": "array",
"maxLength": 5,
"items": { "type": "ref", "ref": "#link" },
"description": "Links shown on the channel (website, shop, other networks)."
},
"featuredVideo": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "A video post of this account, shown first on the channel's home tab to its followers."
},
"trailerVideo": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "A video post of this account, shown first on the channel's home tab to visitors who don't follow it yet."
},
"allowClips": {
"type": "boolean",
"default": true,
"description": "Whether others may cut short clips (app.bluvy.tube.clip) from this channel's videos on Bluvy Tube."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp of the last change."
}
}
}
},
"link": {
"type": "object",
"required": ["uri"],
"properties": {
"uri": {
"type": "string",
"format": "uri",
"maxLength": 1000,
"description": "An https URL."
},
"label": {
"type": "string",
"maxGraphemes": 40,
"maxLength": 240,
"description": "Text shown for the link; clients show the URL's host when absent."
}
}
}
}
}
app.bluvy.tube.clip
record
rkey: tid | Champ | Type | Description |
|---|---|---|
subject * |
ref → com.atproto.repo.strongRef |
The app.bsky.feed.post carrying the video. |
start * |
integer |
Where the clip starts, in milliseconds from the start of the video. |
end * |
integer |
Where it ends, in milliseconds; between 5 and 60 seconds after start. |
title |
string |
|
createdAt * |
string (datetime) |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.clip",
"defs": {
"main": {
"type": "record",
"description": "A short excerpt of a video, cut by the account that owns this record: Bluvy Tube gives it its own page and embed, which play only that part of the video. The video itself is not copied.",
"key": "tid",
"record": {
"type": "object",
"required": ["subject", "start", "end", "createdAt"],
"properties": {
"subject": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "The app.bsky.feed.post carrying the video."
},
"start": {
"type": "integer",
"minimum": 0,
"description": "Where the clip starts, in milliseconds from the start of the video."
},
"end": {
"type": "integer",
"minimum": 0,
"description": "Where it ends, in milliseconds; between 5 and 60 seconds after start."
},
"title": {
"type": "string",
"maxGraphemes": 100,
"maxLength": 1000
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
}
}
}
}
app.bluvy.tube.favorite
record
rkey: tid Un favori (rubrique « Enregistrées ») : référence forte vers un post vidéo. Ce n’est pas un like.
| Champ | Type | Description |
|---|---|---|
subject * |
ref → com.atproto.repo.strongRef |
The video post (an app.bsky.feed.post carrying an app.bsky.embed.video) being favorited. |
createdAt * |
string (datetime) |
Client-declared timestamp when this favorite was created. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.favorite",
"defs": {
"main": {
"type": "record",
"description": "A Bluvy Tube-specific favorite of a video post, written to the favoriting user's own repo. Distinct from any AT Protocol-native bookmark — this is a Bluvy-only concept, source of truth for Bluvy Tube's own 'favorites' feature (not a like or repost). See App\\Controller\\Account\\FavoriteController in the Bluvy Tube source for the writer.",
"key": "tid",
"record": {
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "The video post (an app.bsky.feed.post carrying an app.bsky.embed.video) being favorited."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when this favorite was created."
}
}
}
}
}
}
app.bluvy.tube.playlist
record
rkey: tid Une playlist de l’utilisateur. Chacune de ses vidéos est un enregistrement app.bluvy.tube.playlist.item distinct ; le champ facultatif itemOrder donne leurs rkeys dans l’ordre d’affichage (les autres suivent, des plus anciennes aux plus récentes). visibility: unlisted demande aux clients de ne pas la lister ni l’indexer, mais l’enregistrement reste public.
| Champ | Type | Description |
|---|---|---|
name * |
string |
The playlist's display name. |
description |
string |
Optional free-text description of the playlist. |
visibility |
string |
Advisory listing hint for clients. 'unlisted' asks not to list or index the playlist (channel pages, search, sitemaps, feeds) while it stays reachable by link. The record itself is public like every repo record: this is not access control. |
itemOrder |
array<string (record-key)> |
Optional manual display order, as app.bluvy.tube.playlist.item rkeys. Items not listed here (or listed rkeys whose record no longer exists) fall back to createdAt order, after the listed ones. |
createdAt * |
string (datetime) |
Client-declared timestamp when this playlist was created. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.playlist",
"defs": {
"main": {
"type": "record",
"description": "A Bluvy Tube playlist — a named, ordered collection of videos, written to the owning user's own repo. Membership is tracked separately by app.bluvy.tube.playlist.item records referencing this record via strongRef, the same 'list + separate items' shape as app.bsky.graph.list/listitem. See App\\Controller\\Account\\PlaylistController in the Bluvy Tube source for the writer.",
"key": "tid",
"record": {
"type": "object",
"required": ["name", "createdAt"],
"properties": {
"name": {
"type": "string",
"maxGraphemes": 100,
"maxLength": 300,
"description": "The playlist's display name."
},
"description": {
"type": "string",
"maxGraphemes": 500,
"maxLength": 3000,
"description": "Optional free-text description of the playlist."
},
"visibility": {
"type": "string",
"knownValues": ["public", "unlisted"],
"default": "public",
"description": "Advisory listing hint for clients. 'unlisted' asks not to list or index the playlist (channel pages, search, sitemaps, feeds) while it stays reachable by link. The record itself is public like every repo record: this is not access control."
},
"itemOrder": {
"type": "array",
"maxLength": 5000,
"items": {
"type": "string",
"format": "record-key",
"description": "The rkey of an app.bluvy.tube.playlist.item record in this same repo."
},
"description": "Optional manual display order, as app.bluvy.tube.playlist.item rkeys. Items not listed here (or listed rkeys whose record no longer exists) fall back to createdAt order, after the listed ones."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when this playlist was created."
}
}
}
}
}
}
app.bluvy.tube.playlist.item
record
rkey: tid Une vidéo dans une playlist : référence forte vers la playlist et vers le post vidéo.
| Champ | Type | Description |
|---|---|---|
playlist * |
ref → com.atproto.repo.strongRef |
The app.bluvy.tube.playlist record this item belongs to. |
subject * |
ref → com.atproto.repo.strongRef |
The video post (an app.bsky.feed.post carrying an app.bsky.embed.video) added to the playlist. |
createdAt * |
string (datetime) |
Client-declared timestamp when the video was added — also this item's place in the playlist's display order (oldest first) unless the playlist's itemOrder lists it. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.playlist.item",
"defs": {
"main": {
"type": "record",
"description": "One video's membership in a app.bluvy.tube.playlist, written to the playlist owner's own repo as a separate record (not embedded in the playlist record itself) — same shape as app.bsky.graph.listitem referencing an app.bsky.graph.list. See App\\Controller\\Account\\PlaylistController in the Bluvy Tube source for the writer.",
"key": "tid",
"record": {
"type": "object",
"required": ["playlist", "subject", "createdAt"],
"properties": {
"playlist": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "The app.bluvy.tube.playlist record this item belongs to."
},
"subject": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "The video post (an app.bsky.feed.post carrying an app.bsky.embed.video) added to the playlist."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when the video was added — also this item's place in the playlist's display order (oldest first) unless the playlist's itemOrder lists it."
}
}
}
}
}
}
app.bluvy.tube.preferences
record
rkey: literal:self Les préférences d’apparence de l’utilisateur (thème, palette…). Un seul enregistrement par compte.
| Champ | Type | Description |
|---|---|---|
mode * |
string |
Colour-mode axis. 'system' follows the OS prefers-color-scheme. |
darkStyle |
string |
Dark-mode depth. Absent means 'dim' (the default #070D1C ramp); 'black' is the opt-in near-black OLED ramp (#05070D, never pure #000000). |
palette |
string |
Ecosystem palette. Absent means the Bluvy Tube default palette (logo-derived). The others are opt-in alternates. |
accent |
string |
Logo-derived accent override for primary CTAs. Absent means the Bluvy Blue signature (#185DFF). |
fontFamily |
string |
UI font family. Absent means the native system stack. |
fontSize |
string |
Root text size. Absent means 'default' (100%). |
linkAppView |
string |
Which AT Protocol AppView web frontend external post/profile links (e.g. 'view original post') open through. Absent means 'mu' (Mu.social, Bluvy Tube's default). |
feedMode |
string |
Primary feed navigation and video layout mode. 'youtube' is the standard grid of thumbnails; 'immersive' is the continuous full-screen vertical swipe feed. Absent means 'youtube'. |
breakReminderMinutes |
integer |
Wellbeing reminder: minutes of actual playback in vertical swipe feeds before Bluvy Tube interrupts with a take-a-break prompt. Absent means 30. There is intentionally no value that disables the reminder; unknown values are read back as 30. |
updatedAt * |
string (datetime) |
Client-declared timestamp of the last change. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.preferences",
"defs": {
"main": {
"type": "record",
"description": "Bluvy Tube-specific per-app appearance preferences for one account, written to that account's own repo at rkey `self`. Not required or validated by the PDS or any other AT Protocol app — Bluvy Tube reads this back itself at login to server-render the correct theme and remove the theme flash-of-unstyled-content. Each Bluvy app keeps its own independent record in its own namespace; this one is Bluvy Tube's. See App\\Service\\AppearanceService in the Bluvy Tube source for the writer.",
"key": "literal:self",
"record": {
"type": "object",
"required": ["mode", "updatedAt"],
"properties": {
"mode": {
"type": "string",
"enum": ["light", "dark", "system"],
"description": "Colour-mode axis. 'system' follows the OS prefers-color-scheme."
},
"darkStyle": {
"type": "string",
"enum": ["dim", "black"],
"description": "Dark-mode depth. Absent means 'dim' (the default #070D1C ramp); 'black' is the opt-in near-black OLED ramp (#05070D, never pure #000000)."
},
"palette": {
"type": "string",
"enum": ["bluvy", "bluesky", "blacksky", "mu"],
"description": "Ecosystem palette. Absent means the Bluvy Tube default palette (logo-derived). The others are opt-in alternates."
},
"accent": {
"type": "string",
"enum": ["bluvy-blue", "bluvy-cyan", "bluvy-deep"],
"description": "Logo-derived accent override for primary CTAs. Absent means the Bluvy Blue signature (#185DFF)."
},
"fontFamily": {
"type": "string",
"enum": ["system", "inter"],
"description": "UI font family. Absent means the native system stack."
},
"fontSize": {
"type": "string",
"enum": ["small", "default", "large"],
"description": "Root text size. Absent means 'default' (100%)."
},
"linkAppView": {
"type": "string",
"enum": ["bluesky", "mu", "blacksky"],
"description": "Which AT Protocol AppView web frontend external post/profile links (e.g. 'view original post') open through. Absent means 'mu' (Mu.social, Bluvy Tube's default)."
},
"feedMode": {
"type": "string",
"enum": ["youtube", "immersive"],
"description": "Primary feed navigation and video layout mode. 'youtube' is the standard grid of thumbnails; 'immersive' is the continuous full-screen vertical swipe feed. Absent means 'youtube'."
},
"breakReminderMinutes": {
"type": "integer",
"enum": [15, 30, 45, 60, 90, 120],
"description": "Wellbeing reminder: minutes of actual playback in vertical swipe feeds before Bluvy Tube interrupts with a take-a-break prompt. Absent means 30. There is intentionally no value that disables the reminder; unknown values are read back as 30."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp of the last change."
}
}
}
}
}
}
app.bluvy.tube.video.metadata
record
rkey: tid Métadonnées Bluvy d’une vidéo publiée, enregistrées à côté du post qui porte la vidéo. postUri et postCid pointent vers ce post, et url donne l’adresse stable de la page sur Bluvy Tube.
| Champ | Type | Description |
|---|---|---|
video * |
blob |
The same video blob referenced by the companion app.bsky.feed.post's app.bsky.embed.video#video. |
createdAt * |
string (datetime) |
Client-declared timestamp when this record was created. |
title |
string |
Owner-editable title, shown on Bluvy Tube in place of the raw post text. |
description |
string |
|
language |
string |
BCP-47 language tag for the video's primary spoken/subtitle language. |
category |
string |
Primary category slug (e.g. 'gaming', 'tech', 'music', etc.). |
secondaryCategories |
array<string> |
Optional secondary category slugs. |
postUri |
string (at-uri) |
The at-uri of the companion app.bsky.feed.post record, set once that record has been created (this metadata record is written first, in a two-step publish). |
postCid |
string (cid) |
The CID of the companion app.bsky.feed.post record as of the last write of this record; together with postUri, a strong reference to it. Set together with postUri. |
url |
string (uri) |
The Bluvy Tube web page that renders this video (a stable https://{host}/at/{did}/app.bsky.feed.post/{rkey} address). Attests the page in the record-to-page direction; the page links back via an at:canonical meta tag. Set together with postUri. |
duration |
integer |
Duration of the video in seconds. |
thumbnail |
blob |
A thumbnail the owner chose for this video (at most 1280 px on each side). Bluvy Tube shows it instead of the frame generated by the video service; the companion post keeps the generated one. |
isAiGenerated |
boolean |
Whether the video content was generated by AI. |
chapters |
array<object> |
Owner-editable chapter markers shown on Bluvy Tube's scrubber. |
captions |
array<object> |
Owner-uploaded WebVTT subtitle/caption tracks, one per language. |
endScreen |
ref → #endScreen |
Optional end screen: tiles Bluvy Tube shows over the last seconds of the video. |
translations |
array<ref → #translation> |
The creator's own translations of title and description; Bluvy Tube shows the one matching the viewer's language. |
Voir le schéma JSON complet
{
"lexicon": 1,
"id": "app.bluvy.tube.video.metadata",
"defs": {
"main": {
"type": "record",
"description": "Bluvy Tube-specific metadata for a published video, written to the creator's own repo alongside the app.bsky.feed.post record that actually carries the video (via app.bsky.embed.video). Not required or validated by the PDS or any other AT Protocol app — Bluvy Tube reads this back itself to render an owner-editable title/description/language overlay on top of the plain post text. Written by App\\Service\\VideoPublicationProcessor (native uploads) and rewritten by App\\Service\\PdsMetadataSyncService on every owner edit, in the Bluvy Tube source.",
"key": "tid",
"record": {
"type": "object",
"required": ["video", "createdAt"],
"properties": {
"video": {
"type": "blob",
"accept": ["video/*"],
"description": "The same video blob referenced by the companion app.bsky.feed.post's app.bsky.embed.video#video."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when this record was created."
},
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000,
"description": "Owner-editable title, shown on Bluvy Tube in place of the raw post text."
},
"description": {
"type": "string",
"maxGraphemes": 3000,
"maxLength": 30000
},
"language": {
"type": "string",
"description": "BCP-47 language tag for the video's primary spoken/subtitle language."
},
"category": {
"type": "string",
"description": "Primary category slug (e.g. 'gaming', 'tech', 'music', etc.)."
},
"secondaryCategories": {
"type": "array",
"items": { "type": "string" },
"description": "Optional secondary category slugs."
},
"postUri": {
"type": "string",
"format": "at-uri",
"description": "The at-uri of the companion app.bsky.feed.post record, set once that record has been created (this metadata record is written first, in a two-step publish)."
},
"postCid": {
"type": "string",
"format": "cid",
"description": "The CID of the companion app.bsky.feed.post record as of the last write of this record; together with postUri, a strong reference to it. Set together with postUri."
},
"url": {
"type": "string",
"format": "uri",
"description": "The Bluvy Tube web page that renders this video (a stable https://{host}/at/{did}/app.bsky.feed.post/{rkey} address). Attests the page in the record-to-page direction; the page links back via an at:canonical meta tag. Set together with postUri."
},
"duration": {
"type": "integer",
"description": "Duration of the video in seconds."
},
"thumbnail": {
"type": "blob",
"accept": ["image/jpeg"],
"maxSize": 2000000,
"description": "A thumbnail the owner chose for this video (at most 1280 px on each side). Bluvy Tube shows it instead of the frame generated by the video service; the companion post keeps the generated one."
},
"isAiGenerated": {
"type": "boolean",
"description": "Whether the video content was generated by AI."
},
"chapters": {
"type": "array",
"maxLength": 50,
"description": "Owner-editable chapter markers shown on Bluvy Tube's scrubber.",
"items": {
"type": "object",
"required": ["title", "startTimeSeconds"],
"properties": {
"title": {
"type": "string",
"maxGraphemes": 100,
"maxLength": 500
},
"startTimeSeconds": {
"type": "integer",
"minimum": 0
}
}
}
},
"captions": {
"type": "array",
"maxLength": 20,
"description": "Owner-uploaded WebVTT subtitle/caption tracks, one per language.",
"items": {
"type": "object",
"required": ["lang", "vtt"],
"properties": {
"lang": {
"type": "string",
"description": "BCP-47 language tag for this track, e.g. 'fr' or 'en-US'."
},
"vtt": {
"type": "blob",
"accept": ["text/vtt"],
"description": "WebVTT subtitle/caption file for this language."
}
}
}
},
"endScreen": {
"type": "ref",
"ref": "#endScreen",
"description": "Optional end screen: tiles Bluvy Tube shows over the last seconds of the video."
},
"translations": {
"type": "array",
"maxLength": 10,
"description": "The creator's own translations of title and description; Bluvy Tube shows the one matching the viewer's language.",
"items": { "type": "ref", "ref": "#translation" }
}
}
}
},
"endScreen": {
"type": "object",
"required": ["startOffset", "items"],
"properties": {
"startOffset": {
"type": "integer",
"minimum": 5,
"maximum": 20,
"description": "How many seconds before the end the tiles appear."
},
"items": {
"type": "array",
"minLength": 1,
"maxLength": 2,
"items": { "type": "ref", "ref": "#endScreenItem" }
}
}
},
"translation": {
"type": "object",
"required": ["lang"],
"properties": {
"lang": {
"type": "string",
"format": "language",
"description": "BCP-47 language tag of this translation."
},
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"description": {
"type": "string",
"maxGraphemes": 3000,
"maxLength": 30000
}
}
},
"endScreenItem": {
"type": "object",
"required": ["kind"],
"properties": {
"kind": {
"type": "string",
"knownValues": ["video", "playlist", "subscribe"],
"description": "'video': another of the creator's videos (subject: its app.bsky.feed.post); 'playlist': one of their app.bluvy.tube.playlist records; 'subscribe': a follow button for the creator (no subject)."
},
"subject": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
}
}
}
}
}
Les anciens NSID tube.bluvy.* ne sont plus écrits. Bluvy Tube migre les enregistrements existants vers app.bluvy.tube.*, puis supprime les anciens. Ne développez pas sur l’ancien espace de noms.
Lire les données
Depuis le dépôt d’un utilisateur
Les enregistrements sont publics. Ils se lisent sans authentification sur le PDS de l’utilisateur, avec les méthodes XRPC standard :
# 1. Find the account's PDS in its DID document (did:plc → plc.directory, did:web → /.well-known/did.json)
curl https://plc.directory/did:plc:abc123
# → "service": [{ "id": "#atproto_pds", "serviceEndpoint": "https://pds.example.com" }]
# 2. List the Bluvy video metadata records of that account
curl "https://pds.example.com/xrpc/com.atproto.repo.listRecords?repo=did:plc:abc123&collection=app.bluvy.tube.video.metadata&limit=50"
# 3. Fetch one record (any collection: app.bluvy.tube.playlist, app.bluvy.tube.favorite…)
curl "https://pds.example.com/xrpc/com.atproto.repo.getRecord?repo=did:plc:abc123&collection=app.bluvy.tube.playlist&rkey=3kxyz"
En temps réel avec Jetstream
Pour suivre en direct les créations, modifications et suppressions sur tout le réseau, abonnez-vous à Jetstream en filtrant sur nos collections :
const url = new URL('wss://jetstream2.us-east.bsky.network/subscribe');
for (const nsid of ['app.bluvy.tube.video.metadata', 'app.bluvy.tube.playlist', 'app.bluvy.tube.playlist.item']) {
url.searchParams.append('wantedCollections', nsid);
}
const ws = new WebSocket(url);
ws.onmessage = (message) => {
const event = JSON.parse(message.data);
if (event.kind !== 'commit') return;
const { operation, collection, rkey, record } = event.commit;
console.log(operation, `at://${event.did}/${collection}/${rkey}`, record);
};
Relier un enregistrement à sa page
Le champ url de app.bluvy.tube.video.metadata donne l’adresse de la page. Dans l’autre sens, la page renvoie vers ses enregistrements via ses at-tags. Pour toute autre AT URI, le résolveur /at trouve la page correspondante.
Médias
Les vidéos sont des blobs Bluesky. Le CDN vidéo de Bluesky les sert en HLS à partir du DID de l’auteur et du CID du blob (embed.video.ref dans le post) :
https://video.bsky.app/watch/{did}/{cid}/playlist.m3u8 # HLS stream (adaptive)
https://video.bsky.app/watch/{did}/{cid}/thumbnail.jpg # default thumbnail
https://{pds}/xrpc/com.atproto.sync.getBlob?did={did}&cid={thumbnailCid} # custom thumbnail blob
Les miniatures personnalisées correspondent au blob thumbnail de l’enregistrement metadata, à récupérer sur le PDS du créateur. Respectez les choix des créateurs : une vidéo supprimée de leur dépôt doit aussi disparaître de votre app.
Endpoints HTTP stables
Ces endpoints sont publics et sans authentification. Ce sont ceux sur lesquels vous pouvez vous appuyer. Le préfixe de langue vaut fr ou en.
| Endpoint | Réponse | Description |
|---|---|---|
GET /oembed?url=… | JSON | Code d’intégration et métadonnées d’une vidéo. Détails |
GET /at?uri=at://…GET /at/{repo}[/{collection}/{rkey}] | 302 | Redirige une AT URI (post, metadata, playlist, profil, direct) vers sa page. Détails |
GET /embed/… | HTML | Le lecteur intégrable. Détails |
GET /{locale}/video/{id}/captions/{lang}.vttGET /{locale}/video/{id}/chapters.vtt | text/vtt | Sous-titres et chapitres d’une vidéo, au format WebVTT. Une piste absente renvoie une 404. |
GET /feeds/creator/{did|handle}.atom | Atom | Les 30 dernières vidéos d’une chaîne, au format Atom avec Media RSS (miniature, lecteur intégrable), comme les flux de chaîne YouTube. Langue via ?lang=fr|en. Cache 15 minutes, ETag et If-None-Match pris en charge. Les chaînes l’annoncent par un <link rel="alternate" type="application/atom+xml">. |
GET /qr/{video|playlist}/{id}.svgGET /qr/creator/{did|handle}.svg | SVG | Code QR (SVG, noir sur blanc) de la page d’une vidéo, d’une playlist ou d’une chaîne. ?lang=fr|en choisit la langue de la page visée. Cache 24 h, CORS ouvert. |
GET /badge/creator/{did|handle}.svg | SVG | Badge « Regarder sur Bluvy Tube » d’une chaîne. ?theme=dark pour fond sombre, ?count=1 ajoute le nombre d’abonnés. Cache 1 h. |
GET /embed/follow/{did|handle} | HTML | Bouton « Suivre » à intégrer en iframe (environ 260 × 40). Il ouvre la chaîne dans un nouvel onglet : on ne peut pas s’abonner depuis un site tiers. ?theme=dark disponible. |
GET /sitemap.xml | XML | Un index de sitemaps : pages, chaînes, playlists publiques et vidéos (par fichiers de 10 000, avec l’extension vidéo de Google), en français et en anglais (alternatives hreflang). Régénéré toutes les 30 minutes. |
GET /robots.txt | text | Règles d’exploration. Merci de les respecter. |
GET /.well-known/atproto-did | text | DID de Bluvy Tube, pour la vérification du handle tube.bluvy.app. |
GET /client-metadata.json | JSON | Métadonnées du client OAuth de Bluvy Tube (son client_id). Aussi servies sur /oauth/client-metadata.json. |
Endpoints internes
Ces endpoints servent l’interface du site. Ils sont publics mais sans garantie de stabilité : leur format, leurs paramètres et leurs limites peuvent changer à tout moment. Les autres routes /api/… sont réservées à l’extension et à l’indexeur de Bluvy Tube.
| Endpoint | Description |
|---|---|
GET /api/video-stats?ids[]=… | Compteurs (likes, réponses, reposts) de 25 vidéos au maximum, désignées par leur identifiant numérique interne. Les compteurs de plus de 5 minutes sont rafraîchis depuis Bluesky. |
GET /{locale}/search/suggest?q=… | Suggestions de la barre de recherche : requêtes, hashtags, vidéos, créateurs. |
Limites de débit et cache
Les limites s’appliquent par adresse IP, sur une fenêtre glissante. Au-delà, la réponse est une 429.
| Endpoint | Limite | Cache |
|---|---|---|
/oembed | 120 requêtes / minute | public, max-age=3600 |
/{locale}/search/suggest | 120 requêtes / minute | — |
/embed/… | — | public, max-age=120, stale-while-revalidate=600 |
/sitemap.xml | — | Côté serveur, 30 min |
Modération
En plus de sa propre modération des contenus, Bluvy Tube applique les labels des services de modération suivants (en-tête atproto-accept-labelers) :
did:plc:ar7c4by46qjdydhdevvrndac— modération officielle de Bluesky
Bluvy Tube ne publie pas encore de feed generator ni de labeler. Si vous en construisez un pour la vidéo, parlons-en.