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

mdzilla

v0.0.6

Published

<p align="center"> <img src=".assets/logo.svg" alt="mdzilla" width="200" height="200"> </p>

Downloads

874

Readme

Browse docs from local directories, GitHub repos, and remote websites — all from your terminal.

Built with md4x, mdream, giget and speed-highlight, nitro, h3, srvx and vite.

Supports any website with /llms.txt or markdown content negotiation.

Works best with Docus/Undocs docs sources.

Quick Start

npx mdzilla <dir>                 # Browse local docs directory
npx mdzilla <file.md>             # Render a single markdown file
npx mdzilla gh:owner/repo         # Browse GitHub repo docs
npx mdzilla npm:package-name      # Browse npm package docs
npx mdzilla https://example.com   # Browse remote docs via HTTP

Agent Skill

Install the mdzilla skill for AI agents using:

npx skills install pi0/mdzilla

Features

Multiple Sources

| Source | Syntax | Description | | :-------------- | :--------------------------- | :-------------------------------- | | Local | mdzilla ./docs | Scan a local docs directory | | Single file | mdzilla README.md | Render a single markdown file | | GitHub | mdzilla gh:unjs/h3 | Download and browse a GitHub repo | | npm | mdzilla npm:h3 | Browse an npm package's docs | | HTTP | mdzilla https://h3.unjs.io | Browse remote docs via HTTP |

Export

Flatten any docs source into plain .md files:

npx mdzilla <source> --export <outdir>

Single Page

Print a specific page by path and exit:

npx mdzilla gh:nuxt/nuxt --page /getting-started/seo-meta
npx mdzilla gh:nuxt/nuxt --plain --page /getting-started/seo-meta

Headless Mode

Use --plain (or --headless) for non-interactive output — works like cat but for rendered markdown. Auto-enabled when piping output or when called by AI agents.

npx mdzilla README.md --plain          # Pretty-print a markdown file
npx mdzilla README.md | head           # Auto-plain when piped (no TTY)
npx mdzilla gh:unjs/h3 --plain         # List all pages in plain text

Keyboard Controls

| Key | Action | | :-------------------- | :------------------- | | / j k | Navigate entries | | Enter / Tab / | Focus content | | Space / PgDn | Page down | | b / PgUp | Page up | | g / G | Jump to first / last | | / | Search | | t | Toggle sidebar | | q | Quit |

| Key | Action | | :------------------ | :-------------------- | | / j k | Scroll | | Space / PgDn | Page down | | b / PgUp | Page up | | g / G | Jump to top / bottom | | / | Search in page | | n / N | Next / previous match | | Tab / Shift+Tab | Cycle links | | Enter | Open link | | Backspace / Esc | Back to nav | | q | Quit |

| Key | Action | | :------ | :--------------- | | Type | Filter results | | | Navigate results | | Enter | Confirm | | Esc | Cancel |

Programmatic API

import { DocsManager, DocsSourceFS } from "mdzilla";

const docs = new DocsManager(new DocsSourceFS("./docs"));
await docs.load();

// Browse the navigation tree
console.log(docs.tree);

// Get page content
const content = await docs.getContent(docs.flat[0]);

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Published under the MIT license.