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

@yo-protocol/cli

v1.0.4

Published

Interactive CLI for Yo Protocol — explore vaults, positions, rewards & more

Downloads

471

Readme

@yo-protocol/cli

Interactive CLI for Yo Protocol — explore vaults, positions, rewards & more from your terminal.

Installation

npm install -g @yo-protocol/cli

Or run directly with npx:

npx @yo-protocol/cli

Quick Start

Run yo with no arguments to launch interactive mode — a guided menu to browse vaults, check positions, view rewards, and build transactions:

yo

Or use commands directly:

yo vaults                          # List all vaults with APY & TVL
yo vault yoUSD                     # Detailed info for a vault
yo portfolio --user 0x...          # All positions across all chains
yo rewards --user 0x...            # Claimable Merkl rewards

Global Options

| Flag | Description | Default | | ----------------- | ----------------------------------------------- | ------- | | --chain <id> | Chain ID: 1 (Ethereum), 8453 (Base), 42161 (Arbitrum) | 1 | | --rpc-url <url> | Custom RPC endpoint (env: YO_RPC_URL) | — | | --json | Force JSON output (for scripts & agents) | — | | --raw | Treat amounts as raw bigint strings | — |

Commands

Vault Discovery

yo vaults                          # List all vaults with APY and TVL
yo vault <id>                      # Show detailed vault information
yo prices                          # Show current asset prices

User Positions & Account

yo position <vault> --user <addr>  # Show user position in a vault
yo portfolio --user <addr>         # Show all positions across all chains
yo rewards --user <addr>           # Show claimable Merkl rewards
yo user-perf <vault> --user <addr> # Show user P&L (realized & unrealized)
yo pending-redeems <vault> --user <addr>  # Show pending redemptions
yo yo-rewards --user <addr>           # $YO rewards earned

Charts & Analytics

yo yield <vault>                   # Vault yield history chart
yo tvl <vault>                     # Vault TVL history chart
yo share-price <vault>             # Share price history chart
yo perf <vault>                    # Performance benchmark comparison
yo leaderboard                     # Top reward earners
yo history <vault>                 # Transaction history for a vault
yo history <vault> --user <addr>   # Filter history by user

Transaction Builder (Agent Compatible)

Build unsigned transaction calldata — useful for scripts, bots, and AI agents:

yo prepare deposit \
  --vault yoUSD \
  --amount 100

yo prepare redeem \
  --vault yoUSD \
  --shares 50

yo prepare approve \
  --token 0x... \
  --amount 1000 \
  --decimals 6

yo prepare deposit-with-approval \
  --vault yoUSD \
  --token 0x... \
  --owner 0x... \
  --amount 100

All prepare commands accept --slippage-bps <n> (default: 50 = 0.5%).

Schema

yo schema                          # Output full CLI schema as JSON (agent discovery)

Interactive Mode

Running yo without a command opens the interactive menu:

  • Browse Vaults — explore all vaults with APY & TVL
  • My Account — grouped user actions:
    • Portfolio — view positions across chains
    • Rewards & Claims — check claimable Merkl rewards
    • Performance (P&L) — realized & unrealized profit/loss
    • Pending Redemptions — pending redeem requests
    • $YO Rewards Earned — $YO token reward history
  • Vault Deep Dive — detailed charts and analytics for a vault
  • Leaderboard — top reward earners
  • TX Builder — build deposit/redeem transactions step by step

JSON Output

Add --json to any command for machine-readable output:

yo vaults --json
yo vault yoUSD --json
yo position yoUSD --user 0x... --json

Environment Variables

| Variable | Description | | ------------ | ------------------ | | YO_RPC_URL | Default RPC endpoint |

Related Packages

License

MIT