HugeUI · Docs

Use HugeUI in your project

Open your pages on a canvas, comment on them, and let your own coding agent make the change. Apply a template you own to any page.

Get started

You need Node 22 or newer, a React project that runs with Vite or Next.js, and Claude Code or Codex installed and signed in on your computer.

cd your-project
npx hugeui login     # connect your HugeUI account (once per computer)
npx hugeui           # open the canvas

The canvas opens in your browser at a local address. It runs only on your computer, and your agent uses your own subscription. Press Ctrl+C in the terminal to stop it.

The canvas

Every page of your project shows as a live frame. Edits appear by hot reload as soon as a file is saved.

  • V, Select: click an element to pick it, then ask for a change in the chat.
  • C, Comment: click a spot or drag an area and write what should change. Send one comment, or all of them at once.
  • H or hold Space: move around. Scroll to pan, Cmd or Ctrl and scroll to zoom, Cmd 0 to fit.

When the agent is blocked from something (a command, a website, a folder outside your project) the chat asks you: allow it once, or always in this project.

Templates

A template is a finished screen: a design prompt for your agent and the React code behind it. Buy one template, or all of them, once. They stay yours.

On the canvas, open Templates, pick one you own, and apply it to an existing page (it gets restyled, your content stays) or to a new page. From a terminal:

npx hugeui templates                      # list templates, owned ones are marked
npx hugeui templates brick                # print the design prompt
npx hugeui templates brick --code ./brick # save the React code

Template code uses React, Tailwind CSS v4 and the free Hugeicons set (@hugeicons/react and @hugeicons/core-free-icons). Your agent installs what is missing when it applies a template.

Agent skill

Teach your agent to check HugeUI templates and follow our taste rules whenever it builds UI, even outside the canvas:

npx hugeui skill           # Claude Code: .claude/skills/hugeui/SKILL.md
npx hugeui skill --codex   # also adds a marked HugeUI section to AGENTS.md

Claude Code and Codex

Pick the agent in the chat. HugeUI starts the CLI you already use on your computer, with your own sign-in and plan. Claude Code edits files inside your project and follows your own Claude Code permission settings for anything else; when it is blocked, the chat asks you. Codex runs in its workspace sandbox, so it can only write inside your project.

Pages and frameworks

Vite: files in src/pages become pages, otherwise the canvas shows the home page. Next.js: pages come from the app or pages folder. Dynamic routes are skipped. Use Add page on the canvas for any other route.

The list is saved in .hugeui/config.json in your project, along with comments and chat. HugeUI adds .hugeui to .gitignore.

{ "routes": ["/", "/pricing", "/settings"], "frame": { "width": 1440, "height": 1024 } }

What runs where

The canvas, your dev server and the agent all run on your computer, on 127.0.0.1 only, protected by a random token for each session. HugeUI never sees your code. The hugeui.com account is only used to sign in and to fetch the templates you own.

Troubleshooting

  • "Claude Code was not found": install it from claude.com/claude-code, sign in, then restart npx hugeui.
  • "Your sign-in expired": run npx hugeui login again.
  • A page stays on Loading: run npx hugeui --verbose to see your dev server output.
  • Sign out a computer: open your account page and choose Sign out next to it, or run npx hugeui logout there.

Still stuck? Contact support.