Buy Domain Helper
by @wohaoshuai
3-layer site launcher: tunnel any HTML instantly (no account), deploy to Cloudflare Pages (permanent), then buy a domain and link it via DNS. Use when a user...
clawhub install buy-domain-helperπ About This Skill
name: buy-domain-helper description: | 3-layer site launcher: tunnel any HTML instantly (no account), deploy to Cloudflare Pages (permanent), then buy a domain and link it via DNS. Use when a user wants to share a local page, host a site, or get a custom domain live. version: 1.0.0 metadata: openclaw: requires: env: [] bins: - node - cloudflared - wrangler emoji: "π" homepage: https://github.com/wohaoshuai/buy-domain-helper
Buy Domain Helper
3 layers β pick the depth that fits the user's need:
| Layer | What it does | Needs |
|-------|-------------|-------|
| 1 β Tunnel | Instant public URL for any local dir or port | Nothing (cloudflared auto-installs) |
| 2 β Pages | Permanent hosting on *.pages.dev | Cloudflare account + Pages token |
| 3 β Domain | Custom domain linked to Pages via DNS | Domain purchased + DNS token |
Helper script
node site.js [--token CF_API_TOKEN] [--account CF_ACCOUNT_ID]
| Command | Layer | Description |
|---------|-------|-------------|
| tunnel | 1 | Instant public URL via Cloudflare Tunnel |
| deploy | 2 | Deploy to Cloudflare Pages |
| zone | 3 | Get zone ID for a domain |
| dns-link | 3 | Add CNAME pointing domain to Pages |
| pages-domain | 3 | Attach custom domain to Pages project |
| domain-check | 3 | Check availability on Cloudflare Registrar |
Setup
cloudflared installs automatically via Homebrew if missing.Create tokens at: https://dash.cloudflare.com/profile/api-tokens
βοΈ Configuration
cloudflared installs automatically via Homebrew if missing.Create tokens at: https://dash.cloudflare.com/profile/api-tokens