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

@willxuu/mukaku-cli

v0.2.0

Published

A CLI for discovering Mukaku movies, TV shows, and torrent resources

Readme

mukaku-cli

A small TypeScript CLI for searching Mukaku movie and TV resources, browsing homepage selections, inspecting title-level torrent resources, and getting simple resource recommendations.

The CLI is intentionally stateless: it calls Mukaku live, normalizes the response, and prints either compact terminal output or JSON for agents and scripts.

Install

npm install -g @willxuu/mukaku-cli

After install, use the mukaku command:

mukaku search "Avatar"

Agent Skill

For AI coding agents, install the optional Mukaku resource finder skill:

npx skills add -g Johnson1602/skills --skill mukaku-resource-finder

The skill teaches agents to use mukaku search --json and mukaku resources --recommend --json for movie and TV resource requests.

Commands

Featured

List Mukaku homepage selections and popularity lists:

mukaku featured movies
mukaku featured tv
mukaku featured recent
mukaku featured weekly
mukaku featured monthly

Running mukaku featured without a category prints the available subcommands.

Options for each category:

  • --limit <number>: locally limit the results; omitted by default so the full list is returned
  • --json: print normalized JSON using the same item shape as search --json
  • --raw: print the raw Mukaku API response

Featured results preserve Mukaku's server-provided order. --raw cannot be combined with --json or --limit.

For agent workflows:

mukaku featured recent --json

Search

Search Mukaku titles:

mukaku search "Avatar"

Options:

  • -l, --limit <number>: maximum number of results to print, default 10
  • -p, --page <number>: result page to request, default 1
  • --json: print normalized JSON
  • --raw: print the raw Mukaku API response

--raw cannot be combined with --json.

For agent workflows, prefer JSON:

mukaku search "Avatar" --json

Resources

List normalized torrent resources for a Mukaku detail page. The argument is the Douban subject id used by Mukaku detail pages.

mukaku resources 1652587

Options:

  • --quality <quality>: filter by exact Mukaku quality group, such as WEB-4K
  • --limit <number>: maximum number of resources to print
  • --recommend [number]: print recommended torrent resources, default 3
  • --json: print normalized JSON
  • --raw: print the raw Mukaku API response

--raw cannot be combined with --json, --quality, --limit, or --recommend. --recommend cannot be combined with --limit.

Recommended resources:

mukaku resources 1652587 --recommend
mukaku resources 1652587 --recommend 2 --json

Quality-filtered resources:

mukaku resources 1652587 --quality WEB-4K

Output

Human output is compact and meant for terminal reading. JSON output is the stable interface for automation.

Use --raw only when debugging Mukaku API behavior or updating the normalizers; it prints the upstream response without CLI normalization.

Mukaku Client Params

Mukaku API requests include app_id and identity query parameters. They are public request identifiers used by Mukaku's web client, not private credentials, and are centralized in src/api/http.ts.

Development

Install dependencies:

pnpm install

Run from source:

pnpm dev search "Avatar"

Run the built CLI:

pnpm build
node dist/index.mjs search "Avatar"

Verify changes:

pnpm typecheck
pnpm test
pnpm build

Disclaimer

This project is for personal learning and research on CLI architecture only.

This project is not affiliated with, endorsed by, or authorized by Mukaku or any related service provider. Users are responsible for ensuring that their use complies with the applicable website terms, service rules, copyright rules, and local laws.

Do not use this tool to bypass access controls, rate limits, authentication requirements, or any other technical or contractual restrictions. The author is not responsible for account issues, data loss, service bans, legal claims, or other consequences caused by misuse.