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

@winsznx/create-citrea-dapp

v0.1.4

Published

Scaffold a Citrea ₿app with one command — Hardhat or Foundry, secure key management, optional Next.js frontend

Downloads

71

Readme

create-citrea-dapp

Scaffold a Citrea ₿app with one command — Hardhat or Foundry, secure key management, optional Next.js frontend.

npx @winsznx/create-citrea-dapp

placeholder: terminal recording goes here

What you get

A complete, ready-to-deploy Citrea project, pre-configured for mainnet and testnet.

  • Choice of framework: Hardhat 3 (TypeScript + configVariable keystore) or Foundry (forge + cast wallet keystore)
  • Secure key management by default: encrypted keystores, zero plaintext keys, zero .env files with secrets
  • Optional Next.js frontend: App Router + wagmi v2 + RainbowKit + Tailwind, with Citrea mainnet & testnet chain configs
  • Sample Counter contract: auditable in 30 seconds, full test suite, event emission, revert paths
  • Pre-configured networks: chain IDs, RPCs, explorer URLs, bridge links — all ready to go
  • forge-std auto-installed if Foundry is on PATH

Quick start

npx @winsznx/create-citrea-dapp

The CLI asks 4 questions:

  1. Project name
  2. Framework — Hardhat or Foundry
  3. Include frontend? — Yes (Next.js + wagmi + RainbowKit) or No (contracts only)
  4. Network — Both, Mainnet only, or Testnet only

Then it scaffolds the project, installs dependencies, and prints the exact commands to set up your wallet and deploy.

Why this exists

Citrea launched mainnet on January 27, 2026 — the first ZK rollup on Bitcoin with BitVM-based trust-minimized bridging. But the developer ecosystem has critical onboarding gaps:

  • No official CLI scaffold. Base has create-base-app, Arbitrum has the Orbit CLI, Stacks has clarinet. Citrea has nothing.
  • Docs show plaintext keys. The official Hardhat guide literally recommends accounts: ["YOUR_PRIVATE_KEY"] in config — the #1 pattern Cyfrin warns against.
  • No Foundry support. Official docs only cover Hardhat and Remix.
  • No frontend guide. No wagmi chain config published anywhere for Citrea.

This tool fixes all of it in one command.

Network reference

| | Mainnet | Testnet | |--|---------|---------| | Chain ID | 4114 | 5115 | | RPC | https://rpc.mainnet.citrea.xyz | https://rpc.testnet.citrea.xyz | | Explorer | https://explorer.mainnet.citrea.xyz | https://explorer.testnet.citrea.xyz | | Bridge | https://citrea.xyz/bridge | — | | Faucet | — | https://ethglobal.com/faucet/citrea-testnet-5115 | | Native token | cBTC (18 decimals) | cBTC (18 decimals) | | Block time | ~2s | ~2s |

Security

The templates this tool ships follow the Cyfrin 2025-2026 recommended practices:

  • Hardhat 3 configVariable() — keys resolved at runtime from an encrypted keystore, never in config files
  • Foundry cast wallet import + --account deployer — encrypted on disk, decrypted in memory only
  • .gitignore pre-configured for .env, artifacts/, cache/, broadcast/, out/, node_modules/
  • No --private-key flag in any example command
  • README sections dedicated to "do not commit keys" at point of use

Requirements

  • Node.js 18+
  • npm, pnpm, yarn, or bun (auto-detected)
  • Hardhat projects: that's it — dependencies install via npm
  • Foundry projects: Foundry must be installed for forge install, forge build, and forge test

Useful links


Community tool — not officially affiliated with Citrea.

License

MIT © 2026 Tim (winsznx)