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

mdfy-cli

v1.3.1

Published

mdfy CLI — publish Markdown from anywhere

Readme

mdfy CLI

Publish Markdown from anywhere — terminal, scripts, CI/CD, tmux. Every output becomes a permanent, shareable URL.

Part of the mdfy.app ecosystem.

Install

npm install -g mdfy-cli

Quick Start

# Publish a file → get a URL
mdfy publish README.md
# → https://mdfy.app/d/abc123 (copied to clipboard)

# Publish from pipe
echo "# Hello World" | mdfy publish

# Publish clipboard
pbpaste | mdfy publish

# Read a document in terminal
mdfy read abc123

Commands

| Command | Description | |---------|-------------| | mdfy publish <file> | Publish a .md file and get a URL | | mdfy publish | Publish from stdin (pipe) | | mdfy read <id> | Read a document in the terminal with formatting | | mdfy capture [source] | Capture terminal/AI output and publish | | mdfy update <id> <file> | Update an existing document | | mdfy pull <id> [-o file] | Download a document | | mdfy delete <id> | Delete a document | | mdfy list | List your documents | | mdfy open <id> | Open document in browser | | mdfy login | Authenticate with mdfy.app | | mdfy logout | Clear stored credentials | | mdfy whoami | Show current user |

Short Aliases

| Short | Full | |-------|------| | mdfy p | mdfy publish | | mdfy up | mdfy update | | mdfy ls | mdfy list | | mdfy rm | mdfy delete | | mdfy cat | mdfy read | | mdfy c | mdfy capture |

Use Cases

Pipe anything to a URL

# AI assistant output
claude "explain React hooks" | mdfy publish

# Git log
git log --oneline -20 | mdfy publish

# System info
system_profiler SPHardwareDataType | mdfy publish

# Man pages
man grep | mdfy publish

# Command output
curl -s https://api.example.com/status | mdfy publish

Capture terminal sessions

# Auto-detect: tmux pane if in tmux, clipboard otherwise
mdfy capture

# Explicit sources
mdfy capture tmux        # Current tmux pane
mdfy capture clipboard   # System clipboard
mdfy capture last        # Pipe: some-cmd | mdfy capture last

AI conversations (Claude Code, ChatGPT CLI, Ollama) are auto-detected and formatted with User/Assistant roles.

Read documents in terminal

# By ID
mdfy read abc123

# By URL
mdfy read https://mdfy.app/d/abc123

# Output includes: color-coded headings, bold, code, blockquotes, lists

tmux integration

Add to ~/.tmux.conf:

bind-key M run-shell "tmux capture-pane -p -S -1000 | mdfy publish"

Press prefix + M to publish the current pane.

Shell aliases

Add to ~/.zshrc or ~/.bashrc:

alias mp="mdfy publish"
alias mpc="pbpaste | mdfy publish"

Authentication

mdfy login     # Opens browser for OAuth → paste token
mdfy whoami    # Show current user
mdfy list      # List your published documents
mdfy logout    # Clear credentials

Credentials stored in ~/.mdfy/config.json. Edit tokens in ~/.mdfy/tokens.json.

How It Works

  1. mdfy publish sends Markdown to mdfy.app API
  2. Returns a permanent short URL (mdfy.app/d/...)
  3. URL is copied to clipboard (macOS)
  4. Edit token is saved locally for future updates
  5. Documents render with syntax highlighting, math (KaTeX), and Mermaid diagrams

Other Channels

| Channel | Install | |---------|---------| | Web Editor | Just open the URL | | Hosted MCP (Claude Web, Cursor, etc.) | URL: https://mdfy.app/api/mcp | | Local MCP (Claude Desktop, Claude Code) | npx mdfy-mcp | | VS Code Extension | Download from Plugins page | | Chrome Extension | Download from Plugins page | | Mac Desktop App | Download from Plugins page | | tmux Plugin | Manual install |

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | MDFY_URL | https://mdfy.app | API base URL |

License

MIT