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

docs-in-html

v0.7.0

Published

Navigate folders of HTML docs with an auto sidebar tree, live reload, and Mermaid/SVG pan/zoom. HTML over Markdown — zero build.

Readme

docs-in-html

Navigate folders of HTML docs with an auto sidebar, live reload, and Mermaid/SVG pan/zoom. HTML over Markdown — zero build, zero dependencies.

Why

Docs tools like MkDocs and Docsify are Markdown-first. If you write docs as HTML (great for AI-generated, richly-styled content), there's nothing to render — you only need to navigate them. docs-in-html is a tiny dev server that does exactly that, and adds Mermaid pan/zoom on top.

Install

npm install -g docs-in-html     # or just: npx docs-in-html ./my-docs

Requires Node ≥ 18.

Use

docs-in-html ./docs-html              # serve a folder (opens the browser)
docs-in-html ./docs --port 5000       # custom port
docs-in-html ./docs --no-open         # don't auto-open
docs-in-html init ./new-docs          # scaffold a starter index.html

Features

  • Auto sidebar tree generated from your folder structure (collapsible, with collapse memory, Unicode-friendly — "Integração" stays "Integração")
  • URL sync — the address bar always shows the current doc; back/forward and deep links work (F5 on /docs/foo.html reopens the shell around that doc)
  • Live reload — edit a doc, only that one reloads (sidebar state preserved)
  • Pan/zoom/lightbox for diagrams — Mermaid blocks and standalone inline SVGs (any <svg> inside a <figure>, or anything marked .panzoom / .diagram / .zoomable). Injected automatically; clicks inside buttons/links are never hijacked. The lightbox has zoom buttons and a full-screen mode (works inside the shell's iframe too).
  • Use your own index.html, or the built-in shell when a folder has none
  • Hide the sidebar with the toggle button, left-aligned in the header (state remembered)
  • Zero dependencies, zero build

Authoring

Write plain HTML. Use <div class="mermaid">…</div> blocks plus the Mermaid core script tags (LLMs add these automatically), or just drop an inline <svg> inside a <figure> — it becomes pan/zoomable too. Need an SVG zoomable but it's not in a figure? Add class="diagram" (or panzoom / zoomable) to it or any ancestor. No template, no boilerplate — the pan/zoom layer is injected for you. The same file also renders standalone (file:// or any static host), just without the zoom.

License

MIT