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

note-research-cli

v0.2.2

Published

note.com の競合調査・下書き管理CLIツール

Downloads

197

Readme

note-research-cli

noteの競合調査と下書き作成/更新を行うCLIです。

[!WARNING] このツールは 非公式APIを利用しています。 note公式サービスとは無関係です。利用者自身の責任で利用規約を確認してください。

Status

  • Scope: Research + draft create/update
  • Out of scope: publish/public/post
  • Support: Community support only

Credits

This project is derived from:

  • Original repository: https://github.com/shimayuz/note-com-mcp
  • Original license: MIT
  • See NOTICE for details.

Features

  • Search notes/users
  • Competitor analysis and diff reports
  • Account analysis: analyze content trends of a specific user (user analyze)
  • Draft create/update
  • Minimal-first JSON / Markdown outputs (--profile full for raw payload)

Requirements

  • Node.js 20+ (LTS recommended)
  • npm 10+

Install

npm install -g note-research-cli

Authentication

推奨: 環境変数経由で設定する(コマンドライン引数はプロセス一覧に露出するリスクがあります)

# .env ファイルに記載(git管理外にすること)
NOTE_SESSION_V5=<セッション値のみ。_note_session_v5= は不要>
NOTE_XSRF_TOKEN=<xsrfトークン>

Interactive login (recommended)

auth login は対話式です。モード選択でログイン導線を切り替えられます。

note-research auth login

Browser mode (Playwright)

Playwrightがインストール済みなら、ブラウザログイン補助を使えます。

npm install -g playwright
npx playwright install chromium
note-research auth login --browser

Manual mode

note-research auth login --cookie "_note_session_v5=..."
note-research auth status

--xsrf は省略可能です(未指定時は自動取得を試行)。

Environment mode

note-research auth login --mode env

Safer non-interactive input

引数露出を避けるため、cookie は標準入力でも渡せます。

echo "_note_session_v5=..." | note-research auth login --cookie-stdin --manual

認証情報は ~/.note-research/session.json (mode 0600) に保存されます。

Usage

note-research search-notes --query "AI" --format json
note-research search-notes --query "AI" --format json --profile full
note-research competitor analyze --query "AI" --format json
note-research report needs --query "AI" --format md
note-research user analyze --user <urlname> --format json
note-research draft create --title "test" --body-file ./draft.md --format json

Output Profile

  • Default: --profile minimal
  • Optional: --profile full

minimal はエージェント実行向けにノイズを削った出力です。 full はデバッグ・互換用途で生データ寄りの出力を維持します。

Known Limitations

  • Uses unofficial endpoints that may change without notice
  • Authentication/session behavior may vary by account state
  • Automatic workflows can break when endpoint contracts change

Security

  • Never commit .env or session cookies
  • Keep account tokens private
  • Rotate credentials if leaked
  • Prefer environment variables (NOTE_SESSION_V5) over --cookie CLI arguments to avoid session exposure in process listings (ps aux)
  • Session file is stored at ~/.note-research/session.json with permissions 0600 (owner-read/write only)

License

MIT