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

md-open-browser

v1.3.0

Published

CLI tool to preview markdown files in browser

Readme

md-open

マークダウンファイルをブラウザでプレビューするCLIツール。

必要な環境

  • Node.js 20以上

インストール

npm install

使い方

npxで即座に実行

注意: npm publishを実行してから利用可能になります。

npx md-open file1.md file2.md

開発環境での実行

npm run dev -- file1.md file2.md

tmuxキャッチアップ(Claude Code連携)

tmux環境でClaude Codeと併用する場合、ブラウザ上にターミナルを表示できます。

# 環境変数TMUX_PANEから自動検出
npx md-open --use-claude-code file1.md

# ペインIDを明示的に指定
npx md-open --tmux-pane %0 file1.md

ttydがインストールされている場合、完全なWebターミナルエミュレーション(ANSIカラー、カーソル、リアルタイム入出力)が利用できます。未インストールの場合はプレーンテキスト表示にフォールバックします。

brew install ttyd

オプション

  • --help, -h: ヘルプを表示
  • --version, -v: バージョン情報を表示
  • --port <number>, -p <number>: サーバーのポート番号を指定(デフォルト: 3000)
  • --no-open: ブラウザを自動で開かない
  • --use-claude-code: 環境変数TMUX_PANEからペインIDを自動取得してキャッチアップ機能を有効化
  • --tmux-pane <pane_id>: tmuxペインIDを指定してキャッチアップ機能を有効化

開発

ビルド

npm run build

テスト実行

npm test

機能

  • 複数のマークダウンファイルを指定してプレビュー
  • 左側にファイルリスト、右側にプレビュー表示
  • mermaidダイアグラム対応
  • シンタックスハイライト対応
  • Markdownから参照されるローカル画像のプレビュー表示
  • ポート競合時の自動解決
  • tmuxキャッチアップUI(Claude Code連携)
    • ttydによるWebターミナルエミュレーション
    • プレーンテキストフォールバック
    • ドラッグリサイズ対応

リリースプロセス

このプロジェクトはrelease-pleaseを使用した自動リリースを採用しています。

Conventional Commits

以下のコミットプレフィックスを使用してください:

  • feat: - 新機能(マイナーバージョンアップ)
  • fix: - バグ修正(パッチバージョンアップ)
  • feat!: または fix!: - 破壊的変更(メジャーバージョンアップ)
  • chore:, docs:, refactor: - バージョンアップなし

リリースフロー

  1. mainブランチにコミットをpush
  2. release-pleaseがリリースPRを作成または更新
  3. リリースPRをマージするとnpm publishが自動実行

手動パブリッシュ

緊急時は以下の手順で手動パブリッシュできます:

  1. Actions > release-pleaseを開く
  2. "Run workflow"をクリック
  3. mode: "publish"を選択して実行