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

pi-nyaa

v0.1.2

Published

Pi extension for querying public metadata from nyaa.si and sukebei.nyaa.si.

Readme

pi-nyaa

Project-local pi extension for querying public metadata from:

The extension registers two tools:

  • nyaa_search — searches RSS metadata and returns titles, categories, size, dates, swarm counts, comments, and view-page URLs.
  • nyaa_view — fetches one /view/<id> page and returns public metadata, description, and file list.

The tools intentionally do not return torrent download links or magnet links.

Install / load

Install from npm

This extension is published as an npm pi package:

pi install npm:pi-nyaa

This installs pi-nyaa into your global pi settings, so nyaa_search and nyaa_view are available in all pi sessions.

To install it only for the current project, write it to the project-local .pi/settings.json instead:

pi install -l npm:pi-nyaa

After installing, restart pi. If pi is already running, use:

/reload

You can also load the npm package for a single run without installing it:

pi -e npm:pi-nyaa

Load from this repository

This repository also places the extension in pi's conventional package path:

extensions/nyaa.ts

Start pi from this repository, then run /reload if pi was already open.

For a one-off run from another directory:

pi -e /home/narumi/workspace/pi-nyaa/extensions/nyaa.ts

Examples

Ask pi:

用 nyaa_search 在 nyaa 查詢 "frieren",依 seeders 排序,列出前 5 筆。
用 nyaa_view 查 nyaa id 2097677,不要 description,只列 category、size 和 files。
用 nyaa_search 在 sukebei 查詢 "test",limit 3。

Notes

  • site is required and must be nyaa or sukebei.
  • sukebei is the adult index; request it explicitly.
  • category accepts raw Nyaa category IDs such as 0_0 or 1_2.
  • Search output is capped at 50 items and tool output is truncated to pi's default limits.