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

pi-venice-stats

v0.2.1

Published

Live Venice Protocol stats dashboard for Pi Coding Agent

Readme

pi-venice-stats

Live Venice Protocol stats dashboard for Pi Coding Agent.

A Pi extension that renders a real-time stats widget below the editor, polling protocol KPIs, DEX data, social signals, and your wallet from venicestats.com.

Quick start

pi install npm:pi-venice-stats

Or load directly:

pi -e npm:pi-venice-stats

Set your API keys before starting Pi:

export VENICE_ADMIN_API_KEY="your-venice-admin-key"  # Admin key required — Inference keys won't work
export VENICE_WALLET="0x<your-address>"               # wallet stats (or set via /venice-stats-wallet)

Presets

Switch layouts with /venice-stats-preset [off|usage|wallet|max]. Default is max.

max — full two-column box-drawing grid:

┌──────────────────────────────────────────────────────────────┬──────────────────────────────────────┐
│ VVV $8.07 ▁▃▅▇▅▃ ↓4.2% 24h         DIEM $1060.79 ▂▄▆▄ ↑1.2%  │ SYSTEM                               │
│ MCap $371.8M · Ranked #117 · FDV $399M   MCap $40.1M          │ EDT 17:25:14 · next epoch 2h 34m 45s │
├──────────────────────────────────────────────────────────────┼──────────────────────────────────────┤
│ VVV STAKING                                                  │ BALANCE                              │
│ Staked 67.7% @ 18.2% APR   Locked 12.1%   Cooldown 1,234     │ $0.14 USD · DIEM 0.806/4.962 used    │
├──────────────────────────────────────────────────────────────┼──────────────────────────────────────┤
│ DIEM ANALYTICS                                               │ WALLET                               │
│ DIEM Supply 38.1k   Mint Rate 709 sVVV   Target Δ −70   Staked 64.2% │ 0x4486...80bc  Patrician Octopus │
├──────────────────────────────────────────────────────────────┤ Portfolio $26.7K   Rank #465/14.5k   │
│ 24H MARKET                                                   │ ⎿ sVVV 3,303   Pending 0.12 VVV      │
│ Vol $5.0M ↓19.6%   Traders 1,683 ↑42%   Swaps 10.2k          │ PROTOCOL EXPOSURE                    │
│ Buy/Sell 48/52%   Net Flow +228k VVV (7d)   Top: VVV/WETH    │ ▁▂▃▄▅▆▇█ $31.9K ↑14% 30d             │
└──────────────────────────────────────────────────────────────┴──────────────────────────────────────┘

wallet — prices + compact wallet, 5-row grid:

┌──────────────────────────────────────────────────────────────┬──────────────────────────────────────┐
│ VVV $8.07 ▁▃▅▇▅▃ ↓4.2% 24h         DIEM $1060.79 ▂▄▆▄ ↑1.2%  │ SYSTEM                               │
│ MCap $371.8M · Ranked #117 · FDV $399M   MCap $40.1M          │ EDT 17:25:14 · next epoch 2h 34m 45s │
├──────────────────────────────────────────────────────────────┼──────────────────────────────────────┤
│ WALLET  0x4486...80bc  Patrician Octopus  Rank #465/14.5k    │ BALANCE                              │
│ ⎿ Portfolio $26.7K  sVVV 3,303  Pending 0.12 VVV             │ $0.14 USD · DIEM 0.806/4.962 used    │
└──────────────────────────────────────────────────────────────┴──────────────────────────────────────┘

usage — right-aligned clock + balance, no borders:

                                    EDT 17:25:14 · next epoch 2h 34m 45s
                                              $0.14 USD · DIEM 0.806/4.962 used

off — widget hidden entirely.

Clock overlay

Shown in the SYSTEM and BALANCE sections. When VENICE_ADMIN_API_KEY is set:

  • SYSTEMTZAbbrev HH:MM:SS · next epoch Xh YYm ZZs
  • BALANCE$X.XX USD · DIEM X/Y used (turns red when exhausted)

DIEM precision scales dynamically:

| State | Decimal places | Example | |---|---|---| | Exhausted (balance = 0) | 2, all red | DIEM 4.96/4.96 used | | allocation or remaining ≥ 1000 | 0 | DIEM 1200/5000 used | | allocation or remaining ≥ 100 | 1 | DIEM 123.4/500.0 used | | allocation or remaining ≥ 10 | 2 | DIEM 8.12/10.00 used | | allocation or remaining < 10 (≥ 1) | 3 | DIEM 0.812/4.961 used | | allocation or remaining < 1 | 4 | DIEM 0.4375/0.9615 used |

USD always shows 2 decimal places. When USD or DIEM balance rounds to zero, that value turns red.

Dashboard panels

| id | Label | What it shows | Data source | |----|-------|---------------|-------------| | prices | Prices | VVV + DIEM prices with sparklines, change %, MCap, CoinGecko rank, FDV | /api/metrics, /api/charts, /api/social | | staking | VVV Staking | Staking ratio, APR, locked %, cooldown sparkline + count | /api/metrics, /api/charts | | diem | DIEM Analytics | Supply, mint rate, target delta (signed distance from 38k target), staked gauge | /api/metrics | | markets | 24H Market | Volume, traders, swaps (with arrow change indicators), buy/sell, net flow, top pool | /api/markets | | wallet | Wallet | Address, venetian name, portfolio (sVVV+VVV+rewards+cooldown), rank, protocol exposure sparkline | /api/venetians, /api/wallet-history |

Health-driven polling — polls /api/health every ~90 s and fetches a data source only when its pipeline has actually updated. Rate is naturally throttled by upstream update frequency.

Multi-session warning — only the first pi session to start renders the widget. Others display an info notice and make no requests. If the widget isn't showing because a previous session didn't release the lock, restart Pi.

Slash commands

See VENICE_STATS_COMMANDS.md for the full command reference (preset, wallet, time, sparkline periods).

MCP integration

Pair this with the @venicestats/mcp-server to give the Pi agent 18+ callable tools for deep protocol analytics — price history, staking, wallet intelligence, insider flow, tokenomics, and more.

1. Install the MCP adapter:

pi install npm:pi-mcp-adapter

2. Add the venicestats server to your Pi config (~/.pi/agent/mcp.json or $XDG_CONFIG_HOME/.pi/agent/mcp.json):

{
  "mcpServers": {
    "venicestats": {
      "command": "npx",
      "args": ["-y", "@venicestats/mcp-server@latest"],
      "lifecycle": "eager"
    }
  }
}

Restart Pi. The agent can now answer questions like:

What's the current VVV price?
Who are the top 10 stakers?
Show me insider trading activity this week.
How has the staking ratio trended over 90 days?

API endpoint reference

Detailed documentation for all 17+ venicestats.com API endpoints (field names, params, response shapes) is in src/VENICE_STATS_ENDPOINTS.md.

License

Apache-2.0