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 🙏

© 2025 – Pkg Stats / Ryan Hefner

starknet-faucet

v1.0.16

Published

CLI tool to request testnet tokens from Starknet Sepolia faucet

Readme

Starknet Faucet

A command-line tool for requesting testnet tokens (ETH and STRK) on Starknet Sepolia. Built to simplify the developer experience when working with Starknet applications.

npm License: MIT Downloads

Why This Exists

While building on Starknet, I found myself constantly switching between terminal and browser to get testnet tokens. It disrupted my workflow and slowed down development. This tool brings the faucet directly to your terminal, where development happens.

Read more about the motivation behind this project

Features

  • Terminal-native: Request tokens without leaving your development environment
  • Dual token support: Get both STRK and ETH for Starknet Sepolia
  • Abuse protection: Proof of Work and CAPTCHA verification prevent bot abuse
  • Fast delivery: Tokens arrive in approximately 30 seconds
  • Transaction tracking: Direct explorer links to monitor your requests
  • Cross-platform: Works on Linux, macOS, and Windows

Installation

npm install -g starknet-faucet

The CLI will be available as the starknet-faucet command.

Usage

Request STRK tokens (default)

starknet-faucet request 0xYOUR_ADDRESS

Request ETH tokens

starknet-faucet request 0xYOUR_ADDRESS --token ETH

Request both tokens

starknet-faucet request 0xYOUR_ADDRESS --both

Check address status

starknet-faucet status 0xYOUR_ADDRESS

View faucet information

starknet-faucet info

Commands

request

Request tokens for a Starknet address.

Flags:

  • --token string - Token type: ETH or STRK (default: STRK)
  • --both - Request both ETH and STRK tokens
  • --json - Output in JSON format
  • --verbose, -v - Enable verbose logging
  • --api-url string - Custom faucet API URL

Example output:

$ starknet-faucet request 0x0223C87c0641e802a7DA24E68a46F8b0094F17762bf703284Bba99A7e62970D4

   ███████╗████████╗ █████╗ ██████╗ ██╗  ██╗███╗   ██╗███████╗████████╗    ███████╗ █████╗ ██╗   ██╗ ██████╗███████╗████████╗
   ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██║ ██╔╝████╗  ██║██╔════╝╚══██╔══╝    ██╔════╝██╔══██╗██║   ██║██╔════╝██╔════╝╚══██╔══╝
   ███████╗   ██║   ███████║██████╔╝█████╔╝ ██╔██╗ ██║█████╗     ██║       █████╗  ███████║██║   ██║██║     █████╗     ██║
   ╚════██║   ██║   ██╔══██║██╔══██╗██╔═██╗ ██║╚██╗██║██╔══╝     ██║       ██╔══╝  ██╔══██║██║   ██║██║     ██╔══╝     ██║
   ███████║   ██║   ██║  ██║██║  ██║██║  ██╗██║ ╚████║███████╗   ██║       ██║     ██║  ██║╚██████╔╝╚██████╗███████╗   ██║
   ╚══════╝   ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝   ╚═╝       ╚═╝     ╚═╝  ╚═╝ ╚═════╝  ╚═════╝╚══════╝   ╚═╝

                                         Made with love • Secured by PoW

═══════════════════════════════════════════════════════
  Quick Verification (helps prevent bot abuse)
═══════════════════════════════════════════════════════

  What is 2 + 2? 4

  ✓ Correct!

→ Requesting STRK for 0x0223C87c0641e802a7DA24E68a46F8b0094F17762bf703284Bba99A7e62970D4

✓ Challenge received
✓ Challenge solved in 0.1s (nonce: 277112)
✓ Transaction submitted!

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Amount:  10 STRK
  TX Hash: 0x469d165e...e01efede

  🔗 https://sepolia.voyager.online/tx/0x469d165e06ac3f1de87286ca240b13d81d3eab9b65f209f9720f853e01efede
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✓ Tokens will arrive in ~30 seconds.

status

Check if an address is in cooldown period.

starknet-faucet status 0xYOUR_ADDRESS

info

View faucet balance, distribution limits, and configuration.

starknet-faucet info

Distribution Limits

| Token | Amount per Request | Cooldown Period | |-------|-------------------|-----------------| | STRK | 10 STRK | 24 hours per address | | ETH | 0.01 ETH | 24 hours per address |

Rate limiting:

  • IP-based limits: 10 requests/hour, 20 requests/day
  • Address-based limits: 2 requests/hour, 5 requests/day

Security

The faucet implements multiple layers of protection:

  • Proof of Work: CPU-based challenge with difficulty 4
  • CAPTCHA verification: Human verification through interactive questions
  • Rate limiting: Both IP-based and address-based limits
  • Challenge expiration: 5-minute time-to-live on PoW challenges
  • Balance protection: Automatic shutdown at 5% remaining balance

API Health Check

To verify the faucet API is operational:

curl https://starknet-faucet-gnq5.onrender.com/api/v1/info

Sample response:

{
  "network": "sepolia",
  "limits": {
    "strk_per_request": "10",
    "eth_per_request": "0.02",
    "cooldown_hours": 24
  },
  "pow": {
    "enabled": true,
    "difficulty": 4
  },
  "faucet_balance": {
    "strk": "79.99",
    "eth": "0.05"
  }
}

Platform Support

Pre-built binaries are available for:

  • Linux (AMD64, ARM64)
  • macOS (Intel, Apple Silicon)
  • Windows (AMD64)

The npm package automatically downloads the correct binary for your platform during installation.

Technical Details

  • Built with Go 1.23+
  • Uses starknet.go v0.17.0
  • Backend API hosted on Render
  • Redis-based caching for rate limiting
  • Transaction tracking via Voyager

Contributing

Contributions are welcome. Please submit pull requests or open issues on GitHub.

License

MIT License - see LICENSE for details.

Links

  • npm package: https://www.npmjs.com/package/starknet-faucet
  • GitHub repository: https://github.com/Giri-Aayush/starknet-faucet
  • Developer: Aayush Giri

Built for developers who prefer staying in the terminal.