A typed client for The Movie Database: v4 auth, accounts and lists over the full v3 catalogue
Formerly @deckyard/tmdb.
[decks]
"@skiffyard/tmdb" = "^0.4.0"| Version | Status | Kind | Pin | Requires | Engines | Capabilities |
|---|---|---|---|---|---|---|
| 0.4.0 | live | git | c0489f0734fc | - | jennifer >=0.28.0 | net |
LGPL-3.0-only
0.4.0Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.
A typed Jennifer client for The Movie Database™. One Client reaches both API generations: the v3 catalogue (search, discovery, films, series, people, images, watch providers) and v4 user authentication, accounts and custom lists. Replies are folded into structs, arguments are checked before the request, and every failure is a TmdbError (kind "tmdb", with the HTTP status and TMDB™'s statusCode).
This deck is part of Skiffyard, small community decks for Jennifer.
jvc add @skiffyard/tmdbOr unpack src/ from a release archive (skiffyard-tmdb-<version>.tar.gz) into vendor/skiffyard/tmdb/.
Requires Jennifer 0.28.0 or newer and the default jennifer binary: the deck declares the net capability, which jennifer-tiny lacks.
use io;
import "@skiffyard/tmdb/" as tmdb;
# TMDB_ACCESS_TOKEN=eyJ... jennifer run app.j
def c as tmdb.Client init tmdb.clientFromEnv();
def hits as tmdb.MoviePage init tmdb.searchMovies($c, "blade runner", 1);
for (def m in $hits.results) {
io.printf("%s (%s) %.1f\n", $m.title, tmdb.year($m.releaseDate), $m.voteAverage);
}
def film as tmdb.MovieBundle init tmdb.movieBundle($c, $hits.results[0].id);
io.printf("%d min, directed by %s\n", $film.movie.runtime, tmdb.directorOf($film.credits));The token is the long eyJ... API Read Access Token from https://www.themoviedb.org/settings/api, not the 32-character API key; see Getting started.
skiffyard.github.io/deck-tmdb, with every export in the cheatsheet. Runnable programs are in examples/. tools/check-all.sh runs the CI gate.
LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.
This product uses the TMDB API but is not endorsed or certified by TMDB. Using the API means agreeing to its terms of use, which require attribution in any application built on it. The watch-provider data is JustWatch™'s and carries its own attribution requirement.
JustWatch™ is a trademark of JustWatch GmbH. YouTube™ is a trademark of Google LLC. Vimeo™ is a trademark of Vimeo.com, Inc. IMDb™ is a trademark of IMDb.com, Inc. TMDB™, The Movie Database™ and other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by TMDB, JustWatch GmbH or any other service named here.