asset-canister

Deploy frontend assets to the Internet Computer with SPA routing.

28|11|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/dfinity/icskills --skill asset-canister
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asset-canister
Source: https://github.com/dfinity/icskills/tree/main/skills/asset-canister
Command: npx skills add https://github.com/dfinity/icskills --skill asset-canister

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the deployment of frontend web assets directly onto the Internet Computer, ensuring efficient hosting and accessibility.

Core Features & Use Cases

  • Certified Asset Hosting: Deploy static files (HTML, CSS, JS, images) with integrity verification.
  • SPA Routing: Configure single-page applications with fallback to index.html for seamless navigation.
  • Custom Domains: Set up custom domain names for your deployed frontends.
  • Programmatic Uploads: Manage assets directly from your code.
  • Use Case: Deploying a React or Vue.js application to the Internet Computer, complete with custom domain and SPA routing.

Quick Start

Use the asset-canister skill to deploy your frontend build artifacts located in the 'dist' directory.

Frequently Asked Questions about asset-canister

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a React or Vue.js SPA to the Internet Computer?

Deploy a SPA to the Internet Computer by uploading build artifacts to an asset canister and configuring SPA routing via the .ic-assets.json5 file for seamless index.html fallback navigation.

How does SPA routing work when hosting frontend assets on the ICP?

SPA routing on the ICP works by configuring the .ic-assets.json5 file to set fallback to index.html, ensuring seamless client-side navigation for single-page applications hosted in an asset canister.

Do I need Node.js and icp-cli to deploy static web assets to the IC?

Yes, deploying static web assets to the IC requires Node.js and icp-cli to execute the build and deployment processes for uploading files to the asset canister.

Can I upload and manage frontend assets programmatically using JavaScript?

Yes, you can manage and upload frontend assets programmatically using the @dfinity/asset-canister library to handle static file deployment directly from your code.

What is the best way to host static files with custom domains on the Internet Computer?

The best way to host static files on the Internet Computer is using an asset canister, which supports custom domains and certified asset hosting for integrity verification.

Does hosting frontend assets on the IC support certified asset integrity verification?

Yes, hosting frontend assets on the IC supports certified assets, deploying static files like HTML, CSS, and JS with cryptographic integrity verification.