Skip to content

Add gui-new skill — shareable HTML canvases via API#187

Closed
dylanfeltus wants to merge 1 commit intoopenclaw:mainfrom
dylanfeltus:add-gui-new
Closed

Add gui-new skill — shareable HTML canvases via API#187
dylanfeltus wants to merge 1 commit intoopenclaw:mainfrom
dylanfeltus:add-gui-new

Conversation

@dylanfeltus
Copy link

gui-new

POST HTML, get a shareable link with real-time sync built in.

What it does: Creates shareable HTML canvases via the gui.new API. Visual output layer for AI agents — dashboards, charts, forms, diagrams become live URLs instead of code blocks.

When to use: Generating visual output, sharing/previewing HTML as a live link, creating Mermaid diagrams as shareable links.

Features:

@openclaw-barnacle
Copy link

Thanks for the pull request! This repository is read-only and is automatically synced from https://clawhub.ai, so we can’t accept changes here. Please make updates on the website instead.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbac2675ca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Escape HTML before embedding it in curl JSON body

The documented -d '{"html": "..."}' pattern breaks for typical HTML because unescaped " (from attributes like class="...") or ' (from JS/HTML content) will produce invalid JSON or terminate the shell string, so the create/update API calls fail on common real-world inputs rather than simple <h1> snippets. Since this is the primary workflow of the skill, the docs should show a safe encoding method (for example reading HTML from a file and JSON-encoding it) instead of inline raw HTML.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant