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

@byreal-io/byreal-cli

v0.3.6

Published

AI-native CLI for Byreal CLMM DEX on Solana

Readme

Byreal Agent Skills

Agent skills for Byreal — a concentrated liquidity (CLMM) DEX on Solana. Every command supports structured JSON output, and the built-in skill system lets AI agents discover and use all capabilities automatically.

AI Integration

Install as an Agent Skill so your LLM can discover all capabilities:

npx skills add byreal-git/byreal-agent-skills

Or install the CLI only:

npm install -g @byreal-io/byreal-cli

Features

  • Pools — List, search, and inspect CLMM pools. View K-line charts, Est. APR (fee + reward incentive breakdown), TVL, volume, and run comprehensive pool analysis (risk, volatility, range recommendations).
  • Tokens — List tokens, search by symbol/name, get real-time prices.
  • Swap — Preview and execute token swaps with slippage control and price impact estimation.
  • Positions — Open, close, and manage CLMM positions. Claim fees and rewards. Analyze position performance. Copy top farmers' positions with one command.
  • Wallet — View address and balances, manage keypairs.
  • Config — Configure RPC URL, slippage tolerance, priority fees.

Quick Start

# First-time setup (configure wallet)
byreal-cli setup

# View top pools by APR
byreal-cli pools list --sort-field apr24h

# Analyze a pool
byreal-cli pools analyze <pool-address>

# Swap 0.1 SOL → USDC (preview)
byreal-cli swap execute \
  --input-mint So11111111111111111111111111111111111111112 \
  --output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --amount 0.1 --dry-run

# Copy a top farmer's position
byreal-cli positions copy --position <address> --amount-usd 100 --confirm

All commands support -o json for structured output.

Commands

| Command | Description | | ------------------------- | ---------------------------------------------- | | overview | Global DEX statistics (TVL, volume, fees) | | pools list | List pools with sorting and filtering | | pools info | Detailed pool information | | pools klines | K-line / candlestick chart | | pools analyze | Comprehensive pool analysis (APR, risk, range) | | tokens list | List available tokens | | swap execute | Preview or execute a token swap | | positions list | List positions (own wallet or any via --user) | | positions open | Open a new CLMM position (Auto Swap supported) | | positions increase | Add liquidity to an existing position (Auto Swap supported) | | positions decrease | Partially remove liquidity from a position (Auto Swap supported) | | positions close | Close a position (Auto Swap supported) | | positions claim | Claim trading fees | | positions claim-rewards | Claim incentive rewards from positions | | positions claim-bonus | Claim CopyFarmer bonus rewards | | positions analyze | Analyze an existing position | | positions top-positions | View top positions in a pool | | positions copy | Copy a farmer's position | | wallet address | Show wallet address | | wallet balance | Show wallet balances | | setup | Interactive first-time setup | | update check | Check for CLI updates |

Auto Swap (Zap)

The --auto-swap flag lets you open / increase / decrease / close positions with a single token. The Byreal router-service computes the optimal split, runs an on-chain swap, and atomically deposits or withdraws liquidity in one transaction.

# Open a SOL/USDC position with only USDC; backend swaps half into SOL
byreal-cli positions open \
  --pool <POOL> --price-lower 140 --price-upper 180 \
  --base MintB --amount 10 --auto-swap --confirm

# Add liquidity using only the base token
byreal-cli positions increase \
  --nft-mint <NFT> --base MintA --amount 0.05 --auto-swap --confirm

# Decrease 50% of liquidity, receive everything as USDC
byreal-cli positions decrease \
  --nft-mint <NFT> --percentage 50 \
  --auto-swap --output-mint <USDC_MINT> --confirm

# Close position, receive proceeds as USDC
byreal-cli positions close \
  --nft-mint <NFT> --auto-swap --output-mint <USDC_MINT> --confirm

Use --dry-run first to preview the swap quote (provider, price impact, estimated token A/B amounts) before sending. Quotes are HMAC-signed with a 30s TTL — if a build-tx call fails because the quote expired, the CLI re-fetches the quote and retries once automatically.

Update

byreal-cli update check
byreal-cli update install

License

MIT