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

markshelf

v0.2.2

Published

Structured markdown viewer for git repositories

Readme

markshelf

npm version license ghcr

Git リポジトリ内の Markdown ドキュメントを「読むため」に特化した構造化ビューア。

  • 独立した全画面ブラウザビューアで疲れずに読める
  • ドキュメント間の依存をリンクグラフで俯瞰
  • リンクホバーで中身をポップアップ表示
  • ファイル保存が即反映(リロード不要)

クイックスタート

npx(ローカル閲覧)

対象リポジトリのルートで:

npx markshelf

http://localhost:3000 で起動します。

Docker(配布・相乗り)

# ドキュメントをボリュームマウントで
docker run --rm -p 3000:3000 \
  -v "$PWD/docs:/docs" \
  ghcr.io/skspwork/markshelf-base:latest

自分のドキュメントを焼き込んだイメージを作りたい場合:

# your-project/Dockerfile
FROM ghcr.io/skspwork/markshelf-base:latest

COPY .git /.git
COPY docs /docs

# サブパスで配信するなら
ENV BASE_PATH=/wiki

詳細は docker/README.md を参照。

主な機能

  • ツリービュー — フォルダ展開/折りたたみ、状態永続化、検索
  • リンクグラフ — マークダウンリンク + 自動マッチで参照関係を有向グラフで表示、深さ切替、フォルダ除外フィルタ、拡大率永続化
  • プレビューポップアップ — リンクホバーで内容を即確認、ネスト対応
  • 変更履歴 / タイムライン — git ログから自動生成
  • ファイル共有 URL?file=path/to/foo.md で特定ファイルを直接開ける
  • ファイル変更の自動反映 — エディタで保存 → ブラウザが自動更新(SSE)

設定

| 環境変数 | デフォルト | 説明 | |---------|----------|------| | MARKSHELF_ROOT | process.cwd() / Docker は /docs | ドキュメントルート | | BASE_PATH | なし | Next.js basePath(Docker のみ) | | PORT | 3000 | リッスンポート |

ドキュメント構成

docs/ 配下で要求定義 → 要件定義 → 仕様の 3 階層で自己文書化しています。書き方の規約は各カテゴリの README を参照:

開発

npm install
npm run dev

Next.js 16 + React 19 + Cytoscape + simple-git で構成。ローカルで dev サーバを立てる際は MARKSHELF_ROOT を指定しないと cwd(リポジトリ自身)がドキュメントルートになる点に注意。

ライセンス

MIT © sksp.work