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

vimd

v0.5.10

Published

Real-time Markdown preview tool with pandoc (view markdown)

Readme

vimd

🌐 English | 日本語

書きながら見る。Markdownプレビュー

npm version License: MIT Node.js


デモ

vimd demo


テーマ

GitHub Theme

Dark Theme

Academic Theme

Minimal Theme

Technical Theme


クイックスタート

必要要件

  • Node.js >= 18.0.0
  • pandoc >= 2.0(オプション、高品質ビルド時のみ)

インストール

npm install -g vimd

現在のバージョン: v0.5.0

v0.2.0 からは pandoc なしで利用可能 になりました。 高品質な出力が必要な場合のみ pandoc をインストールしてください。

# pandocのインストール(オプション)
brew install pandoc        # macOS
sudo apt install pandoc    # Ubuntu/Debian
choco install pandoc       # Windows

使い方

# ライブプレビューを開始(pandoc不要、高速)
vimd draft.md         # 省略形式(v0.5.10以降)
vimd dev draft.md     # 従来の形式も使用可能

# 静的HTMLを生成(pandoc使用、高品質)
vimd build draft.md

# 高速ビルド(pandoc不要)
vimd build draft.md --fast

# テーマを変更
vimd theme

# 設定を編集
vimd config

バージョン情報

現在のバージョン: v0.5.0

v0.5.x はフォルダモード(複数ファイルプレビュー)を追加したバージョンです。

npm install -g vimd

コマンド

| コマンド | 説明 | | ------------------- | ------------------------------ | | vimd <file> | ライブプレビューサーバーを起動(dev省略形) | | vimd <folder> | フォルダモードを起動(dev省略形) | | vimd dev <file> | ライブプレビューサーバーを起動 | | vimd dev <folder> | フォルダモードを起動 | | vimd build <file> | 静的HTMLを生成 | | vimd theme | テーマを対話的に変更 | | vimd config | 設定を対話的に編集 | | vimd kill | 実行中のセッションを終了 | | vimd reset | 設定をデフォルトにリセット |

オプション

# dev コマンド
vimd dev draft.md --port 3000      # ポート指定
vimd dev draft.md --theme dark     # テーマ指定
vimd dev draft.md --no-open        # ブラウザを開かない
vimd dev draft.md --pandoc         # pandocパーサーを使用

# build コマンド
vimd build draft.md -o output.html # 出力先指定
vimd build draft.md --fast         # markdown-itで高速ビルド
vimd build draft.md --theme dark   # テーマ指定

# kill コマンド
vimd kill                          # 全セッションを終了
vimd kill --port 38080             # 特定ポートのセッションを終了

# reset コマンド
vimd reset                         # 設定をリセット(確認あり)
vimd reset --yes                   # 確認なしでリセット

設定

グローバル設定は ~/.vimd/config.js に保存されます。

export default {
  theme: 'github',
  port: 38080, // デフォルト: 38080(v0.2.1で変更)
  open: true,
  devParser: 'markdown-it', // dev用パーサー(デフォルト: markdown-it)
  buildParser: 'pandoc', // build用パーサー(デフォルト: pandoc)
};

パーサー設定

| パーサー | 特徴 | 用途 | | ------------- | ---------------- | ------------------ | | markdown-it | 高速、pandoc不要 | 開発時のプレビュー | | pandoc | 高品質、多機能 | 最終出力の生成 |

詳細な設定オプションは docs/ja/api.md を参照してください。

数式サポート

vimd は MathJax を使用した TeX 数式表示に対応しています(v0.3.12以降)。

インライン数式: $E = mc^2$

ブロック数式:
$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$

bussproofs(証明図)にも対応しています:

$$
\begin{prooftree}
\AxiomC{$A$}
\AxiomC{$B$}
\BinaryInfC{$A \land B$}
\end{prooftree}
$$

数式サポートの設定:

// ~/.vimd/config.js
export default {
  math: {
    enabled: true,      // デフォルト: true
    engine: 'mathjax',  // 'mathjax' または 'katex'
  },
};

LaTeX ドキュメントサポート

vimd は .tex ファイルのプレビューに対応しています(v0.4.0以降)。

# LaTeX ファイルのライブプレビュー
vimd dev thesis.tex

# LaTeX ファイルを HTML に変換
vimd build thesis.tex

LaTeX ファイルは自動的に検出され、pandoc を使用して変換されます。

対応する拡張子:

  • .tex
  • .latex

注意: LaTeX プレビューには pandoc が必須です。pandoc がインストールされていない場合、インストールガイドが表示されます。

フォルダモード

vimd はフォルダ内の複数ファイルを同一ポートで切り替えながらプレビューできます(v0.5.0以降)。

# カレントディレクトリをプレビュー
vimd .            # 省略形式(v0.5.10以降)
vimd dev .        # 従来の形式も使用可能

# 指定フォルダをプレビュー
vimd ./docs       # 省略形式
vimd dev ./docs   # 従来の形式

サイドバーでファイルを選択し、リアルタイムでプレビューを確認できます。

対応する拡張子:

  • .md (Markdown)
  • .tex, .latex (LaTeX)

機能:

  • ツリー形式のファイル表示(フォルダ展開/折りたたみ可能)
  • サイドバーのリサイズ(ドラッグで幅変更)
  • キーボードショートカット(Ctrl+B でサイドバー表示/非表示)
  • ファイル変更時の自動リロード

Why vimd?

| 特徴 | vimd | 他のツール | | -------------- | --------------------------- | -------------------------- | | セットアップ | npm i -g vimd | 複雑な設定が必要な場合も | | 外部依存 | なし(pandocはオプション) | pandoc必須が多い | | 変換品質 | markdown-it / pandoc 選択可 | 固定 | | テーマ | 5種類組み込み | 別途設定が必要 | | 設定ファイル | プロジェクト外 (~/.vimd/) | プロジェクト内が多い | | ライブリロード | 自動 | 手動リロードが必要な場合も |


ドキュメント


リンク


ライセンス

MIT © notokeishou

サードパーティライセンス

フォルダモードのアイコンは vscode-icons を使用しています(CC BY-SA 4.0)。