npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@carlosnc/tmdb-sdk

v0.8.0

Published

A lightweight, fully-typed TypeScript client for the TMDB API v3

Downloads

787

Readme

TMDB SDK

CI Docs Bun npm

A complete, fully-typed TypeScript client for the TMDB API v3. All 25 namespaces, zero runtime dependencies beyond axios.

bun add @carlosnc/tmdb-sdk

Authentication

import { TMDBClient } from "@carlosnc/tmdb-sdk";

const client = new TMDBClient({
  accessToken: process.env.TMDB_TOKEN, // recommended
});

// or with an API key
const client2 = new TMDBClient({
  apiKey: process.env.TMDB_KEY,
});

Get credentials from your TMDB API settings.

Quick Start

const client = new TMDBClient({ accessToken: process.env.TMDB_TOKEN });

// System config
const config = await client.configuration.getDetails();

// Account
const account = await client.account.getDetails();

// Movie details
const movie = await client.movie.getDetails(550);

// TV series with season
const season = await client.tv.getSeasonDetails(1399, 1);

// Search
const results = await client.search.getMovies({ query: "Matrix" });

// Watch providers
const regions = await client.watchProviders.getAvailableRegions();

Movie Example

const client = new TMDBClient({ accessToken: process.env.TMDB_TOKEN });

const movie = await client.movie.getDetails(550);

console.log("Title:", movie.title);
console.log("Tagline:", movie.tagline);
console.log("Release Date:", movie.release_date);
console.log("Runtime:", movie.runtime, "mins");
console.log("Genres:", movie.genres?.map((g) => g.name).join(", "));
console.log("Overview:", movie.overview);

Namespaces

| Client | Key Methods | |---|---| | client.account | favorites, watchlist, ratings, lists | | client.accountV4 | v4 favorites, watchlist, rated, lists | | client.authV4 | v4 request token, access token, logout | | client.authentication | sessions, request tokens, guest sessions, key validation | | client.certification | movie and TV certifications | | client.changes | movie, TV, and person change log | | client.collection | collection details, images, translations | | client.credit | credit details by ID | | client.company | company details, alternative names, images | | client.configuration | API and image configuration | | client.discover | movie and TV discovery with filters | | client.find | find by external IDs | | client.genre | movie and TV genre lists | | client.guestSession | guest session rated movies/TV/episodes | | client.keyword | keyword details and movies | | client.list | create, read, update, delete lists | | client.listV4 | v4 list CRUD and item management | | client.movie | details, credits, images, videos, ratings, watch providers, recommendations, similar, and more | | client.network | network details and alternative names | | client.person | details, credits, external IDs, images, tagged images, changes | | client.review | review details | | client.search | multi, movie, TV, person, collection, company, keyword | | client.trending | trending movies, TV, people (day/week) | | client.tv | series, season, and episode details, credits, images, videos, ratings, watch providers, episode groups, and more | | client.watchProviders | available regions, movie providers, TV providers |

Development

# Install dependencies
bun install

# Run tests (mocked by default; set TMDB_TOKEN for live API tests)
bun test

# Type-check
bun run typecheck

# Run examples (requires TMDB_TOKEN in .env or --env-file)
bun --env-file=.env run examples/movie.ts

# Generate API documentation
bun run docs

Project Structure

src/
├── client.ts            # TMDBClient — wires all sub-clients
├── index.ts             # Barrel exports
├── client/              # One directory per namespace
│   ├── account/
│   ├── account-v4/
│   ├── auth-v4/
│   ├── authentication/
│   ├── certification/
│   ├── changes/
│   ├── collection/
│   ├── company/
│   ├── configuration/
│   ├── credit/
│   ├── discover/
│   ├── find/
│   ├── genre/
│   ├── guest-session/
│   ├── keyword/
│   ├── list/
│   ├── list-v4/
│   ├── movie/
│   ├── network/
│   ├── person/
│   ├── review/
│   ├── search/
│   ├── trending/
│   ├── tv/
│   └── watch-providers/
└── types/               # TypeScript interfaces for every endpoint

Resources


Carlos Costa @ 2026