Skip to content

Commit cf1569d

Browse files
committed
Roll out ICP Ninja badges + README hero consistency across examples
Applies the pilot template repo-wide: - Add the 'Open in ICP Ninja' badge + callout to all eligible examples (45): the ninja_pr_checks.yml tracked set, the hello_world/who_am_i reference pair, and 8 examples that had pre-staged badges commented out with a 'TODO: re-enable once icp.ninja supports icp-cli' — now true. Ineligible examples (canister factories, >2 canisters on ic, non-deployable, photo-storage's authorize step) get no badge. - Remove the 'View this sample's code on GitHub' line repo-wide (readers arrive from GitHub; it was inconsistent — present in only ~30%). - Remove cross-language 'counterpart' links (Also available in / Motoko version / same example is also available / walkthrough focuses on): users pick a language folder upfront. Fix two motoko vetkeys related-example links that pointed at the rust sibling. Language-description links (Motoko/Rust docs, rustup) are preserved. Badge URL uses the current canonical icp.ninja/i?g= form.
1 parent be3cc6d commit cf1569d

66 files changed

Lines changed: 175 additions & 120 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hosting/godot-html5-template/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Godot HTML5 sample
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/godot-html5-template)
4-
53
## Overview
64

75
The example shows how to deploy a Godot HTML5 build on ICP in an asset canister. The Godot HTML5 build is deployed as frontend, no backend is needed in this sample.

hosting/oisy-signer-demo/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# OISY Signer Demo
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/oisy-signer-demo)
3+
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/tree/master/hosting/oisy-signer-demo)
4+
5+
> 🥷 **Try it live — no local setup.** [ICP Ninja](https://icp.ninja) is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit **Deploy** if you're already in Ninja. To build and run it locally instead, follow the steps below.
46
57
## Overview
68

@@ -12,12 +14,6 @@ Testnet tokens can be obtained for free using the [ICP Faucet](https://faucet.in
1214

1315
The `/frontend` folder contains the web assets for the application's user interface, built with React, Vite, and Tailwind CSS.
1416

15-
<!-- ## Deploying from ICP Ninja
16-
17-
This example can be deployed directly from [ICP Ninja](https://icp.ninja), a browser-based IDE for ICP.
18-
19-
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/hosting/oisy-signer-demo) -->
20-
2117
## Build and deploy from the command line
2218

2319
### Prerequisites

hosting/photo-storage/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Photo storage example
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/photo-storage)
4-
53
## Overview
64

75
The example shows how to store photos on ICP in an asset canister using the `AssetManager` from `@icp-sdk/canisters/assets`. The photo storage app is deployed as a frontend in an asset canister which is also used for photo upload.

hosting/react/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Basic React Frontend
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/react)
3+
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/tree/master/hosting/react)
4+
5+
> 🥷 **Try it live — no local setup.** [ICP Ninja](https://icp.ninja) is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit **Deploy** if you're already in Ninja. To build and run it locally instead, follow the steps below.
46
57
## Overview
68

@@ -10,12 +12,6 @@ A minimal React application hosted entirely onchain on ICP. It demonstrates how
1012

1113
The `/frontend` folder contains the web assets for the application's user interface, built with React, Vite, and Tailwind CSS. The frontend is deployed as an asset canister — no backend canister is needed.
1214

13-
<!-- ## Deploying from ICP Ninja
14-
15-
This example can be deployed directly from [ICP Ninja](https://icp.ninja), a browser-based IDE for ICP.
16-
17-
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/hosting/react) -->
18-
1915
## Build and deploy from the command line
2016

2117
### Prerequisites

hosting/static-website/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Static website
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/static-website)
4-
53
## Overview
64

75
The example shows how to deploy a simple, static website hosted on ICP. The website is very simple; it just displays the DFINITY logo. While the website in this example is very simple, the method would be the same for a more advanced static website, e.g., based on popular static site generators.

hosting/unity-webgl-template/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Unity WebGL sample
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/hosting/unity-webgl-template)
4-
53
## Overview
64

75
The example shows how to deploy a simple Unity WebGL build on ICP in an asset canister. It just shows a Unity WebGL build with the URP template installed. The Unity WebGL build is deployed as frontend, no backend is needed in this sample.

motoko/backend_only/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Motoko backend
22

3+
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/tree/master/motoko/backend_only)
4+
5+
> 🥷 **Try it live — no local setup.** [ICP Ninja](https://icp.ninja) is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit **Deploy** if you're already in Ninja. To build and run it locally instead, follow the steps below.
6+
37
This backend-only example demonstrates how to write a simple smart contract for ICP. It implements a single `greet(name)` query function that returns a greeting string.
48

59
## Build and deploy from the command line

motoko/basic_bitcoin/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Basic Bitcoin
22

3+
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/tree/master/motoko/basic_bitcoin)
4+
5+
> 🥷 **Try it live — no local setup.** [ICP Ninja](https://icp.ninja) is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit **Deploy** if you're already in Ninja. To build and run it locally instead, follow the steps below.
6+
37
This example demonstrates how a canister can send and receive Bitcoin on the Internet Computer using threshold ECDSA and Schnorr signatures. It covers three address types (P2PKH, P2TR key-path, P2TR script-path), querying balances and UTXOs, reading chain state, and sending transactions.
48

59
For a deeper understanding of the ICP ↔ Bitcoin integration, see the [Bitcoin integration concepts](https://docs.internetcomputer.org/concepts/chain-fusion/bitcoin).

motoko/canister_factory/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Motoko Canister Factory
22

3-
[View this sample's code on GitHub](https://github.com/dfinity/examples/tree/master/motoko/canister_factory)
4-
53
## Overview
64

75
This example demonstrates two approaches to creating canisters dynamically on the Internet Computer: high-level actor class management (using the `system` keyword) and low-level management canister calls. It also shows the critical difference between upgrading a canister (state preserved) and reinstalling it (state reset).

motoko/canister_logs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Canister logs
22

3+
[![Open in ICP Ninja](https://icp.ninja/assets/open.svg)](https://icp.ninja/i?g=https://github.com/dfinity/examples/tree/master/motoko/canister_logs)
4+
5+
> 🥷 **Try it live — no local setup.** [ICP Ninja](https://icp.ninja) is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit **Deploy** if you're already in Ninja. To build and run it locally instead, follow the steps below.
6+
37
This example demonstrates canister logging on the Internet Computer. Every message written with `Debug.print` and every trap is recorded in the canister's log, which can be retrieved at any time with `icp canister logs`. The example covers:
48

59
- **Update calls**`Debug.print` output from update methods

0 commit comments

Comments
 (0)