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

movie-librarian

v1.0.0

Published

CLI tool to scan and catalog your movie library

Readme

🎬 Movie Librarian

CLI tool to scan directories for video files, identify movies and TV shows via TMDb, and output a CSV catalog.

Quick Start

1. Install Node.js (if needed)

  • Go to nodejs.org
  • Download the LTS version
  • Run the installer

2. Get a TMDb API Key (required)

  1. Create a free account at themoviedb.org
  2. Go to Settings → API
  3. Request an API key (choose "Developer" option)
  4. Copy your API key

3. Get an OpenAI API Key (optional)

Only needed if you want AI fallback for hard-to-identify files.

  1. Go to platform.openai.com
  2. Create an account and add billing
  3. Go to API Keys and create a new key
  4. Set a usage limit (e.g., $5/month) in Settings → Limits

4. Run the tool

npx movie-librarian

The tool will prompt you for your API keys on first run and save them to ~/.movie-librarian/config.json.

Usage

🎬 Welcome to Movie Librarian!

📁 Enter directories to scan (comma-separated):
> /Volumes/Movies, /Volumes/TV Shows

💾 Output filename [catalog.csv]:
> my-library.csv

🤖 Enable AI fallback for hard-to-identify files? (y/n):
> y

🔍 Scanning directories...
   Found 2000 video files

📽️  Processing files...
✓ [1/2000] The Ballad of Wallis Island (2025)
✓ [2/2000] Afternoons of Solitude (2024)
✗ [3/2000] random_file.mp4

✨ Complete!
   🎬 Movies: 1847
   📺 TV Shows: 142
   ❓ Unidentified: 11

💾 Saved to my-library.csv

How It Works

  1. Pattern matching - regex extracts title, year, season/episode from filenames
  2. TMDb lookup - verifies and enriches metadata
  3. Progressive search - tries shorter title fragments if no match
  4. AI fallback (optional) - uses GPT to parse difficult filenames

Supported File Extensions

.mkv, .mp4, .avi, .mov, .m4v, .wmv

CSV Output

| Column | Description | |--------|-------------| | title | Movie/show name | | type | movie or tv | | year | Release year | | director | Director name | | runtime | Minutes | | season | Season number (TV only) | | episode | Episode number (TV only) | | imdb_id | IMDB ID | | imdb_url | Link to IMDB page | | file_path | Full path to file | | duplicate_group | ID linking duplicate files | | status | verified, unverified, unidentified |

Configuration

Config is stored in ~/.movie-librarian/config.json:

{
  "tmdbApiKey": "your-tmdb-api-key",
  "openaiApiKey": "your-openai-api-key"
}

Attribution

This product uses the TMDb API but is not endorsed or certified by TMDb.

TMDb

License

MIT