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

hl-terminal

v0.3.0

Published

Hyperliquid DEX terminal — read market data, manage accounts, and execute trades from the command line or via AI agent (MCP)

Readme

Features

  • Market data — prices, positions, orders, balances, funding rates, fill history
  • Account management — add, remove, switch accounts with secure local storage
  • Trade execution -- limit/market orders, cancel, leverage, take-profit, stop-loss
  • Agent-native — built-in MCP server mode for AI agent integration
  • Machine-readable — JSON output, LLM manifest, structured error codes
  • Testnet support--testnet flag for risk-free testing

Installation

# bun (recommended)
bun add -g hl-terminal

# npm
npm install -g hl-terminal

Quick Start

# Add your first account
hl-terminal account add --name main

# Check BTC price
hl-terminal price BTC

# View your positions
hl-terminal positions

# View your balance
hl-terminal balance

# List available markets
hl-terminal markets

# Place a limit buy order
hl-terminal order create BTC buy 0.001 95000

# Place a market sell order
hl-terminal order create ETH sell 1.5

# Set 10x leverage on BTC
hl-terminal position leverage BTC 10

Commands

Account Management

| Command | Description | | ------------------------------------ | ------------------------------------- | | hl-terminal account add --name <n> | Add account (prompts for private key) | | hl-terminal account watch <addr> --name <n> | Add read-only account (address only) | | hl-terminal account ls | List all accounts | | hl-terminal account rm <name> | Remove an account | | hl-terminal account switch <name> | Switch default account |

Market Data

| Command | Description | | ------------------- | -------------------------------------------- | | hl-terminal price <coin> | Current mid-price for a coin | | hl-terminal balance | Perps margin + spot wallet balance | | hl-terminal positions | Open positions with PnL, leverage, liq price | | hl-terminal orders | Open orders with side, size, price, type | | hl-terminal markets | Available markets with metadata | | hl-terminal funding [coin] | Current funding rates or history for a coin | | hl-terminal fills [coin] | Trade history with time range and pagination |

Trade Execution

| Command | Description | | --- | --- | | hl-terminal order create <coin> <side> <size> [price] | Place limit (with price) or market (without) order | | hl-terminal order cancel <oid> | Cancel an order by ID | | hl-terminal order cancel-all | Cancel all open orders (optional --coin filter) |

Position Management

| Command | Description | | --- | --- | | hl-terminal position leverage <coin> <leverage> | Set leverage (add --isolated for isolated margin) | | hl-terminal position tp <coin> --price <price> | Place take-profit trigger on open position | | hl-terminal position sl <coin> --price <price> | Place stop-loss trigger on open position |

Global Options

| Option | Description | | --------------- | ---------------------- | | --testnet, -t | Use testnet network | | --json | Output as JSON | | --mcp | Run as MCP server | | --llms | Print command manifest | | --help | Show help | | --version | Show version |

MCP Server

hl-terminal works as an MCP server for AI agents:

hl-terminal --mcp

All commands are exposed as tools that AI agents can call programmatically.

Security

Private keys are stored locally at ~/.hyperliquid/config.json with 0600 file permissions. Keys never leave your machine. Read-only watch accounts are available for monitoring without exposing any keys.

See SECURITY.md for the full security policy.

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT