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

@droplinked_inc/web3

v3.0.0

Published

Per-shop EVM contract interactions for droplinked (shop deploy, product record, purchase signing, claim, airdrop). Hardened rebuild — replaces the hostile-published [email protected] by k3rn3lpanic.

Readme

@droplinked_inc/web3

Per-shop EVM contract interactions for droplinked: shop deployment, product recording, EIP-712 purchase signing + verification, claim, airdrop, ERC-20 token transfers.

This package replaces the hostile-published [email protected] (npm author k3rn3lpanic — the same identity that owns droplinked-payment-intent). Zero code is reused from the original; every export was re-implemented from the published .d.ts type surface and canonical Solidity signatures.

MOST security-critical package in the @droplinked_inc/* rebuild. Read THREAT_MODEL.md before any review.

Install

pnpm add @droplinked_inc/web3 @droplinked_inc/wallet-connection @droplinked_inc/web3-kit

@droplinked_inc/wallet-connection and @droplinked_inc/web3-kit are peer dependencies — they own the wallet protocol and the chain registry respectively. This package owns the contract-call surface.

Usage

Build a purchase call

import {
  DropWeb3,
  Network,
  Chain,
  ChainWallet,
  renderCallForConfirmation,
} from '@droplinked_inc/web3';

const web3 = new DropWeb3(Network.MAINNET);

const inst = web3.web3Instance({
  chain: Chain.POLYGON,
  preferredWallet: ChainWallet.Metamask,
  shopContractAddress: '0x...', // pinned at construction; never fetched
});

const call = inst.buildPurchaseCall(paymentDataFromBackend);

// SECURITY: always surface the canonical form before passing to a wallet.
const confirmation = renderCallForConfirmation(call);
console.log(confirmation.functionName, confirmation.argsJson);

// Then submit via @droplinked_inc/wallet-connection.

Verify a purchase signature (server-side)

import {
  ShopContract,
  verifyPurchaseSignature,
} from '@droplinked_inc/web3';

const shop = new ShopContract({ address: shopAddr, publicClient });
const onChainNonce = await shop.readPurchaseNonce(buyer);

await verifyPurchaseSignature({
  signature: signaturePayload,
  expectedSigner: buyer,
  onChainNonce,
});

Privileged actions

const call = inst.buildSetSignerCall(newSigner, {
  acknowledgePrivilegedAction: true, // required literal
});

Security model in one line

Every contract call goes through a typed client built from a known-good as const ABI. Selectors are computed structurally and cross-checked at module load. ERC-20 approve / permit / setApprovalForAll and NFT safeTransferFrom are explicitly on the KNOWN_DRAINER_SELECTORS list and are NEVER produced by this package.

Per-method security warnings

| Method | Warning | |---|---| | encodeErc20Transfer | Receiver address is taken at face value. Surface the address back to the user via renderCallForConfirmation before signing. | | buildSetSigner / buildSetManager | Privileged. Requires { acknowledgePrivilegedAction: true }. A compromised admin EOA that calls this rotates the signer to an attacker — operationally mitigated by hardware-wallet ownership of the admin key. | | encodeDroplinkedPurchase | The tokenAddress is taken at face value. Pin it via @droplinked_inc/web3-kit's registry, do not fetch from a runtime API. | | verifyPurchaseSignature | MUST be called server-side with a fresh on-chain nonce read. Caching the nonce defeats replay protection. | | buildPurchaseTypedData | Items are explicitly copied (no spread of caller input). The signed payload includes chainId, verifyingContract, shopAddress, nonce, and deadline. |

Reviewers

  • See THREAT_MODEL.md for the per-attack mitigation matrix (T1–T17).
  • See MIGRATION.md for the consumer mapping from [email protected].
  • A formal third-party security audit is recommended BEFORE the first consumer migration. Scope is documented at the bottom of THREAT_MODEL.md.

Status

v0.0.0 — initial rebuild. Not yet published to npm.