Skip to content
Akinbola0xKENZMAN
Work/Developer tools
Bitcoin / Stacks

Scaffold Stacks

A Rust CLI that takes a full-stack Stacks app from an empty folder to a testnet deploy.

Role
Author & maintainer
When
Mar 2026 – now
Team
Solo, 409 of 409 commits
Stack
Rust, Clarity, TypeScript, Next.js
Scaffold Stacks: screenshot of the live app

Overview

stacksdapp scaffolds a Clarity + Next.js project, generates typed TypeScript bindings from the contracts, serves a live debug UI and deploys in dependency order. I wrote the CLI, the templates, the Mintlify docs and the example apps, and I run the Telegram community around it.

The problem

New Stacks builders spend their first days on plumbing: wiring Clarinet to a frontend, hand-writing contract call wrappers, guessing deploy order and fighting wallet post-conditions. Most give up before their first real feature.

What I built

  1. A Rust CLI (stacksdapp) published on crates.io with new, init, dev, deploy, doctor, upgrade and watch commands
  2. A contract-to-TypeScript codegen pipeline that turns Clarity ABIs into typed hooks, so the frontend never hand-rolls a contract call
  3. A live debug UI that renders every contract function as a form, including complex ABI arguments as JSON
  4. SIP-010 and SIP-009 templates, Docker-orchestrated local devnet, and dependency-ordered multi-contract deploys with dry-run
  5. The full Mintlify documentation, a forkable Examples repo, a donation-jar tutorial and a bundled AI agent skill

Decisions

Rust for the CLI, TypeScript for the output

The tool ships as one binary through cargo install, but everything it generates is plain TypeScript and Next.js that a web developer already knows how to change.

Safe defaults over clever ones

Releases added deploy dry-runs, a devnet mnemonic warning, a doctor command for prerequisites and a fix that defaults Leather post-condition mode so wallets stop crashing on first run.

Docs are part of the product

Every release updates the Mintlify docs and changelog. Outreach conversations with new builders decide what goes on the roadmap next.

More screens

How it flows

Stack

RustClarityTypeScriptNext.jsTeraDockerMintlify