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

local-md-viewer

v0.1.10

Published

A local-first markdown viewer for browsing plan documents and design docs

Readme

Local MD Viewer

A beautiful, local-first markdown viewer for browsing plan documents and design docs. Point it at any directory of .md files and get a clean reading experience with sidebar navigation, table of contents, full-text search, and syntax highlighting.

Built with React, Tailwind CSS v4, and shadcn/ui.

Features

  • Sidebar navigation with date-grouped file listing and collapsible day sections
  • Multi-directory support — view plans from multiple repos/directories at once
  • Table of contents auto-generated from headings, with active-section tracking as you scroll
  • Command palette (Cmd+K) for quick file search
  • Syntax highlighting for code blocks
  • GFM support — tables, task lists, strikethrough, and more
  • Light / Dark / System theme toggle
  • Claude Code hook — auto-opens viewer when Claude exits plan mode
  • Slash commands for Claude Code integration
  • Remote/devcontainer support via environment variables
  • Zero config — just point it at a directory and go

Quick start

npm i -g local-md-viewer

Then run it from any project directory:

local-md-viewer

This starts a local server, opens your browser, and serves all .md files. It auto-detects .claude/plans or docs/plans in the current directory.

Options

| Flag | Default | Description | | ----------------- | ------------ | -------------------------------------------- | | --dir <path> | auto-detect | Directory containing .md files (repeatable) | | --port <number> | 3200 | Port to serve on | | --no-open | — | Don't auto-open the browser |

Multi-directory support

View plans from multiple projects at once:

# Repeat the --dir flag
local-md-viewer --dir ./proj1/.claude/plans --dir ./proj2/.claude/plans

# Or use comma-separated paths
local-md-viewer --dir ./proj1/.claude/plans,./proj2/.claude/plans

The sidebar groups files by directory with collapsible sections, so you can easily browse plans from different projects.

Environment variables

| Variable | Description | | ------------ | --------------------------------------------------------- | | APP_PORT | Override port (takes priority over --port) | | APP_REMOTE | Set to 1 for remote/devcontainer mode (skip auto-open) |

Remote mode is useful when running inside SSH sessions, devcontainers, or Codespaces:

APP_REMOTE=1 local-md-viewer
# → Remote mode: open http://localhost:3200 in your browser

Claude Code integration

ExitPlanMode hook (auto-open viewer)

Automatically open the plan viewer whenever Claude exits plan mode:

# Print setup instructions
local-md-viewer-hook --setup

Add to your ~/.claude/settings.json:

{
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": "ExitPlanMode",
        "hooks": [
          {
            "type": "command",
            "command": "local-md-viewer-hook"
          }
        ]
      }
    ]
  }
}

Slash commands

Copy the .claude/commands/ directory from this repo into your project to get these commands in Claude Code:

| Command | Description | | ------------------------------ | ------------------------------ | | /project:plans-open | Open the plan viewer | | /project:plans-new [title] | Create a new plan file | | /project:plans-list | List all plans in the project |

File naming convention

Files are sorted by date prefix when present:

2026-03-18-api-redesign.md      →  Mar 18, 2026  ·  Api Redesign
2026-03-15-auth-flow.md         →  Mar 15, 2026  ·  Auth Flow
meeting-notes.md                →  (undated)     ·  Meeting Notes

Development

# Install dependencies
npm install

# Start the dev server (UI hot-reload on :5173, API on :3200)
npm run dev          # Vite dev server
npm run dev:server   # API server (in a separate terminal)

# Build for production
npm run build

# Preview the production build
npm run preview -- --dir ./my-docs

Tech stack

Credits

This project is a fork of claude-plan-visualizer by Felipe Orlando.

License

MIT