Logo Walrus Sites Publishing

Walrus Sites Publishing

Tổ chức
MystenLabs
walrus-sites-publishing

Publishing, updating, and managing decentralized websites with the Walrus Sites site-builder CLI. Use when the user needs to deploy a static frontend to Walrus Sites, update an existing deployment, configure ws-resources.json for SPA routing or custom headers, check blob expiration with sitemap, extend blob storage, or destroy a site. Also use when the user sees site-builder errors or asks about --epochs, blob expiry, or site lifecycle. For running a local portal to view testnet sites, see the `walrus-sites/portal` skill.

Tổng quan

Nhà phát hànhMystenLabs
Kho mãskills
Tên kỹ năngwalrus-sites-publishing
Sao
21
Bản fork
12
Tệp đi kèm
1
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được MystenLabs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Walrus Sites Publishing trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/MystenLabs/skills/tree/main/walrus-sites/publishing
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MystenLabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/walrus-sites/publishing .claude/skills/walrus-sites-publishing
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Walrus Sites Publishing trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Walrus Sites Publishing ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Walrus Sites Publishing với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Publishing and Managing Walrus Sites

MCP tool: When available in your environment, also query the Sui documentation MCP server (https://sui.mcp.kapa.ai) for up-to-date answers. Use it for verification and for details not covered by these reference files.

Source constraint: All information sourced from MystenLabs/walrus-sites and docs.wal.app/walrus-sites. Do not use third-party blogs or unofficial tutorials.

Prerequisites

  1. Sui CLI installed and configured for the target network (sui client active-env).
  2. site-builder installed via suiup install site-builder.
  3. walrus CLI installed via suiup install walrus, with a config context for the target network.
  4. SUI tokens for gas on the target network (sui client balance).
  5. WAL tokens for Walrus blob storage (testnet: faucet available).
  6. A built static site — run npm run build (or equivalent) to produce a dist/ directory.

Check the site-builder config exists:

bash
cat ~/.config/walrus/sites-config.yaml

This file specifies the Walrus Sites framework package, staking object, and Walrus context per network. It's created automatically by suiup install site-builder.

Publishing a new site

bash
site-builder publish --epochs 30 dist/
  • --epochs 30 — store blobs for 30 Walrus epochs. Use higher values for longer-lived sites. Use --permanent for sites that should never expire (cannot be reclaimed).
  • dist/ — the directory containing your built static site.

Output includes:

  • Site Object ID — the on-chain Sui object representing your site.
  • Base36 subdomain — used to construct the portal URL.
  • ws-resources.json — auto-generated in the source directory with the site object ID.

Example output:

New site object ID: 0x95926fb4cd28705823af105900d704d1c56c17d55d994a0715479c175590f80a
For local development: http://3q7dwaf5a6eg....localhost:3000

Choosing --epochs

Use caseRecommended
Quick testnet demo--epochs 30
Testnet staging--epochs 100
Mainnet production--epochs 200+ or --permanent
Throwaway test--epochs 10 (minimum practical)

Do not use --epochs 5 or lower. Blobs expire quickly and the site silently breaks with a 404.

Other duration options:

  • --earliest-expiry-time "2026-12-31T00:00:00Z" — expire no earlier than a specific date.
  • --end-epoch 200 — expire at a specific Walrus epoch number.

Updating an existing site

After the first publish, ws-resources.json records the site object ID. Subsequent publishes detect this and offer to update:

bash
# Rebuild, then update
npm run build
site-builder update --epochs 30 dist/

site-builder update replaces changed resources, adds new ones, and removes deleted ones. Unchanged resources are not re-uploaded.

To add or update specific resources without replacing the whole site:

bash
site-builder update-resources --epochs 30 dist/new-file.html

ws-resources.json

Auto-generated in the site directory on first publish. Example:

json
{
  "site_name": "My Walrus Site",
  "object_id": "0x95926fb4cd28705823af105900d704d1c56c17d55d994a0715479c175590f80a"
}

Keep this file in version control. The site-builder reads it to determine whether to create a new site or update the existing one. Without it, every publish creates a new site object.

SPA routing configuration

Single-page apps need all routes to serve index.html. Add a routes section to ws-resources.json:

json
{
  "site_name": "My Library",
  "object_id": "0x...",
  "routes": {
    "/*": "/index.html"
  }
}

Without this, direct navigation to /borrows or any client-side route returns 404 from the portal.

Custom headers

json
{
  "site_name": "My App",
  "object_id": "0x...",
  "headers": {
    "/assets/*": {
      "Cache-Control": "public, max-age=31536000, immutable"
    }
  }
}

Debugging with site-builder sitemap

bash
site-builder sitemap 0x<site-object-id>

Shows all published resources with their blob IDs and expiration dates:

 Resource path               Blob / Quilt Patch ID   Earliest Expiration Date
 /index.html                 MlhytW8o...             2026-06-15
 /assets/index-B9aUffXC.css  MlhytW8o...             2026-06-15
 /assets/index-Do4WTf-k.js   MlhytW8o...             2026-06-15

If the expiration date is in the past, the site will 404. Re-publish with a higher --epochs value.

Destroying a site

bash
site-builder destroy 0x<site-object-id>

Removes the site object from Sui. Blob storage may still persist until expiry but the site will no longer be resolvable.

Extending blob storage

If blobs are approaching expiry, extend them during an update:

bash
site-builder update --epochs 50 dist/

The update command extends blob storage to the new epoch count if it's longer than the current duration.

Portal access: mainnet vs testnet

The public portal at wal.app only serves mainnet sites. If you are deploying to testnet, you must run a self-hosted local portal to view your site. See the walrus-sites/portal skill for setup instructions.

End-to-end publish workflow

bash
# 1. Build the frontend
cd my-app/ui
npm run build

# 2. First-time publish (creates site object + ws-resources.json)
site-builder publish --epochs 30 dist/

# 3. Note the site object ID and portal URL from the output

# 4. For testnet: start the local portal (see walrus-sites/portal skill)

# 5. To update after code changes:
npm run build
site-builder update --epochs 30 dist/

Rules

  1. Always build before publishing. site-builder publish dist/ publishes whatever is in dist/. If you didn't npm run build first, you're publishing stale or source files.
  2. Use --epochs 30 or higher for testnet. Low values cause silent 404s within days.
  3. Keep ws-resources.json in version control. Without it, every publish creates a new site instead of updating.
  4. Use update for subsequent deploys, not publish. publish creates a new site object with a new URL. update modifies the existing one in place.

Common mistakes

  • Publishing with --epochs 5 and wondering why the site breaks. Blobs expired. Re-publish with --epochs 30+.
  • Forgetting to build the frontend before publishing. Publishing the src/ directory instead of dist/.
  • Running publish again instead of update and getting a new URL. The old site still exists but the new one has a different object ID and base36 subdomain.
  • Deploying an SPA without fallback routing. Direct navigation to /dashboard returns 404. Add "routes": { "/*": "/index.html" } to ws-resources.json.
  • Deleting ws-resources.json from the build directory. The site-builder can't find the existing site and creates a new one.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Walrus Sites Publishing làm được gì?

Publishing, updating, and managing decentralized websites with the Walrus Sites site-builder CLI. Use when the user needs to deploy a static frontend to Walrus Sites, update an existing deployment, configure ws-resources.json for SPA routing or custom headers, check blob expiration with sitemap, extend blob storage, or destroy a site. Also use when the user sees site-builder errors or asks about --epochs, blob expiry, or site lifecycle. For running a local portal to view testnet sites, see the `walrus-sites/portal` skill.

Vì sao nên dùng Walrus Sites Publishing trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Walrus Sites Publishing là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Walrus Sites Publishing trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/MystenLabs/skills/tree/main/walrus-sites/publishing. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Walrus Sites Publishing?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Walrus Sites Publishing với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Walrus Sites Publishing với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Walrus Sites Publishing có miễn phí không?

Có. Kỹ năng này được MystenLabs phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇