Full-Fledged Templates

Runnable dApp repos and complete template skills — copy, compile, and ship privacy-preserving apps on Midnight.

10 templates available · 6 runnable repos · 4 skill guides

Runnable repos

Clone, install dependencies, compile Compact, and run locally with 1AM wallet.

Passport Dapp Template

templates/passport-dapp/

Runnable repoIntermediate63 files

Runnable Midnight Passport foundations demo — passkey onboarding, custody deploy, Night ID, deposit, localnet via npm run demo.

Stack

PassportTemplatePasskeyLocalnet

Key files

  • .env.example
  • .gitignore
  • BROWSER-PROVING-SCOPE.md
  • +60 more in template

Counter Template

templates/counter-dapp/

Runnable repoIntermediate30 files

Complete Midnight DApp reference — headless wallet, CLI, counter contract, DUST generation, deploy, interaction.

Stack

CounterCLIHeadless

Key files

  • .gitignore
  • compose.yml
  • contract/package.json
  • +27 more in template

Locker Dapp Template

templates/locker-dapp/

Runnable repoAdvanced18 files

Time-lock vault dApp: lock unshielded NIGHT until a Unix deadline; beneficiary releases via blockTimeGte.

Stack

Time-lockVaultNIGHT

Key files

  • .gitignore
  • app/layout.tsx
  • app/locker/LockerClient.tsx
  • +15 more in template

Leaderboard Dapp Template

templates/leaderboard-dapp/

Runnable repoAdvanced18 files

Privacy-preserving arcade leaderboard: submit scores with anonymous/public/custom names and prove ownership via ZK.

Stack

LeaderboardZK proofsArcade

Key files

  • .gitignore
  • app/layout.tsx
  • app/leaderboard/LeaderboardClient.tsx
  • +15 more in template

Private Party Dapp Template

templates/private-party-dapp/

Runnable repoBeginner17 files

Private party RSVP dApp: persistentCommit guest list, DApp-specific public keys, unshielded NIGHT privacy boundary, Next.js + 1AM wallet.

Stack

Private partyRSVPPrivacy boundarypersistentCommit

Key files

  • .gitignore
  • app/layout.tsx
  • app/page.tsx
  • +14 more in template

Private Reserve Auction Template

templates/private-reserve-auction-dapp/

Runnable repoAdvanced21 files

Private reserve auction dApp: hidden reserve price, public bids, private bidder identities, persistentCommit, Map, Counter, receiveUnshielded/sendUnshielded privacy boundary, Next.js + 1AM wallet.

Stack

AuctionPrivate auctionReserve pricepersistentCommit

Key files

  • .gitignore
  • app/auction/AuctionClient.tsx
  • app/auction/page.tsx
  • +18 more in template

Template skills

End-to-end dApp guides — load the skill into your agent and follow the full build workflow.

Android Example Voting

.agents/skills/android-example-voting/

Skill guideIntermediate7 files

Build a voting/poll dApp on Midnight Network using the Kuira Android SDK — Compact smart contract with create/cast/close circuits, passkey-derived identity, embedded wallet, Compose UI, reactive ledger reads via observeLedger(), and on-device ZK proving.

Stack

AndroidVotingKuira

Key files

  • SKILL.md
  • references/android-resources.md
  • references/application-di.md
  • +4 more in template

Example Hello World

.agents/skills/example-hello-world/

Skill guideIntermediate3 files

Build a complete Midnight Network hello-world DApp from scratch with Compact, vitest, and FluentWalletBuilder.

Stack

Hello worldVitestTestkit

Key files

  • SKILL.md
  • references/compose.md
  • references/hw-test.md
Create Social CardLive HackathonsGallery
Mock Demo
Runnable Templates | MIDSKILLS