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

@zoza/shield

v0.1.0

Published

Zoza Shield SDK. Decode wallet calldata (Permit2, approve, setApprovalForAll, multicall), assess EIP-712 signatures for drain risk, check URLs against the phishing registry. EVM + Solana + Tron + BTC — catches the 2024/25/26 drainer playbook.

Downloads

11

Readme

@zoza/shield

Server-side wallet-security toolkit. Decode EVM calldata, score EIP-712 signature requests for drainer risk, check URLs against the phishing registry. The same engine powers the Zoza Shield browser extension — this is it as an HTTP API.

npm license

Install

npm install @zoza/shield

Who uses this

  • Exchanges calling decode() before relaying user-signed transactions — reject approve UNLIMITED to unknown spenders automatically.
  • Wallet providers wrapping their RPC proxy — pre-warn users on Permit2 drainer patterns before the signature prompt.
  • Anti-fraud pipelines feeding every inbound eth_signTypedData_v4 through assessSignature() for domain-mismatch detection.
  • Any backend that stores dApp URLs — run checkURL() on incoming referrers.

Quick start

import { ShieldClient } from '@zoza/shield';

const shield = new ShieldClient({ apiKey: process.env.ZOZA_SHIELD_KEY! });

// 1. Decode calldata before relaying
const decoded = await shield.decode({
  calldata: '0x095ea7b3000000000000000000000000...', // approve(spender, MAX_UINT256)
  chain: 'eth',
  origin: 'https://app.uniswap.org',
});
if (decoded.decoded?.risk === 'critical') {
  // reject, or require an out-of-band confirmation step
}

// 2. Score a signature request
const risk = await shield.assessSignature({
  typed_data: userSuppliedEIP712,
  origin: 'https://example.com',
});
if (risk.signature.domainOriginMismatch) {
  // the domain the signature targets doesn't match the page — almost certainly a drain
}

// 3. Check an arbitrary URL
const site = await shield.checkURL({ url: 'https://uniswap-v3-claim.xyz' });
if (site.action === 'block') return res.status(403).send(site.warning);

API

new ShieldClient({ apiKey, apiUrl?, fetch? })

| Option | Type | Notes | |---|---|---| | apiKey | string (required) | Issued at zoza.world/developers/shield. Format shd_<base64>. | | apiUrl | string | Default https://shield-api.zoza.world. | | fetch | typeof fetch | Optional — needed on Node <18 or custom request signers. |

shield.decode({ calldata, chain?, origin? })

Decodes EVM calldata. Returns { decoded, site_status, chain }.

shield.assessSignature({ typed_data, origin?, chain? })

Scores an EIP-712 signature request. Catches Permit / Permit2 / PermitForAll patterns + domain-mismatch attempts.

shield.checkURL({ url })

Public phishing-registry lookup. Returns { status, action, warning? }.

shield.getSurveillanceRegistry()

Public: the Shield v3 covert-data-collection vendor list.

shield.getKeyInfo()

Your plan, daily quota, and usage today.

Chain support

EVM: Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, Fantom. Solana + Tron + Bitcoin are handled by the browser extension's in-wallet hooks; the HTTP API is calldata-decoder only.

Tests

npm install
npm test

Mocked-fetch unit tests. No live network needed.

License

MIT © Zoza