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

@liulinnuha/lithium-kb

v1.2.5

Published

Fast, in-memory structured markdown knowledge base (.agent-kb/) with 2D neural graph visualization, live SSE activity stream, and MCP stdio integration.

Downloads

1,631

Readme

⚡ lithium-kb: Structured Agent Knowledge Base & Neural Graph

npm version GitHub Packages GitHub Node.js Zero Dependencies MCP Compatible License: MIT

A high-performance structured project knowledge base generator, neural network memory visualizer, and Model Context Protocol (MCP) server for AI coding agents (Pi, Claude, Codex, Cursor, Windsurf).


📁 Structured Knowledge Hierarchy

Whenever lithium-kb is run, it organizes project memory into clean, modular knowledge categories:

your-project/
├── .lithium-kb/
│   ├── architecture/
│   │   └── overview.md             # Topology, entry points, service boundaries
│   ├── debug/
│   │   ├── quickstart-diagnostics.md # Resolved incidents & root-cause postmortems
│   │   └── ...
│   ├── tasks/
│   │   ├── initial-setup.md        # Active sprint tasks & acceptance criteria
│   │   ├── explorer-ui.md
│   │   └── ...
│   └── features/
│       ├── core-specs.md           # Detailed feature specifications
│       └── ...
├── .agentrules                     # Explicit AI agent navigation directives
└── PROJECT_KB.md                   # Compact global index (< 2KB)

⚡ Why Structured Knowledge Matters

  1. Surgical Token Efficiency: When an agent works on a bug or task, it reads only .lithium-kb/tasks/<name>.md or .lithium-kb/debug/<name>.md instead of blindly traversing thousands of codebase lines.
  2. Deterministic Context: Agents don't lose track of multi-step plans across sessions.
  3. Interactive Neural Visualizer:
    • File Explorer Sidebar: Collapsible category trees with directory rails, item count badges, and expand/collapse quick actions.
    • Real-Time Impulses: Observe live memory hits, dynamic impulse animations, and token savings as agents query knowledge nodes.
  4. Zero Dependencies: Pure Node.js standard library — zero install footprint, lightning fast.

📦 Installation & Quickstart

🚀 1-Command Setup (Auto-Configure All Agents & Editors)

Run this inside any project repository to initialize the knowledge structure and automatically configure MCP for Cursor, Claude Desktop, Windsurf, Zed, and VS Code (Cline / Roo Code):

npx @liulinnuha/lithium-kb init

🛠️ CLI Commands

# Generate / Sync knowledge base (.lithium-kb/ and PROJECT_KB.md)
npx @liulinnuha/lithium-kb

# Open Neural Graph Web UI (port 3030)
npx @liulinnuha/lithium-kb --ui

# Auto-watch for file changes and sync live
npx @liulinnuha/lithium-kb --watch

# Launch MCP stdio server manually
npx @liulinnuha/lithium-kb --mcp

# Clean MCP configurations & legacy references from all IDEs
npx @liulinnuha/lithium-kb uninstall

# Completely purge MCP configurations and local .lithium-kb/ files
npx @liulinnuha/lithium-kb uninstall --purge

Global CLI Installation

Install globally on your machine to use lithium-kb anywhere:

npm install -g @liulinnuha/lithium-kb

# Then run anywhere:
lithium-kb --ui

🔌 Agent MCP Integration (Claude Desktop, Cursor, Pi)

Add this to your Claude Desktop config (claude_desktop_config.json) or Cursor MCP settings:

{
  "mcpServers": {
    "lithium-kb": {
      "command": "npx",
      "args": ["-y", "@liulinnuha/lithium-kb", "--mcp"]
    }
  }
}

📜 MCP Tools Exposed

| Tool | Purpose | | :--- | :--- | | get_project_memory | Return compact architecture & symbol index (< 2KB). | | read_knowledge_doc | Read targeted doc from .lithium-kb/ (category, filename). | | write_knowledge_doc | Persist new task note, debug postmortem, or feature spec. | | query_symbol_map | Search exported functions, classes, and types across the repo. |


📄 License

MIT © Moch Ulin Nuha