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

@audsiui/pi-keenable

v0.1.1

Published

Web search and page fetch tools for pi, powered by the Keenable API

Downloads

126

Readme

pi-keenable

Web search and page fetch tools for pi, powered by the Keenable API.

Registers two tools the model can call, plus a skill documenting the search workflow:

  • keenable_search — search the web, returns ranked results with title, URL, description, snippet and dates
  • keenable_fetch — fetch a page as markdown (title, description, author, content; refuses private/internal hosts)
  • keenable-web-search skill — workflow guidance loaded into the model context

Both tools appear in the system prompt's Available tools section, with usage guidelines injected into Guidelines while active.

Install

pi install npm:@audsiui/pi-keenable

Or project-local: pi install -l npm:@audsiui/pi-keenable

API key

Keenable offers keyless public endpoints (rate limited per IP, consume no credits) and keyed endpoints (no IP rate limit, require an API key from keenable.ai).

Login stores the key in ~/.pi/agent/keenable.json:

/keenable login          # prompts for the key
/keenable login keen_xxx # or pass it inline
/keenable logout         # removes the stored key

Auth resolution order: stored key → KEENABLE_API_KEY environment variable → keyless public endpoints.

Base URL (for proxies/gateways):

/keenable base-url           # show the effective base URL
/keenable base-url https://proxy.example.com   # store one (https enforced)
/keenable base-url clear     # remove the stored override

Base URL resolution order: KEENABLE_API_URL environment variable wins, then the stored value, then https://api.keenable.ai (plain http only for localhost).

Usage

The model decides when to use the tools (e.g. "搜索一下最近 Rust 的稳定版本" or "用 keenable_fetch 读一下 https://example.com 的内容"). Recommended workflow: search → keenable_fetch promising results → cite the opened page, never a snippet alone.

Tool features:

  • keenable_search: query (natural-language description), mode (pro), site (one domain), max_results (1–50), snippet_max_length (180–10000), query_time, published_after/published_before and acquired_after/acquired_before (YYYY-MM-DD, ISO timestamp, or relative deltas like 7d, 6mo, 1y)
  • keenable_fetch: url, max_chars (default 50000), live (fetch from source instead of Keenable's index), prompt (LLM extraction instruction, up to 2000 chars — content contains only the answer)

Development

# try it without installing
pi -e ./extensions/keenable.ts

# install from local path
pi install /path/to/pi-keenable

License

MIT