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

@raulanatol/trakt-cli

v1.1.0

Published

CLI for Trakt.tv — designed to be consumed by Claude skills (JSON output).

Readme

trakt-cli

A CLI for Trakt.tv designed to be consumed by Claude skills. All commands emit JSON on stdout; errors go to stderr with non-zero exit codes.

Install

npm i -g @raulanatol/trakt-cli
# or
pnpm add -g @raulanatol/trakt-cli

The global bin is trakt-cli.

Setup

  1. Create an app at https://trakt.tv/oauth/applications
    • Redirect URI: urn:ietf:wg:oauth:2.0:oob
  2. Export your credentials only for the login step:
    export TRAKT_CLIENT_ID=...
    export TRAKT_CLIENT_SECRET=...
    trakt-cli login       # device flow — follow on-screen instructions

After login, the credentials are persisted in ~/.config/trakt-cli/auth.json (mode 0600) alongside the OAuth tokens, so you can unset the env vars. The CLI will refresh tokens transparently when they expire without needing them again.

Upgrading from 1.0.x

1.0.0 required the env vars on every command. If you upgraded an existing install, run trakt-cli logout && trakt-cli login once (with env vars set) to migrate your session to the new format.

Local development

pnpm install
pnpm build
pnpm link --global

Commands

All commands emit JSON. Errors → stderr as {"error": "..."} and exit ≠ 0.

| Command | Description | | --- | --- | | trakt-cli login | OAuth device flow | | trakt-cli logout | Remove stored tokens | | trakt-cli whoami | Authenticated user info | | trakt-cli history [--type movies\|shows] [--limit N] | Watch history | | trakt-cli watchlist [--type] [--limit N] | Watchlist items | | trakt-cli search <query> [--type movie\|show] | Search | | trakt-cli trending [--type movies\|shows] [--limit N] | Trending | | trakt-cli recommendations [--type movies\|shows] [--limit N] | Personal recommendations | | trakt-cli stats | Your Trakt stats |