← 返回
内容创作 中文

gui.new

Create shareable HTML canvases via the gui.new API. Use when: (1) generating visual output (dashboards, charts, forms, tables, diagrams, landing pages, inter...
通过 gui.new API 创建可分享的 HTML 画布。使用场景:(1) 生成可视化输出(仪表盘、图表、表单、表格、图示、落地页等)
dylanfeltus
内容创作 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 548
下载
💾 6
安装
1
版本
#latest

概述

gui.new

HTML in, URL out. One API call turns HTML into a shareable link.

Create a Canvas

curl -X POST https://gui.new/api/canvas \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Hello</h1>", "title": "My Canvas"}'

Response: {"id": "abc123", "url": "https://gui.new/abc123", "edit_token": "...", "expires_at": "..."}

Always share the url with the user after creating.

Update a Canvas

curl -X PUT https://gui.new/api/canvas/CANVAS_ID \
  -H "Authorization: Bearer EDIT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Updated</h1>"}'

Extend Expiry

curl -X POST https://gui.new/api/canvas/CANVAS_ID/extend \
  -H "Authorization: Bearer EDIT_TOKEN"

Mermaid Diagrams

curl -X POST https://gui.new/api/flow \
  -H "Content-Type: application/json" \
  -d '{"mermaid": "graph TD\n  A[Start] --> B[End]"}'

Pro API Key (optional)

For extended expiry and higher limits, pass x-api-key header + "expires": "7d" body field (1h, 24h, 7d, 30d). No API key is needed for free tier usage.

Security Note

This skill sends HTML content to https://gui.new, a third-party hosted service. Do not send sensitive, private, or confidential data. Canvases are publicly accessible via their URL. Links expire (24h free, up to 30d Pro).

Built-in Components (auto-injected)

Use these tags directly — no script imports needed:

  • code
  • content

Real-Time Sync

All form inputs (text, range, select, checkbox) sync across viewers automatically. No setup needed.

Design Defaults

Dark background (#09090b), light text (#fafafa), system-ui font. Self-contained HTML with inline styles/scripts. Responsive.

Limits

Free: 2MB max, 24h expiry, 3 edits, 5 creates/hour.

Pro: 10MB max, up to 30d expiry, unlimited edits, 100 creates/hour.

SDKs

  • npm: npm install gui-new
  • pip: pip install gui-new
  • Full docs: https://gui.new/docs
  • llms.txt: https://gui.new/docs/llms.txt

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-19 09:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,973
developer-tools

Tiny Builder

dylanfeltus
帮助5-8岁儿童通过简单选择、快速见效且色彩丰富、触控友好的HTML项目,轻松构建游戏、绘画、动画或故事。
★ 2 📥 594
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,221