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

mdpush

v1.1.0

Published

Push markdown files to [Preview Reader](https://github.com/sielay/preview-reader) from your terminal.

Readme

mdpush

Push markdown files to Preview Reader from your terminal.

Install

npm install -g mdpush

Or use directly with npx (no install needed):

npx mdpush setup

Quick Start

# 1. Run interactive setup (server URL, API token, default project)
mdpush setup

# 2. Push a file
mdpush push README.md

# 3. Push to a specific project
mdpush push -p my-project docs/*.md

Commands

mdpush setup

Interactive wizard to configure server, token, and default project. Validates your token against the server before saving. Optionally installs the Claude Code skill.

mdpush push [files...]

Upload .md, .txt, and .html files to a project. HTML files are hosted at /v/:sid as sandboxed artifacts with an optional --type tag.

| Flag | Description | |------|-------------| | -p, --project <slug> | Target project (falls back to default from setup) | | -f, --folder <path> | Subfolder within the project (md/txt only — HTML artifacts are flat) | | -t, --type <value> | HTML artifact type: spec | review | design | report | playground (HTML files only) |

mdpush push README.md                              # Uses default project
mdpush push -p docs-site *.md                      # Specific project
mdpush push -p docs-site -f guides plan.md         # Into subfolder
mdpush push docs/                                  # Upload entire directory (md/txt only)
mdpush push design.html --type design              # HTML artifact with type tag
mdpush push spec.html notes.md --type spec         # Mixed batch — type applies only to .html

HTML output includes the viewer URL and type badge:

🔗 [design] https://docs.example.com/v/abc123  design.html

.md/.txt output uses the project-relative direct link:

🔗 https://docs.example.com/p/docs-site/f/xyz789  plan.md

mdpush login

Authenticate with username/password to generate an API token.

mdpush login -s https://docs.example.com

mdpush config

Show stored configuration (server, username, default project).

mdpush logout

Clear stored credentials from ~/.mdpush.json.

Claude Code Integration

During mdpush setup, if Claude Code is detected (~/.claude/skills/ exists), you'll be offered to install the mdpush skill automatically.

Once installed, use /mdpush in Claude Code to push files directly from your AI assistant.

Manual install:

mkdir -p ~/.claude/skills/mdpush/scripts
cp node_modules/mdpush/assets/SKILL.md ~/.claude/skills/mdpush/SKILL.md
cp node_modules/mdpush/assets/scripts/push.sh ~/.claude/skills/mdpush/scripts/push.sh
chmod +x ~/.claude/skills/mdpush/scripts/push.sh

Configuration

Config is stored at ~/.mdpush.json with restricted permissions (0600):

{
  "server": "https://docs.example.com",
  "token": "<api-token>",
  "username": "you",
  "defaultProject": "my-project"
}

Generate tokens from the web UI: Sidebar > API Tokens > Generate Token.

Troubleshooting

| Error | Fix | |-------|-----| | 401 Unauthorized | Token expired or revoked. Generate a new one from the web UI. | | 403 Forbidden | No write access to this project. Ask the owner to invite you. | | 404 Not Found | Wrong project slug. Check it in the web UI URL: /p/<slug> | | 413 Too Large | File exceeds 10MB (.md/.txt) or 15MB (.html) limit. | | 400 Invalid type | --type value not in whitelist. Use one of: spec, review, design, report, playground. |

Requirements

License

MIT