A curated collection of simple, beginner-friendly decentralized applications (dApps) built using the Compact smart contract language on the Midnight blockchain.
This repository is part of the Midnight Simplified YouTube series, where each episode introduces new Midnight concepts through practical, real-world mini-projects. Every project in this repo is intentionally small, easy to understand, and focused on one core learning goal.
The goal of the Midnight Simplified Tutorial dApps repo is to:
- Help new developers learn Compact through hands-on examples
- Demonstrate best practices for building private, secure smart contracts
- Provide reference code for anyone exploring the Midnight ecosystem
- Serve as starter templates for future hackathons, workshops, and demos
- Make Midnight development as easy and accessible as possible
Each project has:
-
Its own folder
-
A smart contract written in Compact
-
Helper modules when needed
-
Frontend/UI integration examples (optional)
-
A README explaining:
- What the project does
- What concepts it teaches
- How to deploy it
- How to extend it
midnight-simplified-tutorial-dapps/
│
├── tweet-socialfi/
│ ├── contract/
│ ├── helpers/
│ ├── README.md
│ └── ...
│
├── (upcoming dApps...)
│ ├── ...
│
└── README.md ← you are here
A privacy-preserving micro-tweeting social protocol with:
- Tweet creation & editing
- Anonymous likes via Merkle commitments
- Earnings from engagement
- Tweet promotion
- Secure, private user identity generation
This is the first dApp in the series and introduces:
- Maps
- Merkle trees
- Witness functions
- Sealed ledgers
- Token transfers
- Private identity generation
- Opaque data types
- Basic smart contract architecture
More tutorial dApps will be added as the YouTube series progresses. Planned examples include:
- Anonymous Polling System
- Privacy-Preserving Crowdfunding
- Decentralized Task Board
- Encrypted Messaging dApp
- Micro-Escrow Protocol
- Private Profile / Reputation System
- Onchain Notebook with Access Control
- Simple Marketplace
- Anonymous Tip Jar dApp
(The exact list may vary depending on tutorial direction.)
- Clone the repository
- Open any project folder
- Read that project’s README
- Follow the deployment steps
- Use the code as reference for your own Midnight projects
This repo works great for:
- Self-learning
- Teaching students
- Hackathon beginners
- Code-along sessions
- Inspiration for new Midnight dApps
All dApps in this repo are demonstrated step-by-step on the Midnight Simplified YouTube playlist.
Each video covers:
- The concept being taught
- The smart contract breakdown
- Deployment demo
- How to interact with the contract
If you enjoy the content, consider:
- Subscribing
- Joining community discussions
- Sharing with developers getting into Web3
This repo is community-friendly! If you'd like to add a tutorial dApp or improve an existing one:
- Fork the repo
- Add your contribution
- Submit a pull request
MIT License — free to use, modify, and learn from.