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

mdview-cli

v1.2.0

Published

Beautiful markdown viewer — open .md files and folders in the browser with dark mode, tabs, and search

Downloads

473

Readme


Install

npm install -g mdview-cli

Requires Node.js 14+. No other dependencies.

macOS permission error? Run sudo npm install -g mdview-cli instead.

First run creates a sample view automatically — just run mdview after install.

Usage

# Open a folder of markdown files
mdview ./docs/

# Open a single file
mdview README.md

# Open last view (or sample on first run)
mdview

# List saved views
mdview --list

# Start fresh
mdview --reset

Commands

| Command | Description | |---------|-------------| | mdview | Open last view. Creates a sample on first run. | | mdview <path> | Open a .md file or folder. | | mdview --list | List all saved views. | | mdview --reset | Delete all views and start fresh. | | mdview --version | Print version. | | mdview --help | Print help. |

How It Works

mdview ./docs/
  ↓
Scans for .md files
  ↓
Saves view data to ~/.mdview/views/
  ↓
Opens app.html in your default browser
  ↓
Markdown rendered beautifully with tabs, search, dark mode

Views persist across sessions. Run mdview anytime to reopen.

Data Directory

~/.mdview/
├── app.html            # Viewer app (auto-updated)
├── marked.min.js       # Markdown parser
├── views.json          # View registry
└── views/
    ├── docs-a1b2c3d4.js
    └── notes-e5f6g7h8.js

For AI Agents

MDView is built for AI coding agents (Claude Code, GitHub Copilot, Cursor, etc.) to present markdown documentation to users in a readable format.

Quick Integration

# One-time install
npm install -g mdview-cli

# Open docs for the user
mdview /path/to/docs/

# Open a specific file
mdview /path/to/README.md

# Open last view
mdview

# List views
mdview --list

# Clean slate
mdview --reset

Why Use MDView in Your Agent

| Benefit | Detail | |---------|--------| | Zero config | One command, opens in browser | | No server | Pure file:// protocol, works offline | | Cross-platform | Windows, macOS, Linux | | Non-blocking | CLI returns immediately | | Persistent | Views survive terminal sessions | | Dark mode | Follows system preference | | Self-contained | No runtime dependencies |

Agent Workflow Example

User: "Show me the API documentation"

Agent runs: mdview ./docs/api/

→ Browser opens with all .md files in a tabbed, searchable viewer
→ User reads docs with dark mode, search, and navigation
→ Agent's terminal is free for next command

CLAUDE.md Integration

Add this to your project's CLAUDE.md to enable MDView:

## Documentation Viewer
When the user asks to see documentation, use `mdview`:
- `mdview ./docs/` — open the docs folder
- `mdview README.md` — open a specific file
- `mdview` — reopen the last view

Features

  • Dark / Light mode — follows system preference, one-click toggle
  • Tabbed navigation — open multiple files as tabs, close with Ctrl+W
  • Folder tree — collapsible sidebar with folder groups
  • Search — instant file filter with Ctrl+K
  • Drag & drop — add .md files by dragging onto the viewer
  • View history — slide-out drawer to switch between views
  • Context menus — right-click for copy path, rename, delete
  • Smooth transitions — fade animations between views
  • First-run sample — welcome view with getting started guide
  • GFM support — tables, task lists, code blocks, blockquotes, images

Browser Support

Works in any browser: Chrome, Edge, Firefox, Brave, Safari.

Contributing

git clone https://github.com/PuneethRegonda/md-file-viewer-extension.git
cd md-file-viewer-extension
npm link    # makes 'mdview' available globally from source

Support

License

MITPuneeth Regonda