StarStack 星栈 IPFS 分发
IPFS 静态网站分发层(https://starstack.store),为 AI 编程工具生成的 HTML 页面提供一键式全球发布服务。
上传文件(multipart/form-data)
curl -X POST "https://starstack.store/api/ipfs-upload" \
-F "file=@index.html"
响应:
{"cid":"Qm...","gateway":"https://starstack.store/ipfs/Qm...","pinned":true}
粘贴 HTML 发布
const form = new FormData();
form.append('file', new Blob([htmlString], {type: 'text/html'}), 'index.html');
const res = await fetch('https://starstack.store/api/ipfs-upload', {method: 'POST', body: form});
const {gateway} = await res.json();
访问已发布内容
https://starstack.store/ipfs/<CID>
其他 API
GET /api/ipfs-health— 健康检查GET /api/pins— 已固定文件列表GET /api/cluster/peers— 集群节点状态(新加坡 Leader/东京/首尔/曼谷/美国)
付费触发
本技能按调用量计费(¥0.50/次)。每次上传文件触发一次计费。支付失败返回 402 提示重试。
产品优势
- 零配置:无需服务器、无需域名
- 抗审查:IPFS 内容寻址,5 节点冗余
- 永久在线:内容持久化,不因服务器下线丢失
- 全球加速:亚洲多节点 + 美国节点
- 不可篡改:CID 内容寻址