Skip to content

uuuyuqi/html-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-up welcome

html-up

The WYSIWYG HTML editor for the AI era.

Paste AI-generated HTML and edit visually, or create from scratch with Typora-style live rendering.

中文文档


Features

  • Typora-style Editing — Write HTML, see it rendered live. Click to edit, blur to render.
  • Visual-first Mode — Rich-text editing by default (bold, italic, headings, alignment). Click </> to switch to source mode.
  • Smart Paste — Paste full HTML from Claude / ChatGPT — auto-splits into editable blocks.
  • AI Snippet Library — Type / to insert 18 AI-pattern components: comparison cards, timelines, tabs, accordions, and more. Add/remove sub-items directly.
  • Style Presets — 6 block-level style presets (Modern / Dark / Glass / Colorful, etc.) with custom overrides.
  • Attribute Panel — Click any rendered element to visually edit class, id, style, and other attributes.
  • CDN Resources — One-click external CSS/JS resource injection.
  • i18n — Chinese / English interface toggle.
  • Export — Export as a complete HTML file with inline styles.

Screenshots

Visual Editing with Toolbar

Visual editing

Welcome Page

Welcome page

Getting Started

Prerequisites

  • Node.js >= 18
  • npm (comes with Node.js)

Install & Run

git clone https://github.com/uuuyuqi/html-up.git
cd html-up
npm install
npm run dev

After running npm run dev, Vite will start a local dev server. Open your browser and visit:

http://localhost:5173

If port 5173 is already in use, Vite will automatically pick the next available port (e.g. 5174). Check the terminal output for the actual URL.

Build for Production

npm run build
npm run preview    # Preview the production build locally

Usage

  1. Start Writing — Click "Start Writing" on the welcome page to create a new document.
  2. Paste from AI — Click "Paste from AI" to start an editor, then paste HTML generated by ChatGPT / Claude / any LLM.
  3. Visual Edit — Click any rendered block to enter visual editing mode. Use the floating toolbar for formatting (H1-H3, bold, italic, alignment, etc.).
  4. Source Edit — Click </> in the toolbar to switch to raw HTML source editing with CodeMirror.
  5. Insert Snippets — In source mode, type / to open the AI snippet library. Choose from 18 pre-built components.
  6. Style — Click 🎨 in the toolbar to apply style presets or customize CSS properties.
  7. Export — Click "Save" to export as a complete .html file.

Tech Stack

Technology Purpose
TypeScript + Vite Language & build tool
CodeMirror 6 Source code editor
Native DOM API No framework dependency, lightweight
CSS Variables Theming system

Project Structure

src/
├── core/           # Block model, Document model, HTML parser
├── editor/         # BlockView, EditorView, CodeMirror, Renderer
├── features/       # AttributePanel, StylePanel, SnippetLibrary, ResourceManager
│   └── snippets/   # 18 AI-pattern HTML snippet templates
├── toolbar/        # Top toolbar, file operations
├── styles/         # CSS modules (main, toolbar, editor, panels)
├── i18n.ts         # Internationalization (zh/en)
└── main.ts         # App entry point

License

MIT

About

The WYSIWYG HTML editor for the AI era. Typora-style live rendering for HTML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors