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

@manish003/y-docs

v1.1.1

Published

AI Technical Writer that understands your codebase

Readme

👻 Ghost Docs

npm version License: MIT Tests QA TypeScript PRs Welcome Validated

AI Technical Writer that understands your codebase.

Ghost Docs analyzes any software project and produces structured documentation — no LLM hallucinations, no guesswork. Everything is extracted from your actual source code.

Features

  • Knowledge Extraction — Scans repos and builds a structured knowledge graph
  • Explain Repo — Generates README-style reports with Mermaid architecture diagrams
  • Repository Reasoning — Answers questions about any codebase with source-backed evidence
  • Documentation Sync — Auto-updates docs when code changes, preserves manual content
  • Zero Hallucination — Every answer includes confidence scores and source references
  • Marker Protection<!-- GHOST-DOCS:START --> / <!-- GHOST-DOCS:END --> sections never overwrite manual edits

Validation

Ghost Docs has been validated against 50 production-grade repositories with 100% pass rate (0 crashes, 0 timeouts). See full QA report →

Quick validation highlights:

| Category | Repos | Status | |----------|-------|--------| | JavaScript | express, lodash, axios, jquery, moment, chalk, mocha, ... | ✅ 20/20 | | TypeScript | react, next.js, nestjs, vscode, vuejs/core, type-fest, ... | ✅ 12/12 | | Python | tensorflow, django, flask, requests, pytest, cpython, ... | ✅ 6/6 | | Go | golang/go, gin, hugo, ... | ✅ 4/4 | | Rust | rust-lang/rust, tokio, serde, turborepo | ✅ 4/4 | | Java | spring-boot, elasticsearch | ✅ 2/2 | | Large monorepos | babel, webpack, nodejs, yarnpkg/berry, npm/cli, ... | ✅ 12/12 |

Full benchmark report → · QA report →

Architecture

┌─────────────────────────────────────────────────────┐
│                     CLI Layer                        │
│  explain | reason | pr                              │
├─────────────────────────────────────────────────────┤
│                  Engine Layer                        │
│  ┌────────────┐  ┌──────────┐  ┌────────────────┐   │
│  │ Knowledge   │  │ Reasoning│  │ Documentation  │   │
│  │ Extraction  │  │ Engine   │  │ Sync Engine    │   │
│  └────────────┘  └──────────┘  └────────────────┘   │
├─────────────────────────────────────────────────────┤
│                  Support Layer                       │
│  ┌────────┐  ┌──────┐  ┌──────┐  ┌──────────────┐   │
│  │ Config │  │ LLM  │  │ Docs │  │ GitHub       │   │
│  │        │  │       │  │      │  │ Adapter      │   │
│  └────────┘  └──────┘  └──────┘  └──────────────┘   │
└─────────────────────────────────────────────────────┘

Quick Start (No Install Required)

# Explain any repo (generates README + architecture diagram)
npx ghost-docs explain ./my-project

# Ask questions about any codebase
npx ghost-docs reason ./my-project "What does this do?"
npx ghost-docs reason ./my-project "How does authentication work?"

# Preview documentation changes
npx ghost-docs pr ./my-project

Installation

# Global install
npm install -g ghost-docs

# Or use directly with npx (no install needed)
npx ghost-docs explain <repo-path>

CLI Usage

Explain a repository

# Markdown report (default)
ghost-docs explain ./my-project

# Raw JSON knowledge graph
ghost-docs explain ./my-project --json

# Remote repository
ghost-docs explain https://github.com/user/repo

Reason about a repository

ghost-docs reason ./my-project "What does this do?"
ghost-docs reason ./my-project "Where is authentication?"
ghost-docs reason ./my-project "What testing framework?"
ghost-docs reason ./my-project "How to build?"
ghost-docs reason ./my-project "What database?"

Sync documentation

# Preview changes (dry run — default)
ghost-docs pr ./my-project

# Create a PR on GitHub
ghost-docs pr https://github.com/user/repo

Project Structure

ghost-docs/
├── apps/
│   └── cli/              # CLI application (commander-based)
├── packages/
│   ├── types/            # Shared TypeScript types
│   ├── config/           # Environment configuration (Zod)
│   ├── intelligence-engine/  # Code scanning & manifest building
│   ├── reasoning-engine/     # Context-aware Q&A engine
│   ├── docs/             # Markdown/Mermaid generators
│   ├── sync-engine/      # Documentation sync & PR creation
│   ├── llm/              # LLM abstraction (OpenAI/Anthropic)
│   ├── parser/           # Code parser (placeholder)
│   ├── github/            # GitHub API adapter
│   └── shared/           # Shared utilities
└── tests/                # Test suites
    └── fixtures/         # Sample repos for testing

Roadmap

  • [x] Phase 0 — Architecture & project setup
  • [x] Phase 1 — CLI foundation (commander)
  • [x] Phase 2 — Project Intelligence Engine (manifest builder)
  • [x] Phase 3 — Knowledge Extraction Engine (knowledge graph)
  • [x] Phase 4 — Explain Repo Engine (markdown + mermaid)
  • [x] Phase 5 — Repository Reasoning Engine (Q&A)
  • [x] Phase 5.5 — Repository Context Engine (session tracking)
  • [x] Phase 6 — Documentation Synchronization Engine (auto PR)
  • [x] Phase 7+ — Dashboard, VS Code Extension, GitHub App (scaffolded — planned for v0.2.0)

Testing

# Run all tests
pnpm test

# Run specific test suite
pnpm vitest run tests/explain-repo.test.ts

# Type check
pnpm lint

License

MIT

Contributing

See CONTRIBUTING.md.