AlgoKit Templates | Algorand Developer Portal

AlgoKit Templates

AlgoKit offers a curated collection of production-ready and starter templates, streamlining front-end and smart contract development. These templates provide a comprehensive suite of pre-configured tools and integrations, from boilerplate React projects with Algorand wallet integration to smart contract projects for Python and TypeScript. This enables developers to prototype and deploy robust, production-ready applications rapidly.

By leveraging AlgoKit templates, developers can significantly reduce setup time, ensure best practices in testing, compiling, and deploying smart contracts, and focus on building innovative blockchain solutions with confidence.

This page provides an overview of the official AlgoKit templates and guidance on creating and sharing your custom templates to suit your needs better or contribute to the community.

Official Templates

AlgoKit provides several official templates to cater to different development needs. These templates will create a standalone AlgoKit project.

How to initialize a template

To initialize using the algokit CLI:

  1. Install AlgoKit and all the prerequisites mentioned in the installation guide.

  2. Execute the command algokit init. This initiates an interactive wizard that assists in selecting the most appropriate template for your project requirements.

algokit init # This command will start an interactive wizard to select a template

To initialize within GitHub Codespaces:

  1. Go to the algokit-base-template repository.
  2. Initiate a new codespace by selecting the Create codespace on main option. You can find this by clicking the Code button and then navigating to the Codespaces tab.
  3. Upon codespace preparation, algokit will automatically start LocalNet and present a prompt with the next steps. Executing algokit init will initiate the interactive wizard.

Algorand Python Smart Contract Template

Algorand Python Smart Contract Template Github Repo

This template provides a production-ready baseline for developing and deploying Python smart contracts.

To use it install AlgoKit and then either pass in -t python to algokit init or select the python template.

algokit init -t python

# or

algokit init # and select Smart Contracts & Python template

Features

This template supports the following features:

Getting started

Once the template is instantiated, you can follow the README.md file to see instructions on how to use the template.

Algorand TypeScript Smart Contract Template

Algorand TypeScript Smart Contract Template Github Repo

This template provides a baseline TealScript smart contract development environment.

To use it install AlgoKit and then either pass in -t tealscript to algokit init or select the TypeScript language option interactively during algokit init.

algokit init -t tealscript

# or

algokit init # and select Smart Contracts & TypeScript template

Getting started

Once the template is instantiated, you can follow the README.md file for instructions on how to use it.

DApp Frontend React Template

DApp Frontend React Template Github Repo

This template provides a baseline React web app for developing and integrating with any ARC32 compliant Algorand smart contracts.

To use it install AlgoKit and then either pass in -t react to algokit init or select the react template interactively during algokit init.

algokit init -t react

# or

algokit init # and select DApp Frontend template

Features

This template supports the following features:

Getting started

Once the template is instantiated, you can follow the README.md file to see instructions on how to use the template.

Fullstack (Smart Contract + Frontend) Template

Fullstack (Smart Contract + Frontend) Template Github Repo

This full-stack template provides both a baseline React web app and a production-ready baseline for developing and deploying Algorand Python and TypeScript smart contracts. It’s suitable for developing and integrating with any ARC32 compliant Algorand smart contracts.

To use this template, install AlgoKit and then either pass in -t fullstack to algokit init or select the relevant template interactively during algokit init.

algokit init -t fullstack

# or

algokit init # and select the Smart Contracts & DApp Frontend template

Features

This template supports many features for developing full-stack applications using official AlgoKit templates. Using the full-stack template currently allows you to create a workspace that combines the following frontend template:

And the following backend templates:

Initializing a fullstack algokit project will create an AlgoKit workspace with a frontend React web app and Algorand smart contract project inside the projects folder.