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

@fusenly/cli

v0.0.1

Published

Fusenly notes, read-later lists and URL context from your terminal

Readme

Fusenly CLI

ターミナルからFusenlyのノートを読み書きし、URLに関連するノートを Markdown・JSONで取り出せます。macOS・Linux・WindowsのNode.js 22以上が必要です。

インストール

現在はnpm公開前です。 配布された .tgz ファイルからインストールできます。

npm install --global ./fusenly-cli-0.0.1.tgz
fusenly --version
fusenly --help

npm公開後は、次のコマンドでインストール・更新できます。

npm install --global @fusenly/cli

インストールせずに試す場合(npm公開後):

npx @fusenly/cli --help

削除する場合:

npm uninstall --global @fusenly/cli

ログイン

標準接続先は https://fusenly.com です(APIのパスは /v1/*)。

fusenly login
  1. 表示された Fusenlyのセキュリティ設定 を開きます。
  2. 「拡張機能と CLI」から「CLI 用のトークンを発行」を押します。必要に応じて再認証します。
  3. 一度だけ表示されるトークンをコピーし、ターミナルに貼り付けてEnterを押します。入力内容は表示されません。
  4. アカウントと現在の組織が表示されたら完了です。

ブラウザでの認証がCLIへ自動的に引き継がれる方式ではありません。 CLIはトークンをAPIで検証できた後に保存します。接続や認証に失敗しても、既存の認証情報は残ります。

ログイン状態の確認:

fusenly auth status

トークンは90日で失効します。失効・無効化された場合は、新しいトークンで再ログインします。 保存済みのAPI接続先で再認証します。

fusenly login

自動化では、シークレット管理ツールの出力やトークンファイルを標準入力へ渡してください。

fusenly login --token-stdin < /secure/path/token.txt

従来の --token オプションも使えますが、トークンがシェル履歴やプロセス引数に残るため、 対話入力または --token-stdin を使用してください。

ログアウト・トークンの無効化

fusenly logout

端末内の認証情報を削除します。サーバー側のトークンは Fusenlyのセキュリティ設定 で「無効にする」を押してください。 端末を紛失したときも、この画面から無効にできます。

よく使う操作

# 組織を確認・切り替え
fusenly org list
fusenly org use personal
fusenly org current

# ノートを読む
fusenly note list --limit 10
fusenly note list --tag research
fusenly note get <note_id>

# タグ・あとで読む
fusenly tag list
fusenly read-later list

# URLに関連するノートをAIツールへ渡す
fusenly context --url https://example.com --format markdown > context.md
fusenly context --url https://example.com --format json

書き込み権限のあるトークンと組織では、作成・更新・削除もできます。

fusenly note create --title "調査メモ" --url https://example.com --content "確認すること" --tag research
fusenly note create --title "長いメモ" --url https://example.com --stdin < memo.md
fusenly note update <note_id> --editor
fusenly note delete <note_id>

--editor は $EDITOR を使います。削除は確認を求めます。自動化で確認を省く場合のみ --yes を指定します。

設定と接続エラー

認証情報と選択した組織は ~/.config/fusenly/config.json に保存します。 macOS・Linuxではファイルを所有者だけが読み書きできる権限(0600)で保存します。 トークンは端末内に平文で保存されるため、このファイルを共有しないでください。

環境変数:

| 名前 | 用途 | | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | FUSENLY_API_BASE_URL | ログイン先のAPIオリジン。--api-base-url が優先されます。未指定なら保存済み接続先、なければ https://fusenly.com を使用します。ログイン後の操作は保存済みの接続先を使います | | FUSENLY_CONFIG_PATH | 設定ファイルの保存先を変更します |

  • Not logged in:fusenly login を実行します。
  • Unauthorized:トークンの期限切れ・無効化を確認し、fusenly login で新しいトークンを登録します。
  • Forbidden:トークンの権限と組織内の役割を確認します。
  • Could not connect:保存したAPIのURL、ネットワーク接続、サーバーの状態を確認します。
  • 設定ファイルの破損:fusenly logout で削除してからログインし直します。

HTTPは localhost・127.0.0.1・[::1] の開発環境に限り利用できます。

開発

リポジトリから動かす場合:

pnpm --filter @fusenly/cli dev -- help
pnpm --filter @fusenly/cli dev -- login --api-base-url http://localhost:8787
pnpm cli:typecheck
pnpm cli:test
pnpm --filter @fusenly/cli test:package