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

v1.0.0

Published

OpenWiki documentation generator for the Pi coding agent

Downloads

244

Readme

pi-openwiki

AI-powered documentation that stays current with your code

Automatically generates and maintains comprehensive documentation for your codebase using Pi's AI capabilities.

Based on OpenWiki by LangChain - adapted as a Pi coding agent extension.

Quick Start

# Install from npm
pi install npm:pi-openwiki

# Generate docs
cd your-project
pi
/openwiki:init

# Update after code changes
/openwiki:update

# Ask questions
/openwiki:chat How does authentication work?

What You Get

After running /openwiki:init:

openwiki/
├── quickstart.md              # Start here
├── architecture/              # System design
├── workflows/                 # Development processes
├── domain/                    # Business logic
├── operations/                # Deployment
└── testing/                   # Test strategies

Features

  • 🤖 AI-Generated - Leverages your Pi model to understand your codebase
  • 🔄 Git-Aware - Updates only what changed
  • 🎯 Agent-Optimized - Works for humans and AI agents
  • Smart - Prevents redundant regeneration

Commands

/openwiki:init

Generate initial documentation for your repository.

/openwiki:update

Update docs based on git changes since last run.

/openwiki:chat <question>

Ask questions about your codebase without modifying docs.

Installation Options

# Global (use everywhere)
pi install npm:pi-openwiki

# Project-specific
pi install -l npm:pi-openwiki

# From GitHub
pi install git:github.com/barvhaim/pi-openwiki

# Temporary (this session only)
pi -e git:github.com/barvhaim/pi-openwiki

# Local development
pi -e /path/to/pi-openwiki

How It Works

  1. Discovery - Explores your repository structure and git history
  2. Analysis - Understands the "why" behind your code
  3. Generation - Creates structured markdown documentation
  4. Tracking - Saves metadata for smart incremental updates
  5. Integration - Updates AGENTS.md/CLAUDE.md automatically

Requirements

  • Pi >= 0.80.0
  • Git repository
  • Node.js with TypeScript

Package Gallery

This package is prepared for the Pi package gallery. It is ready to publish as pi-openwiki and declares the required Pi package metadata:

{
  "keywords": ["pi-package"],
  "pi": {
    "extensions": ["./extensions"]
  }
}

After publishing to npm, the package can be installed with:

pi install npm:pi-openwiki

Development

# Clone and install dependencies
git clone https://github.com/barvhaim/pi-openwiki.git
cd pi-openwiki
npm install

# Test locally
pi -e .

# Make changes and reload
/reload

Architecture

Modular design for maintainability:

extensions/openwiki/
├── commands.ts      # Command handlers
├── tools.ts         # AI tools
├── events.ts        # Event handlers
├── git-utils.ts     # Git operations
├── metadata.ts      # Metadata management
├── prompts.ts       # System prompts
└── constants.ts     # Constants & types

See extensions/openwiki/README.md for details.

Troubleshooting

"Not in a git repository!"
Initialize git: git init && git add . && git commit -m "init"

Commands not showing up?
Reload Pi: /reload

"No changes detected"
Normal - means your code hasn't changed since last update.

License

MIT

Credits

This Pi extension is based on OpenWiki by LangChain AI, adapted for the Pi coding agent ecosystem.

Contributing

Issues and PRs welcome at github.com/barvhaim/pi-openwiki