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

dochub

v2.0.0

Published

A modern documentation generator with live-reload dev server and static site builder

Readme

DocHub

Write Markdown. Ship beautiful documentation.

DocHub is a zero-config documentation tool that turns a folder of Markdown files into a modern, searchable, themeable documentation site. Use it as a live-reload dev server during writing, then export a fully self-contained static site for deployment.


Features

| | | |---|---| | Live preview | Dev server with instant reload on file changes | | Static export | Build a portable HTML site with clean URLs (/guide, /api/auth) | | Full-text search | Client-side search across all pages with relevance scoring | | Dark mode | Light/dark toggle with persistent preference | | Syntax highlighting | 190+ languages via Highlight.js | | File-tree sidebar | Auto-generated navigation from your folder structure | | Responsive | Works on desktop, tablet, and mobile | | Self-contained | Zero external CDN dependencies in the output |

Install

npm install -g dochub

Quick start

# Scaffold a new project
dochub init my-docs

# Start writing — open http://localhost:3000
cd my-docs && dochub serve

# Build for production
dochub build

Project structure

my-docs/
├── markdown/              # Your content — add .md files here
│   ├── README.md          # Home page (/)
│   ├── guide.md           # /guide
│   ├── api/
│   │   ├── README.md      # /api
│   │   └── authentication # /api/authentication
│   └── deployment/
│       └── README.md      # /deployment
└── dochub.config.js       # Site configuration

Every folder becomes a collapsible sidebar section. README.md inside a folder becomes the folder's index page at a clean URL (/api not /api/readme).

Commands

dochub init [directory]

Scaffolds a new documentation project with a markdown/ folder containing starter pages and a dochub.config.js.

dochub init my-project   # Creates ./my-project

dochub serve [directory]

Starts a development server with WebSocket live reload. Changes to any .md file instantly refresh the browser.

dochub serve              # Serve current directory
dochub serve my-project   # Serve a specific project
dochub serve -p 4000      # Custom port

dochub build [directory]

Generates a static HTML site with clean URLs. Each page becomes a directory with index.html — deployable to any static host (Netlify, Vercel, GitHub Pages, S3, etc.).

dochub build              # Build to ./dist
dochub build -o docs      # Build to ./docs

Configuration

Edit dochub.config.js in your project root:

module.exports = {
  title: 'My API Docs',
  description: 'Everything you need to build with our API',
};

The title appears in the browser tab, page header, and search metadata.

Writing documentation

DocHub uses standard Markdown. All files go in markdown/ and URLs are derived from the file path:

| File | URL | |---|---| | markdown/README.md | / | | markdown/guide.md | /guide | | markdown/api/README.md | /api | | markdown/api/authentication.md | /api/authentication |

Supported syntax

  • Headers (h1–h6), bold, italic, strikethrough, inline code
  • Fenced code blocks with syntax highlighting
  • Ordered and unordered lists (nested too)
  • Links, images, blockquotes, horizontal rules
  • Tables with header alignment

Deployment

The build command outputs a static dist/ folder:

dist/
├── index.html
├── guide/
│   └── index.html
├── api/
│   └── index.html
├── folder/
│   └── index.html
└── 404.html

Deploy the entire dist/ folder to any static file host:

dochub build
# Drag dist/ onto Netlify Drop, or
npx netlify-cli deploy --dir=dist --prod
dochub build
npx vercel dist --prod
dochub build
# Push dist/ contents to gh-pages branch, or
# use actions/upload-pages-artifact
dochub build
npx serve dist

Why DocHub?

There are many documentation tools. Here's where DocHub fits:

| | DocHub | Docusaurus | VitePress | |---|---|---|---| | Setup time | seconds | minutes | minutes | | Language | Markdown | MDX + React | Markdown + Vue | | Build output | ~20KB pages | ~200KB+ JS bundle | ~100KB+ JS bundle | | Dependencies | 5 packages | 200+ packages | 100+ packages | | Config | 5-line JS file | Full Docusaurus config | Full VitePress config |

DocHub is for teams that want to write Markdown and ship docs without learning a framework or managing hundreds of dependencies.

License

MIT