aleo-starter-template Tailwind Templates

Aleo Starter Template

A Next.js + Tailwind + DaisyUI + Aleo + Leo Wallet starter template

πŸ› οΈ Aleo Starter Template

πŸ’‘ 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:


⚑ Features

βœ… 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


πŸš€ Quick Start

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.


πŸ” Wallet Integration

This template includes Leo Wallet browser extension support.

🧩 Example Aleo Program

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.


πŸ”„ Switching to Aleo Mainnet

By default, this template connects to the Aleo testnetbeta environment.
To switch to mainnet, follow these steps:

  1. Open src/types/index.ts
  2. Change the CURRENT_NETWORK and CURRENT_RPC_URL constants to point to mainnet endpoints
  3. Then open src/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!


πŸ“¦ Project Structure

.
β”œβ”€β”€ /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

🧠 Bonus Utilities (Optional)

These are not required but useful if you plan to build more complex interactions.


🀝 Use This Template

You can click β€œUse this template” on GitHub to instantly clone and start building.


πŸ“Έ Screenshot

Alt text


πŸ§‘β€πŸ’» Author

Built by @mikenike360 from VenomLabs


🌐 License

MIT – free to use, modify, and share.

Top categories

Loading Svelte Themes