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

@x402janus/sdk

v0.1.1

Published

TypeScript SDK for x402janus wallet security scans with automatic x402 micropayment handling

Readme

@x402janus/sdk

Wallet security for AI agents. One API call. Forensic wallet analysis. Deterministic risk score.

x402-native — no API keys, no accounts. Your agent pays per scan with USDC on Base.

Install

npm install @x402janus/sdk

Quick Start

import { JanusClient } from "@x402janus/sdk";

const janus = new JanusClient({
  privateKey: process.env.PRIVATE_KEY, // Agent wallet key
});

const result = await janus.scan("0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18");

if (result.safe) {
  // proceed with transaction
} else {
  console.log("Blocked:", result.findings);
  console.log("Revoke txs:", result.revokeTxs);
}

How Payment Works

  1. Your agent calls janus.scan(address)
  2. The SDK hits the x402janus API, which returns HTTP 402 with payment requirements
  3. The SDK signs an EIP-3009 TransferWithAuthorization for the required USDC amount
  4. The signed payment is sent in the X-PAYMENT header on retry
  5. The Thirdweb facilitator verifies and settles USDC on Base
  6. Scan results are returned

Your agent needs:

  • A private key (for signing — never sent to the API)
  • USDC on Base (for scan payments)

API

new JanusClient(config?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | privateKey | string | process.env.PRIVATE_KEY | Agent wallet private key | | baseUrl | string | https://x402janus.com | API endpoint | | defaultTier | "quick" \| "standard" \| "deep" | "quick" | Default scan tier |

janus.scan(address, options?)

Scan a wallet for security risks.

const result = await janus.scan("0x...", { tier: "deep" });
// result: { scanId, safe, risk, findings, revokeTxs }

janus.approvals(address)

List active token approvals with risk assessment.

janus.revoke(address)

Get pre-built revoke transactions for dangerous approvals.

janus.health()

Check API health status.

Scan Tiers

| Tier | Price | Response Time | Coverage | |------|-------|---------------|----------| | quick | $0.01 | <3s | Deterministic risk score, approval list | | standard | $0.05 | <10s | + AI threat analysis | | deep | $0.25 | <30s | + Full graph analysis, drainer fingerprinting |

Types

All types are exported with Zod schemas for runtime validation:

import { ScanResult, ScanResultSchema, Finding, RevokeTx } from "@x402janus/sdk";

License

MIT