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

readloom

v0.3.0

Published

A generic, multi-root markdown/code/mermaid directory browser.

Downloads

63

Readme

🧵 readloom

npm version license

A generic, multi-root markdown/code/mermaid directory browser. Point it at one or more directories and get a dark-themed, read-only web UI with:

  • Markdown rendering with GitHub-flavored tables, fenced code, etc.
  • Mermaid diagrams rendered from ```mermaid fences, pannable and zoomable, with a maximize button to fill the whole window
  • Syntax-highlighted code view (Shiki — real editor grammars) for any language it bundles, with line numbers, via a ?view=source link
  • Multiple named roots on one server, listed on the landing page
  • Assets referenced by their own pages (<script src>, <link>) are always served raw, so browsing never breaks a page's own JS/CSS

Quick start

npx readloom ~/some-directory

Open http://localhost:8000. The root name is derived from the directory's basename.

Serve more than one directory at once:

npx readloom ~/teach ~/some-other-project

Multiple named roots (roots.yml)

For more control over root names, use a config file instead of positional arguments:

# roots.yml
teach: /home/user/teach
docs: /home/user/code/project/docs/
npx readloom --config roots.yml

Root names must match ^[a-z0-9-]+$ (lowercase letters, digits, hyphens). Startup fails fast — with a clear error — on duplicate names or a path that doesn't exist, rather than starting in a half-broken state.

CLI options

| Flag | Env var | Default | Description | | --- | --- | --- | --- | | [dir ...] | — | — | One or more directories to serve, root name auto-derived from the basename | | --config <file>, -c | ROOTS_CONFIG | ./roots.yml if present | Load named roots from a YAML config file | | --port <n>, -p | PORT | 8000 | Port to listen on | | — | PROMPT_USER | asif@readloom | The user@host shown in the breadcrumb prompt |

Docker

docker build -t readloom .
docker run -d --name readloom \
  -v ~/teach:/docs/teach:ro \
  -v ./roots.yml:/app/roots.yml:ro \
  -p 8000:8000 --restart unless-stopped readloom

Note: paths inside roots.yml are interpreted differently depending on how you run readloom. With npx/node directly, they're real paths on your machine. In Docker, they're paths inside the container, so each root also needs a matching -v host:container mount.

License

MIT — see LICENSE.