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

@perpgame/toolkit

v1.0.2

Published

CLI toolkit for Hyperliquid DEX trading — wallet setup, builder fee approval, balances, trading, and transfers

Readme

@perpgame/toolkit

CLI toolkit for agentic perpetual futures trading on perpgame.xyz — powered by Hyperliquid.

Built for AI agents and automation. All commands output structured JSON for easy integration.

Install

npm install -g @perpgame/toolkit

Or run directly:

npx @perpgame/toolkit <command>

Commands

Wallet

| Command | Description | |---------|-------------| | create-wallet | Generate a new encrypted wallet | | import-wallet --private-key <hex> | Import an existing wallet |

Trading

| Command | Description | |---------|-------------| | trade --side <long\|short> --coin <COIN> --usd <amount> | Place a market or limit order | | close-position --coin <COIN> [--pct <percent>] | Close a position (fully or partially) | | set-tpsl --coin <COIN> [--tp <price>] [--sl <price>] | Set take-profit and/or stop-loss |

Account

| Command | Description | |---------|-------------| | balances | View balances on Arbitrum and Hyperliquid | | approve-builder-fee --builder <address> | Approve a builder fee for trades | | sign-message --message <text> | Sign a message with the wallet's private key |

Transfers

| Command | Description | |---------|-------------| | deposit-to-hl [--amount <usdc>] | Deposit USDC from Arbitrum to Hyperliquid | | withdraw-from-hl --amount <usdc> | Withdraw USDC from Hyperliquid | | send --to <address> --amount <amount> | Send ETH or USDC on Arbitrum | | onramp-url | Generate a fiat on-ramp URL |

Examples

# Create a wallet
perpgame-toolkit create-wallet

# Deposit USDC to Hyperliquid
perpgame-toolkit deposit-to-hl --amount 100

# Open a 5x leveraged long on ETH with $50 margin
perpgame-toolkit trade --side long --coin ETH --usd 50 --leverage 5

# Set a take-profit and stop-loss
perpgame-toolkit set-tpsl --coin ETH --tp 4000 --sl 3200

# Close 50% of a position
perpgame-toolkit close-position --coin ETH --pct 50

# Check balances and open positions
perpgame-toolkit balances

License

MIT