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-tilth

v1.1.1

Published

AST-aware code reading via tilth — replaces read/grep/find/ls tools

Readme

pi-tilth

Pi extension that registers tilth as a native tool for the LLM.

Tilth is an AST-aware code reading CLI powered by tree-sitter. It replaces read, grep, find, and ls with a single smart tool that understands code structure — showing definitions first, resolving callee chains, and supporting glob-based file listing plus slash-wrapped regex content search.

Requirements

  • tilth CLI installed and available in PATH

Install

pi install npm:pi-tilth

Or from GitHub:

pi install https://github.com/sting8k/pi-tilth

Or try without installing:

pi -e https://github.com/sting8k/pi-tilth

Features

  • Tool registrationtilth available as a native Pi tool with structured params (query, scope, section, budget, map)
  • Query modesquery can be a file path, symbol, glob, plain text, or slash-wrapped regex content search like /handle(Auth|Login)/
  • Regex caveat — upstream tilth supports /<pattern>/ regex content search, but some regex patterns that contain glob-like characters may still be classified as globs first
  • Mode toggle/tilth [on|off] enables/disables tilth mode, removing built-in tools when active
  • Persistent config — state saved to ~/.pi/agent/settings.json under "pi-tilth" key
  • Auto-enable — restores tilth mode on session start based on saved config
  • Styled rendering — custom renderCall/renderResult with badge, bold params, and line count summary
  • Nudge hints — when tilth mode is on, appends a [tilth] hint to bash tool output if the command uses rg, grep, find, fd, cat, etc., reminding the agent to prefer tilth
  • Remote command detection — automatically skips nudge hints for remote commands (ssh, sshpass, scp, rsync, docker exec, kubectl exec) since tilth only works locally

Commands

| Command | Description | |---------|-------------| | /tilth | Enable tilth mode (default) | | /tilth on | Enable tilth mode | | /tilth off | Disable tilth mode, restore built-in tools |