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-perps-cli

v0.2.2

Published

AI-native CLI for Byreal Hyperliquid perpetual futures trading

Readme

Byreal Perps CLI

AI-native CLI for Byreal Hyperliquid perpetual futures trading. Designed for LLM agents: every command supports structured JSON output, and the built-in skill system lets AI assistants discover and use all capabilities automatically.

AI Integration

Install it as a Skill so your LLM can discover all capabilities:

npx skills add byreal-git/byreal-perps-cli

Or install the CLI only:

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

Features

  • Account — Initialize perps account, view balance, deposit/withdraw, trade history.
  • Orders — Market and limit orders with TP/SL, list open orders, cancel orders.
  • Positions — List positions, close at market/limit, close all, set leverage.
  • Signals — Scan markets for trading signals, detailed technical analysis per coin.

Quick Start

# Initialize perps account (required before any trading)
byreal-perps-cli account init

# Check account info
byreal-perps-cli account info

# Set leverage
byreal-perps-cli position leverage BTC 10

# Market order: long 0.01 BTC with TP/SL
byreal-perps-cli order market buy 0.01 BTC --tp 110000 --sl 90000

# Limit order: short 1 ETH at $4000
byreal-perps-cli order limit sell 1 ETH 4000

# List open positions and orders
byreal-perps-cli position list
byreal-perps-cli order list

# Close a position at market price
byreal-perps-cli position close-market BTC

# Close a position with limit order
byreal-perps-cli position close-limit BTC 100000

# Close all positions
byreal-perps-cli position close-all -y

# Cancel all orders
byreal-perps-cli order cancel-all -y

# Scan market signals
byreal-perps-cli signal scan

# Detailed technical analysis for a coin
byreal-perps-cli signal detail BTC

# Check for CLI updates
byreal-perps-cli update check

# Install latest CLI version
byreal-perps-cli update install

All commands support -o json for structured output.

Commands

| Command | Description | | ------------------------ | --------------------------------------------------- | | account init | Interactive setup wizard for perps trading | | account info | Show perps account info & balance | | account history | Show recent trade history | | account deposit | Deposit funds to perps account (coming soon) | | account withdraw | Withdraw funds from perps account (coming soon) | | order market | Place a market order with optional TP/SL | | order limit | Place a limit order with optional TP/SL | | order list | List open orders | | order cancel | Cancel an order by OID | | order cancel-all | Cancel all open orders | | position list | List open positions | | position close-market | Close a position at market price (full or partial) | | position close-limit | Close a position with a limit order | | position close-all | Close all open positions at market price | | position leverage | Set leverage for a coin (1-50x, cross/isolated) | | signal scan | Scan markets for trading signals | | signal detail | Detailed technical analysis for a specific coin | | update check | Check for available CLI updates | | update install | Install the latest CLI version |

Testnet

All commands support --testnet to use Hyperliquid testnet:

byreal-perps-cli --testnet account info

License

MIT