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

mastra-gate402

v0.2.0

Published

Mastra tools for Gate402: pay-per-call GPU/CPU compute + open-model LLM inference, plus Base market data (token-risk, DEX, momentum, launches, best-swap, onchain), over x402 (USDC). No API keys — the agent pays the 402.

Readme

mastra-gate402

Mastra tools for Gate402 — pay-per-call GPU/CPU compute + open-model LLM inference, plus Base market data, over x402 (USDC). No vendor API keys: the agent pays the HTTP 402, and a free-tier key is auto-claimed on first use.

Install

npm install mastra-gate402

Use

import { Agent } from '@mastra/core/agent';
import { gate402Tools } from 'mastra-gate402';

export const defiAgent = new Agent({
  id: 'defi-agent',
  name: 'DeFi Agent',
  instructions: 'Vet Base tokens before acting: check risk, liquidity, and momentum.',
  model: 'openai/gpt-5.5',
  tools: { ...gate402Tools }
});

Or import individual tools:

import { gate402TokenRisk, gate402Infer } from 'mastra-gate402';

Tools

| Tool | What it does | |---|---| | gate402_compute | Rent metered GPU/CPU to run a container job, per-second; signed execution receipt | | gate402_token_risk | Rug/tradeability verdict + live honeypot sim for a Base token | | gate402_dex | Live DEX price / liquidity / 24h volume | | gate402_momentum | Momentum + order-flow signal | | gate402_best_swap | Best pool + estimated price impact for a trade size | | gate402_onchain | Wallet/token intel (balances, EOA/contract, tx count) | | gate402_launches | Freshest Base token launches | | gate402_infer | Per-token open-model LLM inference (Llama 3.1 / Qwen / mistral-small) |

Config (optional)

| Env | Default | Purpose | |---|---|---| | GATE402_API_KEY | (auto free tier) | Funded Gate402 account key to skip the free tier | | GATE402_BASE_URL | https://gate402.app | Override the gateway |

Each tool is a pay-per-call Gate402 endpoint settled over x402 (USDC on Base) — the payment is the auth. Full catalog: https://gate402.app/v1.

MIT.