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

faucet-server

v0.0.7

Published

A configurable EVM faucet server that dispenses testnet/devnet tokens with Prosopo captcha protection. Supports multiple chains and deploys to Cloudflare Workers or Node.js.

Readme

Faucet Server

A configurable EVM faucet server that dispenses testnet/devnet tokens with Prosopo captcha protection. Supports multiple chains and deploys to Cloudflare Workers or Node.js.

Quick Start

Run a local faucet server with a single command:

npx faucet-server serve --port 3000

Or install globally:

npm install -g faucet-server
serve --port 3000

For local development without internet (disables captcha verification):

npx faucet-server serve --port 3000 --no-captcha

Configure via environment variables:

# Required: Prosopo captcha keys (get from https://prosopo.io/)
export PROSOPO_SITE_PRIVATE_KEY=your_secret_key
export VITE_PROSOPO_SITE_KEY=your_site_key

# Required: Wallet with funds to dispense
export FAUCET_PRIVATE_KEY=0x...your_wallet_private_key

# Required: Configure chains (format: amount_in_wei:rpc_endpoint)
export CHAIN_31337=10000000000000000:http://localhost:8545
export CHAIN_11155111=10000000000000000:https://eth-sepolia.g.alchemy.com/v2/KEY

Then access the faucet at: http://localhost:3000?chainId=31337&address=0x...

Features

  • 🔗 Multi-chain support — Configure any EVM chain via environment variables
  • 🤖 Bot protection — Integrated Prosopo captcha verification
  • 🚀 Multiple deployment targets — Cloudflare Workers or Node.js
  • Modern stack — Svelte frontend, Hono API server, Viem for transactions
  • 📦 Monorepo architecture — Clean separation of frontend, server, and platform concerns
  • 🔧 Development mode — Disable captcha for localhost testing without internet

Development

Want to contribute or customize the faucet? Follow the development setup below.

Prerequisites

  • Node.js >= 18
  • pnpm >= 8
  • A Prosopo account with site keys (sign up)
  • An EVM wallet with funds for the faucet

Installation

# Clone the repository
git clone https://github.com/wighawag/faucet.git
cd faucet

# Install dependencies
pnpm install

Configuration

Environment Variables

The faucet requires configuration via environment variables. Copy the example files and fill in your values:

Frontend (packages/frontend/.env):

VITE_PROSOPO_SITE_KEY=your_prosopo_site_key

Server (choose your platform):

For Node.js (platforms/nodejs/.env):

PROSOPO_SITE_PRIVATE_KEY=your_prosopo_secret_key
FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
CHAIN_31337=10000000000000000:http://localhost:8545

# Optional: Disable captcha for localhost development (or use --no-captcha flag)
DISABLE_CAPTCHA=true

For Cloudflare Workers (platforms/cf-worker/.dev.vars):

PROSOPO_SITE_PRIVATE_KEY=your_prosopo_secret_key
FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
CHAIN_31337=10000000000000000:http://localhost:8545

# Optional: Disable captcha for local development
DISABLE_CAPTCHA=true

Chain Configuration

Chains are configured using the CHAIN_<CHAIN_ID> environment variable format:

CHAIN_<CHAIN_ID>=<amount_in_wei>:<rpc_endpoint>

Examples:

# Local development (anvil/hardhat)
CHAIN_31337=10000000000000000:http://localhost:8545

# Sepolia testnet (0.01 ETH)
CHAIN_11155111=10000000000000000:https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY

# Multiple chains
CHAIN_421614=10000000000000000:https://sepolia-rollup.arbitrum.io/rpc

Running Locally

Start the full development environment using Zellij:

pnpm start

Or run individual services:

# Frontend only
pnpm frontend:dev

# Server only (Node.js)
pnpm nodejs:dev

# Server only (Cloudflare Workers)
pnpm cf-worker:dev

Building

# Build everything
pnpm build

# Build frontend only
pnpm build:frontend

# Build server only
pnpm build:server

Deployment

Cloudflare Workers

  1. Configure your wrangler.toml
  2. Set secrets in Cloudflare dashboard or via CLI:
    wrangler secret put PROSOPO_SITE_PRIVATE_KEY
    wrangler secret put FAUCET_PRIVATE_KEY
  3. Deploy:
    pnpm deploy:cf

Node.js

Build and run the Node.js server:

pnpm build
cd platforms/nodejs
node dist/cli.js

Usage

Users access the faucet via URL with query parameters:

https://your-faucet.example.com?chainId=11155111&address=0x...

Query Parameters: | Parameter | Description | Example | |-----------|-------------|---------| | chainId | Target chain ID | 11155111 (Sepolia) | | address | Recipient wallet address | 0x742d35Cc6634C0532925a3b844Bc9e7595f... |

API Reference

POST /api/claim

Request funds from the faucet.

Request Body:

{
  "token": "prosopo_captcha_token",
  "chainId": "11155111",
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f..."
}

Success Response:

{
  "success": true,
  "txHash": "0x..."
}

Error Response:

{
  "error": "Error message"
}

Project Structure

faucet/
├── packages/
│   ├── frontend/          # Svelte SPA with captcha integration
│   └── server/            # Hono API server (platform-agnostic)
├── platforms/
│   ├── cf-worker/         # Cloudflare Workers deployment
│   └── nodejs/            # Node.js deployment
└── package.json           # Root workspace config

Tech Stack

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT