π‘ This template is open-sourced to help others build on Aleo faster β even if it means creating our own competition. The goal is to grow the ecosystem and make privacy-first apps more accessible for everyone!
A modern, open-source starter template for building Aleo dApps with:
β
Wallet Connect w/ Leo Wallet
β
Tailwind + DaisyUI pre-configured
β
Dark mode toggle out of the box
β
Reusable component & layout structure
β
Aleo RPC interaction examples
β
Ready-to-use file structure
β
Built for dev speed & extensibility
git clone https://github.com/mikenike360/aleo-starter-template.git
cd aleo-starter-template
yarn install
yarn dev
Then open http://localhost:3000 in your browser.
This template includes Leo Wallet browser extension support.
Includes a demo main.leo
program and compiled build:
cd program
leo build
You can replace this with your own program and wire it into the frontend via Aleo RPC or your preferred method.
By default, this template connects to the Aleo testnetbeta environment.
To switch to mainnet, follow these steps:
src/types/index.ts
CURRENT_NETWORK
and CURRENT_RPC_URL
constants to point to mainnet endpointssrc/pages/_app.tsx
and change the network
prop for WalletAdapterNetwork
from:network={WalletAdapterNetwork.TestnetBeta}
to:network={WalletAdapterNetwork.MainnetBeta}
You are now ready to build against Aleo mainnet!
.
βββ /program/ β Sample Leo program
βββ /src/
β βββ assets/ β Global styles
β βββ components/ β UI + wallet connect
β βββ hooks/ β Custom React hooks
β βββ layouts/ β Page structure
β βββ pages/ β Next.js routes
β βββ types/ β TypeScript types
β βββ utils/ β Aleo-specific helpers
utils/feeCalculator.ts
β helpful for estimating transaction costsutils/privateTransfer.ts
β Aleo private transfer logicutils/publicTransfer.ts
β public transfer exampleutils/GLSLBackground.tsx
β dynamic background componentThese are not required but useful if you plan to build more complex interactions.
You can click βUse this templateβ on GitHub to instantly clone and start building.
Built by @mikenike360 from VenomLabs
MIT β free to use, modify, and share.