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

tarshub

v1.0.6

Published

Install agent context packages from TarsHub

Readme

tarshub

Install agent context packages from TarsHub — the free, community-driven registry for AI coding agent context files.

Usage

Package references mirror GitHub: @<owner>/<repo> or @<owner>/<repo>/<subpath> for a folder inside a repo.

npx tarshub @<github-username>/<repo>[/<subpath>]
# same as:
npx tarshub install @<github-username>/<repo>[/<subpath>]

You can omit the install subcommand when the first argument looks like a package ref (owner/repo with a slash).

Commands

install (or shorthand)

Download and write context files into your current project directory.

npx tarshub @johndoe/my-repo
npx tarshub @PatrickJS/awesome-cursorrules/rules/htmx-flask
npx tarshub install @johndoe/my-repo --force

Flags:

| Flag | Description | |---|---| | --force | Overwrite all existing files without prompting | | --dry-run | Preview what would be installed without writing any files | | --version <tag> | Install a specific version (git tag, e.g. 1.2.0) |

If a file already exists and you did not pass --force, the CLI asks: y (this file only), n (skip), or a (overwrite this and all remaining conflicts in this install).

info

Show package metadata without installing.

npx tarshub info @johndoe/my-repo

search

Search packages by keyword.

npx tarshub search nextjs

Version

npx tarshub --version

How it works

  1. Loads the package manifest from the TarsHub registry at packages/<owner>/<repo>/tarshub.json (or nested paths for subfolder packages).
  2. Reads the files list and repo / subpath from that manifest.
  3. Downloads each file from raw.githubusercontent.com on the default branch (or tag when using --version).
  4. Writes the files into your current directory.

The CLI talks only to raw.githubusercontent.com — no TarsHub servers are contacted.

Security

  • Only plain-text file types are downloaded: .md, .mdc, .txt, .json, .yaml, .yml, .toml
  • Individual files are capped at 50 KB; total package at 500 KB
  • Path traversal attempts in file paths are rejected
  • Existing files are never silently overwritten (use --force to opt in)

Publishing packages

Publishing is done through tarshub.com, not this CLI. Submit your public GitHub repo URL on the website.

Requirements

Node.js 18 or later.

License

MIT