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

@kitsunekode/kunai

v0.2.5

Published

Terminal-first media streaming CLI that resolves provider streams and launches mpv.

Downloads

695

Readme

@kitsunekode/kunai

@kitsunekode/kunai is the published CLI package for Kunai.

Kunai is a terminal-first media tool that resolves provider streams and launches playback in mpv.

Requirements

  • mpv on your PATH (required)
  • yt-dlp on your PATH when offline downloads are enabled (optional feature)
  • ffprobe for optional verification of finished downloads only—not the downloader
  • chafa for poster previews (Sixel/ANSI fallback in non-Kitty terminals)
  • Kitty/Ghostty terminal for native Kitty poster previews (optional)
  • ImageMagick (magick) for Kitty/Ghostty non-PNG poster conversion (optional)
  • Discord desktop app for Rich Presence (optional; Kunai talks to local Discord IPC from Bun)

Poster subsystem and testing: repo root .docs/poster-image-rendering.md.

Install core tools:

# Linux (Arch)
sudo pacman -S mpv yt-dlp chafa imagemagick

# Linux (Debian/Ubuntu)
sudo apt install mpv yt-dlp chafa imagemagick

# macOS (Homebrew)
brew install mpv yt-dlp chafa imagemagick

Windows options:

  • winget (recommended): install mpv, yt-dlp, chafa (winget install hpjansson.Chafa), and ImageMagick (winget install ImageMagick.ImageMagick); add ffprobe separately if you want post-download validation
  • Chocolatey: choco install mpv yt-dlp chafa imagemagick
  • Scoop: scoop install mpv yt-dlp chafa imagemagick

Install

npm install -g @kitsunekode/kunai

Run:

kunai

Useful Commands

kunai
kunai -a
kunai -S "Dune"
kunai -i 438631 -t movie
kunai --debug
kunai --setup
kunai --offline

Default download path (when downloads are enabled):

  • Linux: ~/.local/share/kunai/downloads (or XDG_DATA_HOME/kunai/downloads)
  • macOS: ~/Library/Application Support/kunai/downloads
  • Windows: %LOCALAPPDATA%\kunai\downloads

Recommendation shortcuts:

# inside Kunai command palette
/recommendation
/downloads

Download workflow shortcuts:

  • From browse results, use Ctrl+D / /download to queue the selected result.
  • During playback or post-playback, use d / /download to queue the current stream.
  • Use /downloads to inspect active/failed/completed jobs and retry or cancel entries.

Playback recovery shortcuts:

  • Use r / /recover to refresh the current stream and resume.
  • Use /recompute when provider/source inventory looks stale and cached provider memory should be bypassed.
  • Use f / /fallback to try the next compatible provider.
  • Use k / /tracks to review source, quality, audio, hardsub, and subtitle options.

Diagnostics

  • Use --debug for verbose logs
  • Use --debug-json to write scoped JSONL diagnostics traces
  • Use --debug-session for a developer repro session with trace path and breakpoint guidance
  • Use / export-diagnostics inside Kunai for a redacted report snapshot
  • Use / report-issue to export a redacted bundle and open a prefilled GitHub issue draft

Caveats

  • Provider availability can drift over time
  • Subtitle/source inventories vary by provider and title
  • Kunai prioritizes deterministic recovery and diagnostics over opaque retries

Project

  • Repository: https://github.com/kitsunekode/kunai
  • Issues: https://github.com/kitsunekode/kunai/issues