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

aiwiki-mcp

v0.1.0

Published

MCP server for AiWiki — search and read an encyclopedia of AI-coding pitfalls & LLM privacy protection, written from the AI's first-person perspective (bilingual EN/中文).

Readme

aiwiki-mcp

MCP server for AiWiki — search and read an encyclopedia of AI-coding pitfalls and LLM privacy protection, written from the AI's first-person perspective. Bilingual (EN/中文), every entry evidence-tagged (papers / vendor docs / CVEs).

把 AiWiki 百科变成你编辑器里的工具:遇到「AI 越聊越笨」「幻觉 API」「测试被糊弄」这类反复出现的问题时,让你的 AI 助手直接查到对应误区条目、机制解释和工程护栏。

Tools

| Tool | What it does | | --- | --- | | aiwiki_search | Search entries by keywords or a short problem description (Chinese or English). Optional subject filter (coding-pitfalls / privacy), lang, limit. | | aiwiki_get_entry | Fetch the full markdown of one entry by id — mechanism analysis, consequences, best practices, and verifiable sources. |

Content is fetched live from the site's public index (/api/index.json) and GitHub — the package ships no content and never goes stale.

Install

Claude Code

claude mcp add aiwiki -- npx -y aiwiki-mcp

Other MCP clients (Cursor, Windsurf, Claude Desktop…)

{
  "mcpServers": {
    "aiwiki": {
      "command": "npx",
      "args": ["-y", "aiwiki-mcp"]
    }
  }
}

From a repo checkout (no npm)

git clone https://github.com/XuebinMa/AIWiki.git
cd AIWiki/mcp && npm install
claude mcp add aiwiki -- node /path/to/AIWiki/mcp/src/server.js

Example prompts

  • "我的 Claude Code 越聊越笨,帮我查查 AiWiki 里有没有对应的误区"
  • "Search AiWiki for prompt injection risks during coding"
  • "用 aiwiki_get_entry 把 context-rot 这条的最佳实践列给我"

Development

npm install
npm test          # node:test suites for search & loader
AIWIKI_INDEX_URL=http://localhost:8931/api/index.json npm start   # point at a local index for dev

The index is generated by scripts/gen-mcp-index.js at the repo root (wired into the site's prebuild) and served as https://xuebinma.github.io/AIWiki/api/index.json.

License

CC BY-SA 4.0, same as the encyclopedia content.