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

orion-ai-cli

v0.1.3

Published

Agentic DeFi CLI for Solana — inspect wallets, fetch transactions, and run on-chain analysis from your terminal.

Readme

 ██████  ██████╗ ██╗ ██████╗ ███╗   ██╗
██╔═══██╗██╔══██╗██║██╔═══██╗████╗  ██║
██║   ██║██████╔╝██║██║   ██║██╔██╗ ██║
██║   ██║██╔══██╗██║██║   ██║██║╚██╗██║
╚██████╔╝██║  ██║██║╚██████╔╝██║ ╚████║
 ╚═════╝ ╚═╝  ╚═╝╚═╝ ╚═════╝ ╚═╝  ╚═══╝

Orion

Agentic DeFi CLI for Solana. Ask questions in plain English — Orion plans, fetches live chain data, and returns grounded answers in your terminal.

Install

npm install -g orion-ai-cli

Then launch:

orion

First launch runs a short onboarding to configure your model backend and Solana cluster.

Setup

Copy .env.example to .env and fill in what you have:

OLLAMA_BASE_URL=https://ollama.com          # or http://localhost:11434 for local
OLLAMA_API_KEY=your_key                     # required for Ollama Cloud
OLLAMA_MODEL=gemma4:31b-cloud

SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_NETWORK=devnet

SOLSCAN_API_KEY=your_key                    # optional, unlocks richer snapshots

Settings are persisted in ~/.orion/config.env after onboarding.

What it does

  • Inspects wallets, accounts, token accounts, transaction signatures, and programs
  • Plans multi-step prompts and executes each step with live progress markers
  • Falls back gracefully from Solscan → RPC when keys are missing
  • Watches accounts and signatures in the background across restarts
  • Runs small read-only Solana code snippets for verification
  • Maintains full session context — follow-up questions resolve references like "that wallet", "those errors", or "the program we discussed" without repeating yourself
  • Wallet and transaction data is session-scoped and cleared on restart

Terminal UI

The interactive terminal shows real-time step progress as Orion works:

⏺ Classifying target as a wallet address  [1/3]
  ⎿  address  AbNZmD3ffemMzGo3xiaXzTJf7yb7odqc75pAsMWVWHbq
     network  devnet
⏺ Fetching Solscan account snapshot  [2/3]
  ⎿  source  Solscan Pro
     balance  0.004994399 SOL
     signatures  10 retrieved
⏺ Summarizing snapshot  [3/3]
  ⎿  model  gemma4:31b-cloud
     mode  rpc snapshot

Results that are key-value structured render as a summary panel:

┃ ⬡ [ SUMMARY ]
┃ ──────────────────────────────────────────────
┃ Address        AbNZmD3ffemMzGo3xiaXzTJf7yb7odqc75pAsMWVWHbq
┃ Owner                                   System Program
┃ Balance                             0.004994399 SOL
┃ Executable                                    false

Session context

Orion tracks everything discussed in the current session. Follow-up prompts work without repeating addresses or context:

analyze this wallet AbNZmD3ffemMzGo3xiaXzTJf7yb7odqc75pAsMWVWHbq
get last 5 transactions          ← resolves to the wallet above
what does that error mean?       ← resolves to the error in the summary
compare it with the other wallet ← resolves both wallets from history

All session context is cleared when you restart Orion.

Slash commands

| Command | What it does | |---|---| | /status | Show session state, model, network, wallet | | /models | List available Ollama models | | /cluster devnet\|testnet\|mainnet | Switch Solana network | | /rpc | Show current RPC endpoint | | /rpc call <method> [params] | Raw RPC call | | /rpc set <url> | Set a custom RPC URL | | /wallet create | Generate a new keypair | | /wallet select <address> | Set active wallet | | /wallet balance [address] | Check SOL balance | | /portfolio [address] | Show token portfolio | | /account <address> | Inspect an account | | /tx <signature> | Decode a transaction | | /sigs <address> [limit] | Recent signatures | | /program <programId> | Inspect a program | | /fees [address...] | Estimate fees | | /tasks | List background tasks | | /task-status <id> | Check task status | | /resume <id> | Resume a paused task | | /cancel <id> | Cancel a task | | /exec [js\|file] | Run a Solana snippet | | /run <command> | Run a shell command | | /patch <file> | Apply a file patch | | /read <path> | Read a file | | /voice <text> | Speak output | | /help | List all commands |

Example prompts

analyze this wallet AbNZmD3ffemMzGo3xiaXzTJf7yb7odqc75pAsMWVWHbq
get the last 5 transactions
tell me about this signature 5cVXhg...jSnA
watch this wallet and alert me if the balance changes
compare this wallet across devnet and mainnet
what is a token account?
what does that InstructionError mean?

HTTP mode

For scripting and automation:

orion --serve
curl -s http://127.0.0.1:8787/ask \
  -H 'content-type: application/json' \
  -d '{"prompt":"analyze this wallet AbNZmD3ffemMzGo3xiaXzTJf7yb7odqc75pAsMWVWHbq"}'

Set ORION_PORT to change the port.

Web search

Orion can search the web to ground answers in current documentation and public facts. By default it uses DuckDuckGo. To use Google Search, add two keys to your .env:

GOOGLE_API_KEY=your-google-api-key
GOOGLE_CSE_ID=your-custom-search-engine-id

Get them at console.cloud.google.com (enable Custom Search API) and programmablesearchengine.google.com (create a search engine set to "Search the entire web").

Coming soon

  • Telegram integration — run Orion as a Telegram bot, ask questions and get on-chain analysis directly in chat
  • Web search upgrades — richer search with source ranking, multi-query synthesis, and citation display

Notes

  • Restart Orion after editing .env
  • Watch tasks survive restarts and resume automatically
  • Context window usage is shown live in the header bar
  • SOLSCAN_API_KEY unlocks token balances, DeFi positions, and richer transaction detail
  • Session context (wallet addresses, transactions, history) is cleared on each restart