cd /news/ai-tools/show-hn-react-rewrite-a-visual-edito… · home topics ai-tools article
[ARTICLE · art-18721] src=github.com pub= topic=ai-tools verified=true sentiment=· neutral

Show HN: React-Rewrite – A visual editor for React that writes code, no LLM

React-rewrite, a new open-source visual editor for React applications, allows developers to edit a running React app locally and automatically writes those changes back to the project's source files. The tool, which works with Next.js, Vite, and Create React App, injects an editing overlay via a proxy server and supports property editing, text editing, and element reordering without relying on a large language model.

read3 min publishedMay 30, 2026

react-rewrite

lets you edit a React app visually while it is running locally, then automatically writes those changes back to the source files in your project.

It is built for local development and works by opening a proxy in front of your dev server and injecting an overlay into the page.

full demo: https://x.com/imdonghakim/status/2038230475894899119

You do not need to download or clone this repo.

From the root of your React app:

npm install -D react-rewrite-cli

Start your dev server, then in a second terminal run:

npx react-rewrite

If you want to try it without installing first:

npx react-rewrite-cli@latest
  • Select an element and inspect its component name, file path, and line number

  • Edit supported Tailwind-based layout, spacing, size, typography, and color properties

  • Double-click text to edit it inline

  • Copy, paste, and duplicate elements

  • Delete elements

  • Reorder sibling elements

  • Stage multiple changes and apply them with Confirm - Undo in-progress canvas changes and review applied changes in the changelog

  • Node.js 20+

  • A React project (18+)

  • A running development server

  • Supported app setups: Next.js, Vite, and Create React App

Tailwind CSS is recommended if you want to use the property editor. Text editing and some structural actions do not depend on Tailwind.

Run this in the root of the React app you want to edit:

npm install -D react-rewrite-cli

If you don't want to install it first, you can also run it directly with npx react-rewrite-cli@latest

.

  • Start your React dev server as usual.
  • In a second terminal, from the same project root, run:
npx react-rewrite

If auto-detection does not pick the right port, pass it explicitly:

npx react-rewrite 3000

The tool opens a local proxy in your browser, shows the editing overlay, and writes confirmed changes back into files inside your project.

  • Click an element to inspect and select it.
  • Edit properties in the sidebar, drag to reorder where supported, or double-click text to change copy.
  • Review pending changes in the UI.
  • Click Confirm to apply them to your source files.
react-rewrite [options] [port]

Arguments:
  port           Dev server port override

Options:
  --no-open      Don't open browser automatically
  --host <host>  Dev server host (default: "localhost")
  --verbose      Enable debug logging
Shortcut Action
Ctrl/Cmd + C
Copy selected element
Ctrl/Cmd + V
Paste copied element as sibling
Ctrl/Cmd + D
Duplicate selected element in place
Delete / Backspace
Remove selected element
Ctrl/Cmd + Z
Undo canvas changes
Ctrl/Cmd + Shift + L
Toggle changelog
Ctrl/Cmd + Click
Follow links through the overlay
Double-click text Edit text inline
  • Run react-rewrite

from your app's root directory so it can detect the framework and safely resolve file paths. - It only works against development builds, not production builds.

  • Only files inside the current project are eligible for writes.

To work on this repository itself:

pnpm install
pnpm build
pnpm test -- --run

For iterative CLI development:

pnpm dev

You will still need a separate supported React app running locally to test the tool end to end.

packages/
  cli/      CLI, proxy server, and source transforms
  overlay/  Injected browser overlay
  shared/   Shared TypeScript types
── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-react-rewrit…] indexed:0 read:3min 2026-05-30 ·