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

@ramkrishna-js/streaming-sdk

v1.1.0

Published

The ultimate Node.js/TypeScript SDK for TMDB. High-performance, dual-stack (ESM/CJS) support, featuring intelligent media utilities, auto-pagination, and customizable caching.

Readme

@ramkrishna-js/streaming-sdk

The ultimate Node.js/TypeScript SDK for The Movie Database (TMDB). High-performance, dual-stack (ESM/CJS) support, featuring intelligent media utilities, auto-pagination, and customizable caching. Designed for building enterprise-grade media applications.

Features

  • TypeScript Support: Full type definitions for a better developer experience.
  • Dual-Stack: Supports both CommonJS (require) and ESM (import).
  • Flexible Caching: Built-in node-cache or provide your own custom cache store (e.g., Redis).
  • Image Helper: Easy URL generation for movie posters and backdrops.
  • Global Localization: Support for language parameters on all requests.

Installation

npm install @ramkrishna-js/streaming-sdk

Usage (CommonJS)

const { createClient } = require('@ramkrishna-js/streaming-sdk');

const sdk = createClient('YOUR_TMDB_API_KEY');

Usage (ESM / TypeScript)

import { createClient } from '@ramkrishna-js/streaming-sdk';

const sdk = createClient('YOUR_TMDB_API_KEY', {
  cacheTTL: 600
});

// Image Helper usage
const posterUrl = sdk.images.getUrl('/path_to_poster.jpg', 'w500');

// Extract YouTube Trailer
const movie = await sdk.movies.getDetails(268);
const trailerUrl = sdk.utils.getYouTubeTrailer(movie.videos.results);

// Auto-Pagination (Fetch first 3 pages of popular movies)
const top60 = await sdk.utils.paginate(sdk.movies.getPopular, [], 3);

Custom Cache Store

You can provide your own cache implementation (e.g., for Redis integration):

const sdk = createClient('KEY', {
  cache: {
    get: async (key) => myRedis.get(key),
    set: async (key, val) => myRedis.set(key, val, 'EX', 3600)
  }
});

API Documentation

Movies

  • sdk.movies.search(query, page, language)
  • sdk.movies.getDetails(id, language)
  • sdk.movies.getPopular(page, language)
  • sdk.movies.getTrending(timeWindow, page, language)
  • sdk.movies.getUpcoming(page, language)
  • sdk.movies.getTopRated(page, language)
  • sdk.movies.getGenres(language)
  • sdk.movies.discover(params)
  • sdk.movies.getWatchProviders(id, language)
  • sdk.movies.getSimilar(id, page, language)

TV Shows

  • sdk.tv.search(query, page, language)
  • sdk.tv.getDetails(id, language)
  • sdk.tv.getPopular(page, language)
  • sdk.tv.getTopRated(page, language)
  • sdk.tv.getTrending(timeWindow, page, language)
  • sdk.tv.getSeason(id, seasonNum, language)
  • sdk.tv.getEpisode(id, seasonNum, epNum, language)

Configuration & Utilities

  • sdk.images.getUrl(path, size): Generate full image URLs.
  • sdk.find.byId(id, source, language): Find by IMDb/External ID.
  • sdk.configuration.getAPIConfig(): Get base URLs for images.
  • sdk.trending.getAll(timeWindow, page): Get combined trending list.

License

MIT