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

@magicblock-labs/mirage

v0.4.1

Published

CLI for MagicBlock private payments, wallet funding, and Open Wallet Standard workflows.

Readme

Packages

| Package | Description | Version | Docs | |:--------------------------|:---------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------| | @magicblock-labs/mirage | Commander-based CLI for MagicBlock private payments and wallet flows | npm version | docs quickstart |

Install

npm install -g @magicblock-labs/mirage

After install, the CLI is available as:

mirage --help

Mirage includes built-in support for Open Wallet Standard (OWS), and exposes the bundled CLI through mirage ows .... Mirage also uses the shared OWS config at ~/.ows/config.json for its default Solana RPC.

What It Does

  • mirage address prints the Solana public key for an OWS wallet
  • mirage balance shows the wallet balance through ows fund balance
  • mirage fund opens https://one.magicblock.app/ in the browser with rcv=<wallet-pubkey>
  • mirage transfer accepts UI amounts like 0.1, defaults --mint to mainnet USDC, resolves mint decimals over Solana RPC, builds a transaction from the MagicBlock payments API, signs it with OWS, and sends it on Solana
  • mirage swap accepts UI amounts, fetches a MagicBlock swap quote, builds the unsigned swap transaction, signs it with OWS, and sends it on Solana
  • mirage ows ... forwards directly to the bundled ows CLI
  • mirage api ... exposes low-level commands generated from the checked-in OpenAPI schema
  • mirage invoke ... allow to create arbitrary transaction using a program IDL (onchain or manually provided)

mirage address, mirage balance, mirage fund, mirage transfer, and mirage swap default to the agent-treasury wallet. If agent-treasury does not exist yet, Mirage creates it automatically before running the command. Passing --wallet <name> uses that existing OWS wallet instead.

Examples

mirage address
mirage address --wallet agent-treasury-1

mirage balance
mirage balance --wallet agent-treasury-1

mirage fund
mirage fund --wallet agent-treasury-1

mirage transfer \
  --to <recipient> \
  --amount 0.1

# equivalent explicit mint
mirage transfer \
  --to <recipient> \
  --mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --amount 0.1

mirage swap \
  --input-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --output-mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB \
  --amount 1 \
  --slippage-bps 50

mirage ows sign message --wallet agent-treasury --chain solana --message "hello"

mirage invoke 852a53jomx7dGmkpbFPGXNJymRxywo3WsH1vusNASJRr --cluster devnet

Skills

This repo includes a reusable agentic Solana wallet skill in skills/mirage-solana-wallet/SKILL.md.

  • Install it from GitHub with npx skills add magicblock-labs/mirage.
  • To install this specific skill non-interactively, use npx skills add magicblock-labs/mirage --skill mirage-solana-wallet.
  • The skill covers creating Solana wallets with mirage ows wallet create, funding wallets through mirage fund, invoking any Anchor program by its IDL with mirage invoke (interactive or via non-interactive --show-idl / --ix / --arg / --account / --dry-run flags for agents and scripts), sending public or private SPL transfers with mirage transfer, building swaps with mirage swap, and signing arbitrary Solana transactions with mirage ows sign tx.

Development

npm install
npm run build
npm test

OpenAPI codegen commands:

npm run openapi:generate
npm run openapi:update -- "/path/to/api.json"