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

v1.0.0

Published

QMD (Quick Markdown Search) extension for pi coding agent - on-device knowledge base search with BM25, vector search, and LLM reranking

Readme

pi-qmd

QMD (Quick Markdown Search) extension for pi coding agent - on-device knowledge base search with BM25, vector search, and LLM reranking.

QMD Browser

Features

  • Full TUI Browser (/qmd_ui) - Split-pane interface with results tree and markdown preview
  • Multiple Search Modes - Keyword (BM25), Semantic (vector), and Hybrid (LLM reranking)
  • Smart Preview - Auto-loads and scrolls to matched section with highlighting
  • 6 Tools for LLM-driven search and retrieval

Installation

Prerequisites

QMD requires Bun runtime:

# Install Bun and QMD
brew install oven-sh/bun/bun
bun install -g https://github.com/tobi/qmd

Install Extension

npm install -g pi-qmd

Add to ~/.pi/agent/settings.json:

{
  "extensions": ["pi-qmd"]
}

Usage

Commands

| Command | Description | |---------|-------------| | /qmd [query] | Quick search | | /qmd status | Show index status | | /qmd_ui [query] | Open full TUI browser | | /qmd collections | List collections | | /qmd add <path> | Add a collection | | /qmd embed | Generate embeddings |

TUI Browser (/qmd_ui)

╭─────────────────────────────────────────────────────────────────╮
│ 📚 QMD Browser (Keyword)                                        │
├─────────────────────────────────────────────────────────────────┤
│ Search:                                                         │
│ > oauth                                                         │
│ Found 5 results                                                 │
├─────────────────────────────────────────────────────────────────┤
│ Results                          │ Preview                      │
│ 📁 Meeting notes                 │ # Sprint Planning            │
│ ├→ Sprint Planning 100%          │                              │
│ └─ 1:1 Meeting 95%               │ **Attendees:** Alice, Bob    │
│ 📁 Documentation                 │ **Duration:** 1 hour         │
│ └─ Auth API 90%                  │                              │
│                                  │ ## Sprint Goals              │
│                                  │ - Migrate to OAuth 2.0       │
├─────────────────────────────────────────────────────────────────┤
│ Enter search • Tab mode • ↑↓ navigate • Enter load • Esc close  │
╰─────────────────────────────────────────────────────────────────╯

Controls:

  • Enter - Search (in input) / Load document (in results)
  • Tab - Cycle search mode (Keyword → Semantic → Hybrid)
  • ↑/↓ - Navigate results (auto-loads preview)
  • PgUp/PgDn - Scroll preview
  • Esc - Close

Tools (for LLM)

| Tool | Description | |------|-------------| | qmd_search | Fast BM25 keyword search | | qmd_vsearch | Semantic vector search | | qmd_query | Hybrid search with LLM reranking | | qmd_get | Retrieve document by path or docid | | qmd_multi_get | Retrieve multiple docs by glob pattern | | qmd_status | Check index health |

Setting Up Your Knowledge Base

# Index a folder
qmd collection add ~/notes --name notes

# Generate embeddings for semantic search
qmd embed

# Verify
qmd status

Skill

The package includes a skill at skills/qmd-knowledge/SKILL.md that teaches the LLM how to effectively search your knowledge base. Symlink it:

ln -s $(npm root -g)/pi-qmd/skills/qmd-knowledge ~/.pi/agent/skills/

License

MIT