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

@openclawdsolana/percolator

v1.0.1

Published

๐Ÿฆž OpenClawd Percolator โ€” agentic perpetuals CLI for Solana. Trade, manage, and monitor perp markets from the lobster's claw.

Readme

๐Ÿงช Percolator CLI

Perpetuals trading CLI for Solana โ€” Trade, manage, and monitor perpetuals markets.

Part of the OpenClawd monorepo โ€” the Hermes of Web3.


Changelog

v1.1.0 (April 23, 2025)

NEW: Full Percolator CLI Package

30 commands with viral emoji branding for perpetuals trading:

  • ๐Ÿ›๏ธ Market Management โ€” init-market, list-markets, close-slab, close-all-slabs
  • ๐Ÿ’ฐ Trading โ€” init-user, init-lp, deposit, withdraw, trade-cpi, best-price
  • โš”๏ธ Liquidation โ€” liquidate-at-oracle, close-account
  • ๐Ÿ”ฎ Oracle โ€” push-oracle-price, set-oracle-authority
  • ๐Ÿ›ก๏ธ Insurance โ€” topup-insurance, withdraw-insurance, resolve-market
  • ๐Ÿ‘‘ Admin โ€” update-admin, update-config
  • ๐Ÿ” Inspection โ€” slab:get, slab:header, slab:config, slab:nonce, slab:engine, slab:params, slab:account, slab:accounts, slab:bitmap
  • ๐Ÿ“Š Utilities โ€” audit-cu

Features:

  • Global --simulate and --json flags
  • Support for testnet, devnet, mainnet-beta
  • Keypair-based wallet authentication
  • Custom RPC URL configuration
  • x402-ready for future payment integration

Features

  • ๐Ÿ“Š Market Management - Initialize, configure, and close perpetuals markets
  • ๐Ÿ’ฐ Trading - Deposit, withdraw, and trade with leverage
  • ๐Ÿ”’ Account Management - Create and manage trading accounts
  • โš”๏ธ Liquidation - Liquidate undercollateralized positions
  • ๐Ÿ”ฎ Oracle Management - Push prices, set authorities
  • ๐Ÿ“‹ Inspection - Query market state, accounts, headers, engine

Installation

# Clone the repo
git clone https://github.com/clawdsolana/OpenClawd.git
cd openclawd

# Build the package
cd packages/percolator
npm install
npm run build

# Link globally
npm link

Quick Start

# List all markets
percolator list-markets

# Get market state
percolator slab:get --slab <PUBKEY>

# Create a trading account
percolator init-user --slab <PUBKEY>

# Deposit collateral
percolator deposit --slab <PUBKEY> --idx <ACCOUNT_IDX> --amount 100000000

Commands

Market Management

| Command | Description | |---------|-------------| | init-market | ๐Ÿ›๏ธ Initialize a new perpetuals market | | init-lp | ๐Ÿ’ฐ Initialize an LP (Liquidity Provider) account | | list-markets | ๐Ÿ“‹ List all markets on the program | | update-config | โš™๏ธ Update market configuration | | close-slab | ๐Ÿ—‘๏ธ Close a market | | close-all-slabs | ๐Ÿ—‘๏ธ Close all markets |

Trading

| Command | Description | |---------|-------------| | init-user | ๐Ÿ—๏ธ Initialize a trading account | | deposit | ๐Ÿ’Ž Deposit collateral | | withdraw | ๐Ÿ’ธ Withdraw collateral | | trade-cpi | ๐Ÿ“ˆ Execute a perpetuals trade | | liquidate-at-oracle | โš”๏ธ Liquidate an account at oracle price | | close-account | ๐Ÿ”’ Close your account | | best-price | ๐Ÿ’ฐ Find best LP price for a trade |

Oracle

| Command | Description | |---------|-------------| | push-oracle-price | ๐Ÿ”ฎ Push oracle price (authority only) | | set-oracle-authority | ๐Ÿ”ฎ Set oracle authority |

Insurance

| Command | Description | |---------|-------------| | topup-insurance | ๐Ÿ›ก๏ธ Top up insurance fund | | withdraw-insurance | ๐Ÿ’ฐ Withdraw from insurance fund | | resolve-market | โœ… Resolve a market |

Inspection

| Command | Description | |---------|-------------| | slab:get | ๐Ÿ” Get full slab state | | slab:header | ๐Ÿ“‹ Get header info | | slab:config | โš™๏ธ Get config info | | slab:nonce | ๐Ÿ”ข Get nonce | | slab:engine | โšก Get engine state | | slab:params | ๐Ÿ“Š Get risk parameters | | slab:account | ๐Ÿ‘ค Get account by index | | slab:accounts | ๐Ÿ“‹ List all accounts | | slab:bitmap | ๐Ÿ—บ๏ธ Get used account bitmap | | audit-cu | ๐Ÿ“Š Compute unit audit |

Admin

| Command | Description | |---------|-------------| | update-admin | ๐Ÿ‘‘ Update market admin |

Global Options

-c, --cluster <cluster>      Solana cluster (mainnet-beta, testnet, devnet)
--commitment <level>         Transaction commitment (confirmed, finalized, processed)
--simulate                   Simulate transactions without sending
--json                       Output JSON format
-k, --keypair <path>          Path to keypair
-v, --verbose                Verbose output
--program-id <pubkey>         Percolator program ID
--rpc-url <url>              Custom RPC URL

Environment Variables

# Optional - can also use --keypair, --program-id, --rpc-url flags
export KEYPAIR=~/.config/solana/id.json
export CLUSTER=mainnet-beta
export PROGRAM_ID=PERC8m2tkHwVBEZSCz3E5JhcUVE5sWsEG8q39h7mSS5M
export RPC_URL=https://api.mainnet-beta.solana.com

Examples

Initialize and trade

# Initialize market
percolator init-market \
  --slab <NEW_PUBKEY> \
  --mint So11111111111111111111111111111111111111112 \
  --vault <VAULT_PUBKEY> \
  --index-feed-id 0x1234... \
  --max-staleness-secs 60 \
  --conf-filter-bps 100

# Initialize user account
percolator init-user --slab <SLAB_PUBKEY> --idx 0

# Deposit 100 USDC
percolator deposit \
  --slab <SLAB_PUBKEY> \
  --idx 0 \
  --amount 100000000

# Execute a trade
percolator trade-cpi \
  --slab <SLAB_PUBKEY> \
  --lp-idx 1 \
  --user-idx 0 \
  --size 1000000 \
  --matcher-program <MATCHER_PUBKEY> \
  --matcher-ctx <CTX_PUBKEY>

Inspect market state

# Get full state
percolator slab:get --slab <PUBKEY> --json

# List all accounts
percolator slab:accounts --slab <PUBKEY>

# Get engine state
percolator slab:engine --slab <PUBKEY>

Related Documentation

| Document | Description | |----------|-------------| | OpenClawd README | Main monorepo documentation | | AutoResearch Wiki | Karpathy-style research engine | | Solana Integration | Blockchain API reference | | STACK.md | Technical architecture |

Links

| Service | URL | |---------|-----| | ๐ŸŒ Website | solanaclawd.com | | ๐Ÿ“ฆ GitHub | github.com/clawdsolana/OpenClawd | | ๐Ÿฆ Twitter | x.com/clawddevs | | ๐Ÿ’ฌ Telegram | t.me/clawdtoken |


Built with ๐Ÿฆž by the OpenClawd crew โ€” The Hermes of Web3

License

MIT โ€” See ../LICENSE.md