themelab-cli
v0.2.1
Published
Visual overlay for React dev servers — select components, drag to reorder, and draw on a Figma-style canvas
Maintainers
Readme
themelab
themelab 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 themelab-cliStart your dev server, then in a second terminal run:
npx themelabIf you want to try it without installing first:
npx themelab-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 themelab-cliOr run it without installing first:
npx themelab-cli@latestRun
After installing locally:
npx themelabIf auto-detection does not pick the right port:
npx themelab 3000CLI options
themelab [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.
