Skip to content

Example applications, microservices, and code samples for the Internet Computer

License

Notifications You must be signed in to change notification settings

dfinity/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 10, 2025
f7e90c5 · Apr 10, 2025
Apr 10, 2025
Jan 17, 2025
Oct 21, 2020
Apr 4, 2025
Apr 10, 2025
Nov 2, 2024
Apr 10, 2025
Apr 4, 2025
Sep 9, 2022
Sep 30, 2024
Sep 8, 2024
Aug 19, 2024
Mar 28, 2025
Feb 3, 2020
Mar 28, 2025
Feb 1, 2021
Mar 28, 2025

Repository files navigation

Internet Computer sample applications

Get started building on ICP with the sample applications in this repository. From this repository, you can deploy, download, clone, fork, or share sample projects.

The projects in this repository are not intended to be used as commercial applications and do not provide any explicit or implied support or warranty of any kind.

You can also contribute your own project or suggest updates to published projects using the standard GitHub workflow.

Sample applications

Code samples are organized by programming language:

Some examples include frontends written in a variety of frameworks, such as React, JavaScript, etc.

Additional frontend samples can be found in the following folders:

Deploying samples

ICP Ninja

You can open and deploy examples with ICP Ninja, a web-based tool that allows you to create and manage Internet Computer projects without downloading any tools or setting up a local environment.

To contribute an example that will be featured on ICP Ninja, check out the NINJA_CONTRIBUTING.md file.

GitHub Codespaces or Gitpod

This repo can be opened in a web-based developer environment such as GitHub Codespaces or Gitpod, allowing you to edit and deploy the sample projects without downloading any tools or setting up a local environment.

Get started with GitHub codespaces.

Get started with Gitpod.

dfx

dfx is a command-line tool used to create, deploy. and manage projects on ICP. To download and use dfx with this examples repo, run the following commands locally (macOS/Linux systems):

git clone https://github.com/dfinity/examples.git
cd examples
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

Then, navigate into the folder of the sample that you want to use and follow the project's README instructions to setup and deploy the sample code.

Resources

Security considerations and best practices

If you base your application on one of these examples, we recommend you familiarize yourself with and adhere to the security best practices for developing on the Internet Computer. The examples provided here may not implement all the best practices.