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

@mik3fly-lab/rektradar-sdk

v0.1.7

Published

Official SDK for the RektRadar API - Ethereum scam & rug-pull detection (token risk scores, flags, live rug feed, webhooks).

Downloads

1,104

Readme

RektRadar SDK — Ethereum scam & rug-pull detection API

npm version types: included license: MIT

Score any Ethereum token for rug pulls, honeypots and scams in one call — and get pushed an imminent_rug event the moment a rug is sitting in the mempool, before it mines. The official TypeScript SDK for the RektRadar API.

npm install @mik3fly-lab/rektradar-sdk
import { RektRadar } from "@mik3fly-lab/rektradar-sdk";

const rr = new RektRadar(); // no key needed to start

const { score, flags } = await rr.token("0xTOKEN");
if (score >= 70) blockTrade(flags); // 0-100 risk, real-time, for everyone

That's the whole thing. It works anonymously on the free tier; a key unlocks the real-time activity flows. Get an API key →

Why RektRadar, not a honeypot checker

A plain "is this a honeypot" simulation is commoditized and free everywhere. RektRadar exposes the proprietary intel a sandbox can't see:

  • imminent_rug — the rug detected in the mempool, seconds before it lands on chain. The one signal that actually saves a trade.
  • Deployer graph & funding clusters — who deployed the token, who funded them, and which other scams they are tied to (on-chain graph + shared bytecode).
  • Rug forensics — liquidity pulls, holder distribution, drainer-kit bytecode matches: 100+ flags across 7 analyzers, the same engine that powers rektradar.io.

Who it's for

| You build | You call | |---|---| | a trading bot | gate every buy on rr.token(addr).score | | a wallet / dapp | warn on rr.tokenFull(addr) before a swap | | a Telegram / Discord bot | stream imminent_rug + rug to a channel | | a launchpad / scanner | subscribe to a token.high_risk webhook |

The model: delay is the paywall

  • Targeted lookups (token, tokenFull) are real-time for everyone.
  • The recent-activity flow (rugs, recent) is delayed ~10 min on a free key and real-time on a paid key. Each flow response carries dataDelaySeconds (0 = real-time, 600 = delayed).
const { rugs, dataDelaySeconds } = await rr.rugs({ since: "7d" });
console.log(`fresh as of ${dataDelaySeconds}s ago`, rugs.length);

Real-time API access is included from the Basic plan up — see pricing & quotas.

REST methods

| Method | Returns | Freshness | |---|---|---| | rr.token(address) | risk score + flags | real-time | | rr.tokenFull(address) | verdict + liquidity + holders | real-time | | rr.rugs({ since }) | recent rug pulls | delayed (free) / live (paid) | | rr.recent() | recent analyses feed | delayed (free) / live (paid) | | rr.topDeployers(limit) | top scam deployers | real-time | | rr.trends({ period, granularity }) | scam pools / analyses over time | daily/weekly live; hourly delayed (free) / live (paid) |

// new scam pools per day over the last week
const { trends } = await rr.trends({ period: "7d", granularity: "daily" });
// the live hourly pulse (current hour withheld on the free tier)
const pulse = await rr.trends({ period: "6h", granularity: "hourly" });

Errors throw a RektRadarError with a numeric .status.

Live stream

import { connectStream } from "@mik3fly-lab/rektradar-sdk";
import WebSocket from "ws"; // Node only; browsers use the global WebSocket

const handle = connectStream({
  apiKey: process.env.REKTRADAR_KEY,
  events: ["new_token", "imminent_rug", "rug"],
  WebSocket,
  onMessage: (e) => console.log(e.type, e.data),
});
// handle.close();

Stream events: connected (ack on open), new_token, token_scored, score_update, imminent_rug (a pending rug seen in the mempool, before it mines), and rug (liquidity pulled). Full schema (AsyncAPI 3.0): https://api.rektradar.io/v1/stream-docs.

Webhooks

RektRadar signs deliveries with X-RektRadar-Signature: sha256=<hmac>. Verify with the raw request body (server-side):

import { verifyWebhook } from "@mik3fly-lab/rektradar-sdk";

const ok = verifyWebhook(rawBody, req.header("X-RektRadar-Signature") ?? "", SECRET);
if (!ok) return res.sendStatus(401);

Configuration

new RektRadar({
  apiKey: "rr_live_...",               // optional (anonymous = free, delayed)
  baseUrl: "https://api.rektradar.io", // optional override
  fetch: customFetch,                  // optional (Node <18 / custom runtimes)
});

Links

License

MIT