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

markdownsync

v0.1.2

Published

Turn any markdown file into a beautiful, editable document in the browser

Readme

mdsync

Turn markdown files into beautiful, editable documents in the browser. Zero config.

npx markdownsync README.md

That's it. Your markdown is now a rendered document at localhost:3456 with live editing, syntax highlighting, and a table of contents. Edit in the browser or your text editor — changes sync both ways in real time.

Install

npm install -g markdownsync

Usage

Open a single file:

mdsync README.md

Serve a directory of markdown files as a browsable workspace:

mdsync ./docs

Build a static HTML site from markdown:

mdsync build ./docs --out ./site

Features

Live editing — Double-click any section to edit with a TipTap rich text editor. Changes save back to the file on disk.

Two-way sync — Edit in VS Code, see it update in the browser. Edit in the browser, see it update on disk. File watching handles the rest.

Syntax highlighting — Code blocks rendered with Shiki. Looks good out of the box.

Dark and light themes — Toggle between them. Defaults to dark.

Table of contents — Auto-generated sidebar from your heading structure. Click to navigate.

SearchCmd+K to search across content. Works in both single-file and directory mode.

Zero config — No config.yml, no docs.json, no theme files. Point it at markdown and go.

Directory Mode

Pass a directory instead of a file to serve your entire docs folder:

mdsync ./docs

This gives you:

  • A card grid of all markdown files
  • Full-text search across documents
  • File management (create, rename, delete)
  • The same editing and sync features as single-file mode

Good for documentation workspaces, knowledge bases, or reviewing a batch of AI-generated markdown files.

Static Build

Generate a complete static site from a folder of markdown files:

mdsync build ./docs --out ./site

Produces self-contained HTML with all styles and scripts inlined. Deploy to any static host — GitHub Pages, Netlify, Vercel, S3, wherever.

No build step configuration. No theme to choose. No plugins to install.

mdsync build ./docs --out ./site && netlify deploy --dir ./site --prod

CLI Reference

mdsync <file-or-directory>              Serve markdown in the browser
mdsync view <file-or-directory>         Explicit live mode
mdsync serve <directory>                Force directory mode
mdsync build <dir> --out <dir>          Generate a static site
mdsync mcp                              Start MCP server
mdsync --help                           Show usage

Options

--port, -p <number>          Port to serve on (default: 3456)
--light                      Start in light theme
--no-edit                    Disable browser editing
--no-open                    Don't auto-open the browser
--out <dir>                  Output directory for build
--title "My Docs"            Custom site title for build
--base /docs                 Base path for static builds
--theme dark|light|auto      Default theme for static builds

Examples

# Serve on a custom port
mdsync README.md --port 8080

# Read-only mode for presentations
mdsync ./slides --no-edit

# Light theme, no auto-open
mdsync ./docs --light --no-open

# Build docs to a directory
mdsync build ./docs --out ./public

MCP Integration

mdsync includes a Model Context Protocol server so agents can open docs, read markdown, inspect feedback, and write changes back to disk:

mdsync mcp

If you want to run it through npx from an MCP client config, use:

{
  "command": "npx",
  "args": ["-y", "markdownsync", "mcp"]
}

Claude Desktop

On macOS, add this to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "mdsync": {
      "command": "npx",
      "args": ["-y", "markdownsync", "mcp"]
    }
  }
}

Cursor

Add this to your global ~/.cursor/mcp.json or project-local .cursor/mcp.json:

{
  "mcpServers": {
    "mdsync": {
      "command": "npx",
      "args": ["-y", "markdownsync", "mcp"]
    }
  }
}

OpenClaw

If your OpenClaw install uses mcp.servers, add:

{
  "mcp": {
    "servers": {
      "mdsync": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "markdownsync", "mcp"]
      }
    }
  }
}

MCP Tools

present

Opens a markdown file or directory in the browser viewer.

Params:

  • path (string) — Absolute or relative path to a markdown file or directory

Returns the viewer URL, resolved file path, and feedback file path.

get_document

Returns the current markdown for a file.

Params:

  • path (string) — Path to the markdown file

get_feedback

Returns the structured .feedback.json document stored next to the markdown file.

Params:

  • path (string) — Path to the markdown file

write_document

Writes markdown content back to disk. Paths are resolved relative to the MCP server's current working directory.

Params:

  • path (string) — Path to the markdown file
  • content (string) — Full markdown content to write

Returns a confirmation object with the resolved path.

Links

License

MIT