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

@metera/sdk

v0.6.0

Published

Verified data for AI agents — every datum carries a verification block (level, source, cost, traceId)

Readme

@metera/sdk — verified data for AI agents

Metera answers questions from measured data feeds and returns the datum with a verification blocklevel, source, cost, traceId. Your agent decides programmatically whether to trust the value from level alone. When no source measures the question, Metera says so instead of inventing an answer.

This is not another API proxy: the same datum from two sources only counts as consensus when they are measured to be independent, and a value backed by an on-chain truth is anchored. The level is the product.

Verification levels (read this first)

  • anchored — agreed with an on-chain / authoritative truth (e.g. a Pyth price). Highest trust.
  • consensus — ≥3 independently measured providers agree. High trust; no single source can forge it.
  • single_source — one provider, or providers not yet proven independent. Use it, but know it is unconfirmed.

Get a key at your Metera dashboard. mk_live_… charges credits; mk_test_… returns a fixture with the same verification block, charges nothing, and calls no paid source — integrate for free, flip the prefix to go live.


Path 1 — curl

curl https://api.metera.xyz/v1/ask \
  -H "Authorization: Bearer $METERA_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"SOL price"}'
{
  "status": "delivered",
  "data": { "token": "SOL", "priceUsd": 172.46, "asOf": 1785761476113 },
  "verification": { "level": "anchored", "source": "kraken", "cost": "0.0015", "traceId": "tr_dr29wv" }
}

Direct canonical call (no LLM): POST /v1/get_data { "type": "token.price", "params": { "token": "BTC" } }. Catalog: GET /v1/types → every type with its maxLevel and the capReason when it cannot exceed single_source.

Path 2 — SDK

npm install @metera/sdk
import { Metera } from '@metera/sdk'

const metera = new Metera(process.env.METERA_KEY)
const { data, verification } = await metera.ask('SOL price')

console.log(data.priceUsd, verification.level, verification.source)
// 172.46 anchored kraken

verification is always present on a delivered answer. A non-delivered answer (no source, refused below level, missing identifier) throws MeteraError — never a fabricated value. Also: metera.getData(type, params) and metera.listTypes().

Path 3 — MCP (Claude Code, or any MCP client)

claude mcp add --transport http metera https://api.metera.xyz/mcp \
  --header "Authorization: Bearer $METERA_KEY"

Then ask your agent for "the SOL price via metera" — it calls the ask tool and gets back the datum with its verification block. Tools: ask, get_data, list_types. Every tool result carries the same verification block as the HTTP API.


Local development

Point any path at a local server with the base URL:

const metera = new Metera(process.env.METERA_KEY, { baseUrl: 'http://localhost:3001' })

curl → http://localhost:3001/v1/ask; MCP → claude mcp add --transport http metera http://localhost:3001/mcp --header "Authorization: Bearer $METERA_KEY".

The hosted MCP is served from the main domain — https://api.metera.xyz/mcp — no separate host.