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

@yourbright/jpyc-cli

v0.1.0

Published

Local-first JPYC command-line tooling

Readme

JPYC CLI

JPYC CLI は、EVM ネットワーク上の JPYC ウォレット作成、残高確認、コントラクト呼び出し、送金をローカルで行うためのコマンドラインツールです。

人間と AI エージェントの両方から使いやすいように、各コマンドは JSON 出力に対応し、送金などの破壊的な操作は dry-run と明示確認を前提にしています。

要件

  • Node.js >=20.19.0
  • 利用するネットワークの RPC URL
  • 実送金する場合は、送信元ウォレットに対象ネットワークのネイティブガス代

インストール

npm install -g @yourbright/jpyc-cli

インストール確認:

jpyc schema list --output json

プロンプト経由でインストールする

AI coding agent にセットアップさせる場合は、次のようなプロンプトを渡してください。

@yourbright/jpyc-cli をインストールして動作確認してください。

手順:
1. Node.js が >=20.19.0 であることを確認する。
2. 次を実行する: npm install -g @yourbright/jpyc-cli
3. 次を実行して CLI を確認する: jpyc schema list --output json
4. ローカルのテスト用ウォレットを作る:
   jpyc wallet create --id default --output json
5. 秘密鍵を表示、export、commit しない。
6. 残高確認が必要な場合は、RPC URL を私に確認するか、既存の環境変数を使う。

グローバルインストールせずに一度だけ実行する場合:

npx --yes --package=@yourbright/jpyc-cli -- jpyc schema list --output json

Codex Skill としてインストールする

Codex に JPYC CLI の安全な使い方を覚えさせたい場合は、GitHub CLI v2.90.0 以降の gh skill でインストールできます。

gh skill install yourbright-jp/jpyc-cli jpyc-cli --agent codex --scope user

インストール後、Codex を再起動してから $jpyc-cli を指定してください。

クイックスタート

ウォレットを作成:

jpyc wallet create --id default --output json

ウォレット一覧:

jpyc wallet list --output json

Polygon RPC URL を設定:

export JPYC_POLYGON_RPC_URL="https://polygon-mainnet.g.alchemy.com/v2/<key>"

ネイティブトークンと JPYC の残高確認:

jpyc account balance \
  --wallet default \
  --network polygon \
  --tokens native,jpyc \
  --output json

JPYC 送金内容の確認:

jpyc transfer plan \
  --network polygon \
  --from default \
  --to 0x0000000000000000000000000000000000000000 \
  --amount 1 \
  --token jpyc \
  --output json

送金前の dry-run:

jpyc transfer send \
  --network polygon \
  --from default \
  --to 0x0000000000000000000000000000000000000000 \
  --amount 1 \
  --token jpyc \
  --dry-run \
  --output json

dry-run の結果を確認してから実送金:

jpyc transfer send \
  --network polygon \
  --from default \
  --to 0x0000000000000000000000000000000000000000 \
  --amount 1 \
  --token jpyc \
  --yes \
  --output json

安全上の注意

  • JPYC CLI は non-custodial です。ウォレットファイルは利用者自身が管理します。
  • ウォレットデータは JPYC_CLI_HOME が設定されていればその配下、未設定なら ~/.jpyc-cli に保存されます。
  • 現在のウォレットストアはローカル JSON ファイルです。秘密情報として扱い、commit しないでください。
  • wallet show と wallet list は秘密鍵を表示しません。
  • wallet export-private-key --yes は秘密鍵を表示します。安全な端末でのみ使ってください。
  • トランザクションを broadcast するコマンドには --yes が必要です。
  • 実送金前に transfer plan と transfer send --dry-run を使ってください。

環境変数

| 変数 | 用途 | | --- | --- | | JPYC_CLI_HOME | ローカルのウォレット/config 保存先。未設定時は ~/.jpyc-cli。 | | JPYC_ETHEREUM_RPC_URL | Ethereum mainnet RPC URL。 | | JPYC_POLYGON_RPC_URL | Polygon mainnet RPC URL。 | | JPYC_AVALANCHE_RPC_URL | Avalanche C-Chain RPC URL。 |

コマンド例

スキーマ

jpyc schema list --output json
jpyc schema wallet.create --output json
jpyc schema transfer.send --output json

ウォレット

jpyc wallet create --id default --output json
jpyc wallet import --id imported --from-private-key-env JPYC_PRIVATE_KEY --output json
jpyc wallet list --output json
jpyc wallet show --id default --output json
jpyc wallet export-private-key --id default --yes --output json

アカウント

jpyc account address --wallet default --output json
jpyc account balance --wallet default --network polygon --tokens native,jpyc --output json
jpyc account nonce --wallet default --network polygon --output json

送金

jpyc transfer plan --network polygon --from default --to <address> --amount 1 --token jpyc --output json
jpyc transfer send --network polygon --from default --to <address> --amount 1 --token jpyc --dry-run --output json
jpyc transfer send --network polygon --from default --to <address> --amount 1 --token jpyc --yes --output json

コントラクト read

jpyc contract read \
  --network polygon \
  --address <contract> \
  --abi-json '[{"type":"function","name":"symbol","stateMutability":"view","inputs":[],"outputs":[{"name":"","type":"string"}]}]' \
  --function symbol \
  --output json

開発

依存関係のインストール:

npm ci

チェック:

npm run typecheck
npm run build

Alchemy RPC を使った fork test:

export JPYC_ALCHEMY_API_KEY="<key>"
npm run test:fork:alchemy

npm package の中身を確認:

npm pack --dry-run

ライセンス

MIT