html-anything: Turn Your Local AI Agent into a Publishing Engine

html-anything AI agent interface generating production-ready HTML code from Markdown input

You write a great article in Markdown, then spend half an hour reformatting it for WeChat. Screenshot it for Weibo — blurry mess. Want to make a Xiaohongshu card? Open Figma and start from scratch.

Same content, different platform — redo the work every single time. Honestly, it’s exhausting.

Here’s what really stings: the Anthropic Claude Code team recently said something that cuts deep — they’ve stopped writing Markdown docs internally. They output HTML directly. The reasoning is brutally straightforward — Markdown is convenient for writers, but HTML is what readers actually see.

The problem? Most people don’t want to hand-write HTML+CSS. So can we have AI do it?

Last week, an open-source project appeared on GitHub that solves this problem perfectly. It’s called html-anything.

html-anything AI agent interface generating production-ready HTML code from Markdown input
html-anything — turn your local AI agent into a publishing engine

In a Nutshell

html-anything does one simple thing: it turns your local AI Agent (Claude Code, Cursor, Codex — take your pick) into a typesetting engine. Feed it Markdown, CSV, JSON, or even quick notes scribbled on the fly — it gets AI to write beautifully formatted HTML, then publish it to WeChat, X, Zhihu, or Xiaohongshu with a single click.

No API key needed. No extra fees. No manual CSS tweaking.

The project comes from the nexu-io team — the same team behind open-design (40K+ stars on GitHub). On its first day open-source, html-anything shot to 1,700+ stars. In 12 days, it hit 4,600. Right now, it’s sitting at 7K+ stars on GitHub.

Why It Solves a Real Problem

Let’s look at the pain points we all face:

  • Write content in Markdown → Reformat everything for WeChat
  • Create a presentation → Spend hours tweaking styles in PowerPoint / Keynote
  • Build a data report → Screenshot Excel sheets and paste them everywhere
  • Post to social media → Every platform has different dimensions and styles

Anthropic got it right: HTML is the final format. But the question is — who writes the HTML?

html-anything’s answer: AI writes it. You just create the content.

Three Features That Stand Out

1. Zero API Key — Reuse Your Existing Agent

This is its smartest feature. When you start html-anything, it automatically scans your computer’s PATH, finds the coding agents you already have installed and logged in — Claude Code, Cursor, Codex, Gemini CLI, Copilot, OpenCode, Qwen, Aider — all 8 are supported.

No need to spend money on API calls. No configuring keys. Just use your existing subscriptions.

In simple terms: your Agent does the writing, html-anything handles the publishing. Marginal cost = $0.

2. 75 Professional Templates, 9 Delivery Formats

This is where it gets seriously powerful. html-anything comes with 75 rigorously designed Skill templates covering virtually every content scenario:

  • Magazine articles: Warm parchment style, excellent long-read experience
  • Keynote presentations: 20 templates including Swiss International Style and editorial layouts
  • Xiaohongshu cards: 3:4 vertical cards with soft pastel aesthetic
  • Social post cards: Designed for X / Weibo
  • Web prototypes: SaaS landing pages, dashboards, data reports
  • Video effect frames: Glitch-art titles, typewriter cursor effects — integrates with Remotion to render .mp4 directly
  • Office documents: Weekly reports, OKRs, meeting notes, engineering runbooks

Every template enforces hard constraints — 8px baseline grid, CJK-first font stack, contrast ratio no lower than 4.5, no pure black or pure white, real data only.

3. One-Click Export, Zero Secondary Formatting

This is the most satisfying part. Once the HTML is generated, one click exports to any platform:

  • WeChat public account: All CSS inlined (processed with juice), paste and use — styles preserved perfectly
  • X / Weibo / Xiaohongshu: Automatically rendered as 2× high-DPI PNG, copied directly to clipboard
  • Zhihu: LaTeX formulas automatically converted to Zhihu-compatible image placeholders
  • Download: Single-file .html or high-resolution .png

From draft to publishable — just one button away.

75 html-anything design templates for magazines, presentations, social cards, and office documents
75 templates covering magazines, presentations, social cards, and more

Watch AI Write HTML in Real Time

html-anything uses SSE (Server-Sent Events) for streaming rendering. The Agent’s stdout is pushed to the frontend in real time — you can watch the HTML render line by line in the preview window.

Not happy with the layout? Interrupt anytime, tweak the prompt, and regenerate.

Security is also handled well: all user-generated HTML runs in a sandboxed iframe, isolated from the host page. DNS rebinding attack protection is built in.

How to Get Started

git clone https://github.com/nexu-io/html-anything
cd html-anything
pnpm install
pnpm -F @html-anything/next dev
# Open http://localhost:3000

Prerequisite: at least one AI coding agent installed on your machine (Claude Code, Cursor, or any of the 8 supported tools).

Bottom Line

html-anything takes one of the most annoying parts of content creation — reformatting for different platforms — and makes it disappear. AI handles the typesetting, you focus on what matters: the content itself.

With 7K+ GitHub stars and growing, it’s not hard to see why the community is rallying behind this approach. HTML-first, AI-powered, zero-friction publishing might just be the way forward.

Check it out: github.com/nexu-io/html-anything

By peter_lzh

Author of in-depth reviews of AI open-source tools; focuses on identifying high-value open-source projects and providing practical testing results as well as guidance for making choices.

One thought on “html-anything: Turn Your Local AI Agent into a Publishing Engine”

Leave a Reply

Your email address will not be published. Required fields are marked *