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

@xlmtools/cli

v0.2.3

Published

XLMTools standalone CLI — the `xlm` command plus the `createMcpServer` factory used by the @xlmtools/mcp wrapper package.

Readme

@xlmtools/cli

Standalone CLI for XLMTools — 21 pay-per-call tools for AI agents on Stellar. Install it, type xlm, and go.

Install

npm install -g @xlmtools/cli

On first run, XLMTools auto-generates a Stellar testnet wallet, funds it with XLM via friendbot, and adds a USDC trustline. The only manual step is grabbing testnet USDC from faucet.circle.com to use paid tools.

Usage

xlm <tool> [args] [--flag value]

Quick examples

# Free tools — no cost
xlm crypto bitcoin,ethereum,stellar
xlm weather Lagos
xlm wallet
xlm oracle-price BTC
xlm dex-orderbook XLM/USDC --limit 5
xlm swap-quote XLM USDC 100
xlm stellar-asset USDC
xlm domain xlmtools.com
xlm tools

# Paid tools — USDC charged per call via Stellar MPP
xlm search "Stellar x402 micropayments" --count 5
xlm stocks AAPL
xlm research "Soroban smart contracts" --num-results 3
xlm youtube "Stellar blockchain"
xlm scrape https://stellar.org
xlm screenshot https://xlmtools.com --format png
xlm image "a stingray gliding over a coral reef at dusk" --size 1024x1024

Output is JSON. Pipe to jq for filtering:

xlm crypto bitcoin | jq '.bitcoin.usd'

All commands

Paid ($0.001–$0.04 USDC per call, settled on Stellar testnet):

| Command | Price | What it does | | --- | --- | --- | | xlm search <query> [--count N] | $0.003 | Web + news search | | xlm research <query> [--num-results N] | $0.010 | Multi-source deep research | | xlm youtube <query> or --id <id> | $0.002 | Video search or lookup | | xlm screenshot <url> [--format png] | $0.010 | Capture a URL screenshot | | xlm scrape <url> | $0.002 | Extract clean text from a URL | | xlm image <prompt> [--size 1024x1024] | $0.040 | AI image generation | | xlm stocks <symbol> | $0.001 | Real-time stock quotes |

Free (no cost):

| Command | What it does | | --- | --- | | xlm crypto <ids> [--vs-currency usd] | Crypto prices from CoinGecko | | xlm weather <location> | Current weather for any city | | xlm domain <name> | Domain availability check | | xlm dex-orderbook <pair> [--limit N] | Stellar DEX orderbook | | xlm dex-candles <pair> [--resolution 1h] [--limit N] | OHLCV candlesticks | | xlm dex-trades <pair> [--limit N] | Recent DEX trades | | xlm swap-quote <from> <to> <amount> | Best swap path between assets | | xlm stellar-asset <asset> | Asset info, supply, trustlines | | xlm stellar-account <address> | Account balances and signers | | xlm stellar-pools [--asset X] [--limit N] | Liquidity pool data | | xlm oracle-price <asset> [--feed crypto] | Reflector oracle prices | | xlm wallet | Your Stellar wallet address + balance | | xlm tools | List all 21 tools and prices | | xlm --help | Full help text |

Payment

Every paid tool call produces a real Stellar testnet transaction. The receipt shows at the bottom of the output:

Payment: $0.003 USDC · tx/a3f9c28d71e0... · stellar testnet

Verify any payment at stellar.expert/explorer/testnet.

Wallet

Your wallet is at ~/.xlmtools/config.json. The private key never leaves your machine. Check your balance:

xlm wallet

Fund with testnet USDC: visit faucet.circle.com, select Stellar, paste your wallet address.

Also available as

  • MCP server: claude mcp add xlmtools npx @xlmtools/mcp — for Claude Code, Cursor, Cline, VS Code Copilot, Windsurf, and 7+ other MCP hosts. Same wallet, same tools.
  • Agent Skill: pnpm dlx skills add github:Blockchain-Oracle/xlmtools --skill xlmtools — teaches agents when and how to use each tool.

Links


For contributors

This package provides two things:

  1. The xlm binary (standalone CLI) at dist/cli.js
  2. A createMcpServer() factory at dist/server.js — imported by @xlmtools/mcp to power the MCP stdio server

Development

pnpm dev:cli    # from monorepo root
# or
cd packages/cli && pnpm dev

Build

pnpm build

Key files

| File | Purpose | | --- | --- | | src/cli.ts | Standalone xlm binary — arg parsing, URL building, response printing | | src/server.ts | createMcpServer() factory — registers all 21 tools on a fresh McpServer | | src/lib/wallet.ts | Wallet creation, testnet auto-funding | | src/lib/api-fetch.ts | Shared fetch with X-XLMTools-Client header for stats attribution | | src/lib/budget.ts | Session budget cap (withBudget() wrapper) | | src/lib/cache.ts | 5-min response cache (withCache() wrapper) | | src/tools/*.ts | One file per tool — each calls server.registerTool(...) |

License

MIT