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

create-rootstock-app

v1.0.2

Published

Create Rootstock dApps with one command - includes Next.js frontend and Hardhat smart contracts

Readme

create-rootstock-app

The fastest way to create Rootstock dApps

npm version License: MIT

Create Rootstock dApps with one command. Includes smart contracts, frontend, and everything you need to build on Bitcoin's smart contract platform.

⚡ Quick Start

npx create-rootstock-app my-dapp
cd my-dapp

That's it! Your Rootstock dApp is ready with:

  • 📜 Smart contracts (Hardhat + Solidity)
  • 🎨 Frontend (Next.js + TypeScript + Tailwind)
  • 🔗 Web3 integration (wagmi + viem)
  • ⚙️ Rootstock configuration (testnet & mainnet ready)

🏗️ What's Included

my-dapp/
├── contracts/          # Smart contract development
│   ├── contracts/Counter.sol
│   ├── scripts/deploy.js
│   ├── test/Counter.test.js
│   └── hardhat.config.js
├── frontend/           # Next.js frontend
│   ├── src/components/
│   ├── src/hooks/
│   ├── src/lib/
│   └── tailwind.config.ts
└── README.md

🚀 Deploy Your First Contract

# Navigate to contracts directory
cd my-dapp/contracts

# Set up environment
cp .env.example .env
# Add your private key to .env

# Deploy to Rootstock testnet
npm run deploy:testnet

# Or use the direct command
npx hardhat run scripts/deploy.js --network rootstockTestnet

🎯 Key Features

  • ⚡ Zero Config: Works out of the box
  • 🔧 Rootstock Optimized: Pre-configured for Rootstock networks
  • 🎨 Modern Stack: Next.js 14, TypeScript, Tailwind CSS
  • 🔗 Web3 Ready: wagmi v2 for seamless wallet integration
  • 📱 Responsive: Mobile-first UI with dark/light themes
  • 🧪 Testing: Comprehensive test suites included
  • 📚 TypeScript: Full type safety with generated contract types

🌐 Supported Networks

| Network | Chain ID | RPC | Explorer | |---------|----------|-----|----------| | Rootstock Testnet | 31 | https://public-node.testnet.rsk.co | explorer.testnet.rsk.co | | Rootstock Mainnet | 30 | https://public-node.rsk.co | explorer.rsk.co |

📚 Available Commands

Smart Contracts (contracts/ directory)

npm run compile           # Compile contracts
npm test                  # Run tests
npm run deploy:testnet    # Deploy to testnet
npm run deploy:mainnet    # Deploy to mainnet
npm run verify:testnet    # Verify contract on testnet
npm run verify:mainnet    # Verify contract on mainnet

Frontend (frontend/ directory)

npm run dev              # Start development server
npm run build            # Build for production
npm start                # Start production server
npm run lint             # Run ESLint

🛠️ CLI Options

npx create-rootstock-app [project-name] [options]

Options:
  --help, -h     Show help
  --version, -v  Show version

🔧 Troubleshooting

Common Issues

❌ "Network rskTestnet doesn't exist"

  • Use: npm run deploy:testnet
  • Or: npx hardhat run scripts/deploy.js --network rootstockTestnet

❌ "You are not inside a Hardhat project"

  • Make sure you're in the contracts/ directory: cd contracts

❌ "Account has no RBTC for gas fees"

  • Get testnet RBTC: https://faucet.rsk.co/

📖 Learn More

🤝 Contributing

We welcome contributions! Please feel free to submit issues and pull requests.

📄 License

MIT © Tanishq Gupta


Built with ❤️ for the Rootstock ecosystem