One thing I kept running into while building on Midnight:
Getting started took longer than it should.
-
Browse repos
-
Find the right template
-
Clone
-
Clean up
-
Then finally start building
It breaks momentum.
So I built:
npx mn-scaffold
npx mn-scaffold
Spin up Midnight smart contract templates in seconds.
What it does
The CLI guides you through a simple flow:
-
Pick a category (Basics, DeFi, ZK & Privacy, etc.)
-
Choose a template (with clear descriptions)
-
Name your project
And you’re done.
Your project is scaffolded locally and ready to build.
Why it’s different
-
No full repo clones: only the template you choose
-
Live template registry: always up-to-date via Midnight Club
-
Multiple real use-cases: not just a single starter app
-
Built for exploration: try ideas quickly, not just one setup
Powered by Midnight Club
Templates are fetched live from:
https://midnight-club-lac.vercel.app/
Which means:
-
New templates are instantly available
-
No need to update the CLI
-
The ecosystem can grow organically
What you can build right now
-
Basics → Hello World, Counter, Calculator
-
State → Todo, Bulletin Board
-
Governance → Voting, Quadratic Voting, Escrow
-
DeFi → Token Transfers, Bonding Curve
-
ZK → Allowlist, Battleship
All templates are Compact smart contracts targeting the Midnight preprod.
Where this fits
This is not meant to replace existing tools like create-mn-app.
Think of it as:
-
create-mn-app→ standard starting point -
mn-scaffold→ fast exploration + instant execution
Use it when you want to:
-
try ideas quickly
-
explore different primitives
-
bootstrap hackathon projects
Contributing
Adding a template is simple:
-
Add it to the repo: https://github.com/tusharpamnani/midnight-programs-list
-
Open a PR
Once merged:
your template is instantly live in the CLI
The goal
Reduce the time from “idea” → “working Midnight project” to seconds.
What’s next
-
Smarter template recommendations
-
Featured / popular templates
-
Better post-scaffold DX
-
More advanced templates
Would love feedback:
-
What templates do you want to see?
-
What slowed you down while getting started?
-
What would make this 10x better?
Let’s make building on Midnight ridiculously fast ![]()