Skip to main content

Scaffold Stacks

A Rust-powered CLI (stacksdapp) and Next.js template for building full-stack Stacks (Bitcoin L2) dApps — with auto-generated TypeScript contract bindings, a live debug UI, and one-command testnet deployment.

What is Scaffold Stacks?

Scaffold Stacks provides everything you need to build decentralized applications on the Stacks blockchain. It combines a powerful CLI tool with a modern Next.js frontend template, making it easy to create, test, and deploy smart contracts.

Key Features

  • Auto-generated TypeScript bindings: Automatically generate type-safe TypeScript code from your Clarity contracts
  • Live debug UI: Interactive interface to test contract functions during development
  • One-command deployment: Deploy to testnet or mainnet with a single command
  • Local development: Run a full Stacks devnet locally with Docker
  • Contract templates: Start with pre-built SIP-010 tokens or SIP-009 NFTs

Quick Start

Get started in 5 steps:
  1. Install the CLI
  2. Scaffold a new project
  3. Deploy to testnet
  4. Start the frontend
  5. Connect your wallet

Get started

Follow our 5-step quickstart guide to deploy your first dApp.

Prerequisites

Before you begin, ensure you have:
  • Rust 1.75+
  • Node.js 20+
  • Clarinet
  • A Stacks wallet (Leather or Xverse)

Check prerequisites

Verify your development environment is ready.

Developer Workflow

Edit contracts

Modify Clarity contracts and see live updates.

Add contracts

Create new contracts with templates.

Run tests

Test your contracts and frontend.

Deploy

Deploy to testnet or mainnet.