Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

examples

> 编程语言
Open source

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

613 stars0 likes1 views
WebsiteGitHub

About

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

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.

Looking to start a new project from scratch? Use icp-cli-templates to scaffold a project with icp new.

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.

Sample applications

New here? Start with hello_world (Motoko or Rust) — a simple full-stack canister with a frontend. Then move on to who_am_i (Motoko or Rust) to add user authentication with Internet Identity.

Canister examples are organized by language:

  • motoko/
  • rust/

Frontend-only and native app examples:

  • hosting/ — frontend examples (React, static sites, etc.)
  • native-apps/ — Unity and other native app integrations
  • wasm/ — canisters written directly in WebAssembly

Local development

Command line

Install the prerequisites and then follow the example's README to deploy.

Prerequisites:

  • Node.js (LTS)
  • icp-cli: npm install -g @icp-sdk/icp-cli @icp-sdk/ic-wasm
  • Motoko examples: mops: npm install -g ic-mops
  • Rust examples: Rust + rustup target add wasm32-unknown-unknown

See the full installation guide for platform-specific instructions.

bash
git clone https://github.com/dfinity/examples.git
cd examples//

Dev Containers

Open the repo root in VS Code with the Dev Containers extension to get a pre-configured environment with the full ICP toolchain for both Motoko and Rust. VS Code will prompt you to reopen in the container automatically.

bash
git clone https://github.com/dfinity/examples.git

Then navigate into an example and follow its README to deploy.

Note: Open the repo root in the container — not an individual example subfolder.

Working with AI coding agents

These examples are built to work well with AI coding agents, backed by ICP skills — tested, frequently-updated instructions that keep an agent aligned with the fast-moving platform. Browse the skills at skills.internetcomputer.org, and see the AI coding agents guide for how agents consume and install them.

The repo is set up with autosync: opening it in Claude Code runs a SessionStart hook that keeps the skills current automatically (you'll be asked to trust the hook the first time). This targets Claude Code today; other agents fetch the skills on demand instead. Details are in AGENTS.md.

Resources

  • Quickstart
  • Developer tools
  • icp-cli

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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustblockchaindfxexamplesicp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言