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

scanshield-js

v0.1.0

Published

ScanShield SDK — Rug-pull scanner for EVM tokens. 6 chains, $0.01/scan, 1s response.

Downloads

23

Readme

scanshield-js

Rug-pull scanner for EVM tokens. 6 chains. $0.01 per scan. 1-second response.

Prevents your trading bot from buying honeypots, rug-pulls, and high-tax traps.

Install

npm install scanshield-js

Quick Start

import { ScanShield } from "scanshield-js";

const client = new ScanShield({ apiKey: process.env.SCANSHIELD_API_KEY! });

// One-shot check
const result = await client.scan("0xdAC17F958D2ee523a2206206994597C13D831ec7", "eth");
console.log(result.status); // "SAFE" | "WARNING" | "DANGER" | "UNKNOWN"

// Strict gate for trading bots
if (await client.isSafe(tokenAddress, "base")) {
  // proceed with trade
}

// Throw if dangerous
await client.assertNotDanger(tokenAddress, "base");

What It Checks

| Check | Source | Detection | |---|---|---| | Honeypot | GoPlus | Is the token un-sellable? | | Mintable | GoPlus | Can the owner mint unlimited tokens? | | Buy/Sell Tax | GoPlus | Does the contract charge >10% tax? | | Liquidity | DexScreener | Is trading liquidity too low? | | Active Pairs | DexScreener | Are there any active trading pairs? |

Response Format

{
  token: string;          // 0x...
  chain: string;          // "1" | "8453" | "56" | ...
  status: "SAFE" | "WARNING" | "DANGER" | "UNKNOWN";
  details: string[];      // human-readable reasons
  liquidityUsd: number;
}

Status Semantics

| Status | Meaning | What your bot should do | |---|---|---| | SAFE | All checks passed | Proceed | | WARNING | Concerning but not fatal (mintable, low liquidity, medium tax) | Smaller position OR skip | | DANGER | Fatal (honeypot, zero liquidity, extreme tax) | Do not buy | | UNKNOWN | Upstream API failure — never silently SAFE | Skip or retry later |

The SDK never downgrades to SAFE on API failure. This is intentional: a bot that buys a honeypot because "the scanner was down" is worse than a bot that skips valid trades.

Supported Chains

| Alias | Chain ID | Name | |---|---|---| | eth, ethereum | 1 | Ethereum | | base | 8453 | Base | | bsc | 56 | BNB Smart Chain | | arbitrum | 42161 | Arbitrum One | | optimism | 10 | Optimism | | polygon | 137 | Polygon PoS |

You can also pass a raw chain ID string: client.scan(token, "42161").

Configuration

new ScanShield({
  apiKey: "ss_xxx",                    // Required
  baseUrl: "https://rugguard.online",  // Default
  timeoutMs: 10_000,                    // Default
  maxRetries: 2,                        // Default (retries on 5xx/429)
});

Error Handling

import { ScanShield, ScanShieldError } from "scanshield-js";

try {
  const result = await client.scan(token);
} catch (e) {
  if (e instanceof ScanShieldError) {
    // API error (4xx/5xx) or invalid input
    console.error(e.status, e.message, e.details);
  } else {
    // Network / timeout
  }
}

Pricing

  • Pilot (current): Free API keys via DM. 100 scans/month.
  • Production: $0.01 per scan via Virtuals Protocol ACP.

Examples

See examples/:

  • pre-trade-check.ts — Gate before executing a trade

Links

  • Homepage: https://rugguard.online
  • API: https://rugguard.online/api/v1/scan
  • Source: https://github.com/blazethrottle/Agent-Eco-Biz
  • Virtuals Protocol ACP: https://app.virtuals.io/acp

License

MIT