百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

examples

> 编程语言
开源

互联网计算机的示例应用、微服务和代码示例

613 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

互联网计算机的示例应用、微服务和代码示例

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustblockchaindfxexamplesicp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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