react-rewrite-cli
v0.1.1
Published
Visual overlay for React dev servers — select components, drag to reorder, and draw on a Figma-style canvas
Downloads
277
Maintainers
Readme
react-rewrite
react-rewrite lets you edit a React app visually while it is running locally, then write those changes back to the source files in your project.
It works by opening a proxy in front of your dev server and injecting an overlay into the page.
Fastest path
You do not need to download or clone this repo.
From the root of your React app:
npm install -D react-rewrite-cliStart your dev server, then in a second terminal run:
npx react-rewriteIf you want to try it without installing first:
npx react-rewrite-cli@latestRequirements
- Node.js 20+
- A React project
- A running development server
- Supported app setups: Next.js, Vite, and Create React App
Install
From the root of the React app you want to edit:
npm install -D react-rewrite-cliOr run it without installing first:
npx react-rewrite-cli@latestRun
After installing locally:
npx react-rewriteIf auto-detection does not pick the right port:
npx react-rewrite 3000CLI options
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 loggingNotes
- Run the command from your app's root directory.
- It only works against development builds, not production builds.
- Only files inside the current project are eligible for writes.
