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

@shroud-fi/self-host-relayer

v0.1.3

Published

Self-hosted gasless sweep relayer service for ShroudFi — Fastify server that broadcasts EIP-7702 / ERC-2771 sweep transactions.

Readme

@shroud-fi/self-host-relayer

Self-hosted gasless sweep relayer service. Fastify server for EIP-7702 / ERC-2771 sweep broadcasts.

npm license: MIT

npm i @shroud-fi/self-host-relayer

What it does

@shroud-fi/self-host-relayer is a small Fastify HTTP server that operators can run to broadcast gasless sweep transactions for ShroudFi stealth addresses. It accepts signed authorizations from agents, broadcasts the on-chain tx, and returns a receipt.

This is the server-side counterpart to @shroud-fi/relayer. The reference deployment runs at https://api.shroudfi.live; this package lets you stand up your own.

Routes

| Route | Method | Purpose | |---|---|---| | /health | GET | Liveness — returns { ok: true, chainId }. | | /relay | POST | ERC-20 sweep via EIP-2612 permit + ERC-2771 metaTx. | | /relay-eth | POST | ETH sweep via EIP-7702 delegated authorization. |

Quick start

import { startServer } from '@shroud-fi/self-host-relayer';

await startServer({
  chainId: 8453,
  port: 8789,
  rpcUrl: process.env.BASE_RPC_URL!,
  relayerContract: '0x44f35ED32516AE8247aF5ec4ED5d5BEb501631d1',
  forwarderPrivateKey: process.env.FORWARDER_KEY! as `0x${string}`,
  allowedOrigins: ['https://your-dapp.example'],
  rateLimitPerMinute: 30,
});

Or use the production entry that reads everything from env:

node node_modules/@shroud-fi/self-host-relayer/dist/esm/prod-entry.js

Required env: SHROUDFI_RELAYER_CONTRACT, SHROUDFI_RELAYER_FORWARDER_KEY, SHROUDFI_RELAYER_RPC_URL, SHROUDFI_RELAYER_ORIGINS, SHROUDFI_RELAYER_CHAIN_ID, SHROUDFI_RELAYER_PORT. Optional: SHROUDFI_RELAYER_RATE_LIMIT, SHROUDFI_ETH_RELAYER_CONTRACT.

Deployment

A reference PM2 ecosystem config + droplet ops playbook ships with the source repo. The relayer is designed to run as a singleton fork — cluster mode would race on the forwarder EOA nonce.

Privacy invariants

  • The relayer never sees transfer amounts in plaintext — sweep authorizations encode the destination + token, not the amount; the contract reads balanceOf at execution.
  • No request logging by default. Set DEBUG_DIAGNOSTICS=1 only for local debugging.
  • Single-purpose forwarder EOA — should hold only the gas balance needed for sweep ops. Do not reuse with personal wallets.

License

MIT — see LICENSE.

Part of the ShroudFi privacy SDK for AI agents on Base.