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-stacks-dapp

v1.0.6

Published

CLI tool to scaffold a Stacks dapp with Vite + React + Tailwind CSS

Readme

create-stacks-dapp

🚀 A modern CLI tool to scaffold Stacks blockchain applications with ease

npm version License: MIT Node.js Version

Create Stacks decentralized applications with no build configuration. Get started with modern templates featuring the latest tools and best practices.

Quick Start

Get up and running in seconds:

# Using bun (recommended)
bunx create-stacks-dapp my-stacks-app

# Using npx
npx create-stacks-dapp my-stacks-app

# Using pnpm
pnpm create-stacks-dapp my-stacks-app

# Using yarn
yarn create-stacks-dapp my-stacks-app

Then follow the prompts to select your preferred template and start building!

Features

Modern Stack: Built with the latest versions of React, TypeScript, and Vite
🎨 Styled: Pre-configured with Tailwind CSS for rapid UI development
Fast: Lightning-fast development experience with Vite
🔧 Zero Config: No complex setup required - just run and start coding
📦 Package Manager Agnostic: Works with npm, yarn, pnpm, and bun
🎯 Template Selection: Choose from multiple carefully crafted templates
🔄 Git Ready: Automatically initializes git repository with initial commit
🛡️ Type Safe: Full TypeScript support out of the box

Available Templates

| Template | Description | Stack | |----------|-------------|-------| | Vite + React + Tailwind CSS | Modern starter with React 19, TypeScript, and Tailwind CSS | Vite React TypeScript Tailwind |

More templates coming soon! Want to contribute a template? See Contributing

System Requirements

Before using create-stacks-dapp, ensure you have:

  • Node.js 22.0.0 or later
  • Git for repository cloning
  • A package manager: npm (comes with Node.js), yarn, pnpm, or bun

Usage

Basic Usage

bunx create-stacks-dapp <project-name>

Command Line Options

create-stacks-dapp <project-name> [options]

Options

| Option | Alias | Description | |--------|-------|-------------| | --help | -h | Show help information | | --list | -l | List all available templates | | --force | -f | Overwrite existing directory without prompting |

Examples

# Create a new project
bunx create-stacks-dapp my-awesome-dapp

# List available templates
bunx create-stacks-dapp --list

# Force overwrite existing directory
bunx create-stacks-dapp my-app --force

# Show help
bunx create-stacks-dapp --help

Interactive Mode

When you run the command, you'll be guided through an interactive setup:

  1. Template Selection: Choose from available templates
  2. Project Creation: The tool clones the template and sets up your project
  3. Dependency Installation: Automatically installs dependencies using your preferred package manager
  4. Git Initialization: Sets up a git repository with an initial commit

Project Structure

After creation, your project will have a structure similar to:

my-stacks-app/
├── public/
│   ├── vite.svg
│   └── stacks.svg
├── src/
│   ├── components/
│   ├── hooks/
│   ├── lib/
│   ├── App.tsx
│   ├── main.tsx
│   └── index.css
├── .gitignore
├── package.json
├── tailwind.config.js
├── tsconfig.json
├── vite.config.ts
└── README.md

Getting Started After Creation

Once your project is created:

# Navigate to your project
cd my-stacks-app

# Start the development server
bun dev        # or npm run dev, yarn dev, pnpm dev

# Build for production
bun run build  # or npm run build, yarn build, pnpm build

# Preview production build
bun preview    # or npm run preview, yarn preview, pnpm preview

Development Features

Hot Module Replacement (HMR)

Enjoy instant feedback during development with Vite's lightning-fast HMR.

TypeScript Support

Full TypeScript support with proper type checking and IntelliSense.

Tailwind CSS Integration

Pre-configured Tailwind CSS with optimal purging and JIT compilation.

Stacks.js Integration

Ready-to-use Stacks.js setup for blockchain interactions.

Environment Variables

Your project comes with environment variable support. Create a .env file in your project root:

VITE_NETWORK=testnet
VITE_API_URL=https://api.testnet.hiro.so

Stacks Integration

The generated projects include:

  • @stacks/*: For blockchain interactions
  • Connect Wallet: Ready-to-use wallet connection
  • Smart Contract Integration: Examples for contract calls
  • Network Configuration: Testnet/Mainnet switching

Troubleshooting

Common Issues

Error: Command not found

# Make sure you have Node.js 22+ installed
node --version

# Update npm to latest version
npm install -g npm@latest

Git not found

# Install Git from https://git-scm.com/
git --version

Permission errors on macOS/Linux

# Don't use sudo with npm/bunx
# If you have permission issues, fix npm permissions:
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Template clone fails

  • Check your internet connection
  • Verify the repository URL is accessible
  • Try again with --force flag

Getting Help

Contributing

We welcome contributions! Here's how you can help:

Adding New Templates

  1. Create a new repository with your template
  2. Ensure it follows the template structure guidelines
  3. Submit a GitHub issue or pull request with your template details
  4. Include the template configuration in this format:
    {
      "name": "Your Template Name",
      "description": "Description of your template",
      "repoUrl": "https://github.com/username/your-template-repo.git",
      "tags": ["tag1", "tag2", "tag3"],
      "requirements": {
        "node": ">=22.0.0",
        "git": true
      }
    }

Template Guidelines

Templates should:

  • Include a comprehensive README
  • Have proper TypeScript configuration
  • Include example Stacks.js integration
  • Follow modern React best practices
  • Include testing setup
  • Have proper ESLint/Prettier configuration

Development Setup

# Clone the repository
git clone https://github.com/leeroyanesu/create-stacks-dapp.git
cd create-stacks-dapp

# Install dependencies
bun install

# Build the project
bun run build

# Test locally
node dist/index.js my-test-app

Changelog

v1.0.2

  • Embedded templates directly in CLI code for better reliability
  • Removed external templates.json dependency
  • Fixed package.json bin path issues
  • Improved spinner animation and error handling

v1.0.1

  • Improved error handling and validation
  • Added interactive spinner animations
  • Enhanced template validation
  • Better package manager detection
  • Added force overwrite option

v1.0.0

  • Initial release
  • Vite + React + Tailwind CSS template
  • Interactive template selection
  • Automatic dependency installation
  • Git repository initialization

License

MIT © Leeroy Chako

Acknowledgments

  • Stacks - The blockchain platform
  • Hiro - Development tools and infrastructure
  • Vite - Build tool and development server
  • React - UI library
  • Tailwind CSS - Utility-first CSS framework

Happy building on Stacks! 🏗️

For questions, feedback, or contributions, feel free to reach out on GitHub or Discord.