Class: RemoteDataset
A Dataset over the static shards (docs/SPEC.md, “Hosting”): fetches files on demand from baseUrl (the /v1/ root) and caches them by data_version. Missing files (404) mean the record does not exist; any other HTTP failure is an error. It uses only fetch and plain JavaScript, so it runs unchanged in Node, browsers and Workers (decision S4.7).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RemoteDataset(
baseUrl?,opts?):RemoteDataset
Parameters
Section titled “Parameters”baseUrl?
Section titled “baseUrl?”string = COURMAP_URLS.data
RemoteOptions = {}
Returns
Section titled “Returns”RemoteDataset
Methods
Section titled “Methods”aliasGrams()
Section titled “aliasGrams()”aliasGrams(
bucket):Promise<Record<string,string[]>>
aliases/grams/
Parameters
Section titled “Parameters”bucket
Section titled “bucket”number
Returns
Section titled “Returns”Promise<Record<string, string[]>>
Implementation of
Section titled “Implementation of”aliasShard()
Section titled “aliasShard()”aliasShard(
prefix):Promise<AliasEntry[]>
aliases/
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string
Returns
Section titled “Returns”Promise<AliasEntry[]>
Implementation of
Section titled “Implementation of”findWorkIds()
Section titled “findWorkIds()”findWorkIds(
provider,providerId):Promise<string[]>
Work ids carrying this provider ID, sorted ascending.
Parameters
Section titled “Parameters”provider
Section titled “provider”"anidb" | "anilist" | "mal" | "kitsu" | "tvdb_show" | "tmdb_show" | "tmdb_movie" | "imdb"
providerId
Section titled “providerId”string
Returns
Section titled “Returns”Promise<string[]>
Implementation of
Section titled “Implementation of”getSequence()
Section titled “getSequence()”getSequence(
id):Promise<SequenceRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<SequenceRecord | undefined>
Implementation of
Section titled “Implementation of”getWork()
Section titled “getWork()”getWork(
id):Promise<WorkRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<WorkRecord | undefined>
Implementation of
Section titled “Implementation of”groups()
Section titled “groups()”groups():
Promise<GroupRecord[]>
Every release group, sorted by id.
Returns
Section titled “Returns”Promise<GroupRecord[]>
Implementation of
Section titled “Implementation of”meta()
Section titled “meta()”meta():
Promise<Meta>
Returns
Section titled “Returns”Promise<Meta>
Implementation of
Section titled “Implementation of”This product uses the TMDB API but is not endorsed or certified by TMDB.