Skip to main content
Scaffold Stacks is the official stacksdapp CLI and Next.js template for building full-stack Stacks (Bitcoin L2) dApps. Write Clarity smart contracts, get auto-generated TypeScript bindings, ship a live debug UI, and deploy to Stacks testnet, mainnet, or local devnet with one command. Install with cargo install stacksdapp, scaffold with stacksdapp new my-app, and follow the quickstart. Already on Clarinet? Use adopt an existing project. For every command and flag, see the stacksdapp CLI reference.

Looking for guides on…

Quickstart

Deploy your first dApp to testnet in five steps.

Workflows

Step-by-step patterns for common tasks and CI.

Adopt existing project

Bring a Clarinet repo onto Scaffold Stacks with stacksdapp init.

Upgrade project

Refresh deps, bindings, hooks, and agent skill.

stacksdapp CLI reference

Command flags, exit codes, and configuration files.

Troubleshooting

Common errors, exit codes, and fixes.

Frontend hooks

Generated hooks, wallet, devnet signing, custom UI.

SIP-010 / SIP-009

Token and NFT templates with impl-trait rules.

Video tutorial

Watch how to build a donation jar on Stacks.

Example dApps

Fork DropClaim and StackVote — live on testnet.

Key features

  • Auto-generated TypeScript bindings: Type-safe code from Clarity ABIs, with ABI caching for fast regenerate
  • Live debug UI: Interactive forms for every contract function
  • One-command deployment: Testnet, mainnet, or local Docker devnet (optional --auto-deploy)
  • Contract templates: SIP-010 tokens and SIP-009 NFTs with --clarity-version support
  • Clarity 6 by default: New projects use Clarity 6 with epoch 4.0
  • Adopt existing Clarinet projects: stacksdapp init without starting from scratch
  • Bundled AI agent skill: Cursor-ready skill files and AGENTS.md in every project
  • Git security hooks: Pre-commit guard against committing deployer mnemonics

Documentation map

Requirements

Need help? Join the Scaffold Stacks Telegram group.