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-kimi-tools

v0.1.0

Published

Kimi WebSearch and FetchURL tools for the pi coding agent.

Readme

pi-kimi-tools

Kimi WebSearch and FetchURL tools for the pi coding agent.

Install

pi install npm:pi-kimi-tools

Configure

Create a Kimi Code API key in the Kimi Code Console, then export it before starting pi:

export KIMI_API_KEY="YOUR_API_KEY"
pi

This extension accepts no configuration file and reads no other credential or endpoint variables. It sends requests to the Kimi Code search and fetch services. Kimi Open Platform keys are not interchangeable with Kimi Code keys.

The extension refuses to load when KIMI_API_KEY is missing or blank.

Tools

  • WebSearch searches the web and returns result summaries with source URLs.
  • FetchURL fetches a public HTTP(S) URL, using Kimi's extraction service first and a guarded local fetch as fallback.

Both tools forward pi cancellation signals. FetchURL blocks private and loopback destinations, revalidates redirects, limits response bodies to 10 MiB, and extracts the main text from HTML pages.

When enabled, both tools are listed by name in pi's Available tools system-prompt section. The extension also adds concise Guidelines covering when to search, when to fetch a full page, and how to cite retrieved sources.

In interactive mode, tool results stay compact until you use pi's tool-output expansion shortcut (Ctrl+O by default). Search shows the result count and fetch shows the extracted character count while collapsed.

Before each agent run, the extension appends the current local date and IANA time zone to the end of pi's system prompt:

current date: 2026-08-01
timezone: Asia/Shanghai

The date is regenerated for every new user request and remains stable throughout that agent run. User messages are left unchanged. Because the value changes only when the calendar day or system time zone changes, the stable system-prompt prefix remains cache-friendly.

Acknowledgements

The WebSearch and FetchURL implementations in this project are adapted from Kimi Code, created by Moonshot AI. Thanks to the Kimi Code maintainers and contributors for making their work available under the MIT License.