create-redev
v0.1.0
Published
One-command installer for redev. Detects your framework, installs the right packages, wires up the overlay.
Downloads
178
Maintainers
Readme
create-redev
One-command installer for redev. Detects your framework, installs the right packages, and wires up the overlay in your source.
Use
From your project root:
npx create-redev@latestThat's it. It will:
- Detect your framework from
package.json(Next.js, Vite, or fall back to manual) - Detect your package manager (npm / pnpm / yarn / bun) from lockfiles
- Install
redev-cli+ the right companion (redev-nextjsorredev-vite-plugin) - Modify the appropriate file:
- Next.js → adds
<RedevScript />toapp/layout.tsx - Vite → adds
redev()tovite.config.{js,ts} - Other → prints the raw
<script>tag to paste
- Next.js → adds
Then in two terminal tabs:
npm run dev # tab 1
npx redev-cli # tab 2Open your app and press Cmd+Shift+E.
Flags
npx create-redev@latest --next # force Next.js path
npx create-redev@latest --vite # force Vite path
npx create-redev@latest --manual # install redev-cli only, print script tag
npx create-redev@latest --no-edit # install packages but skip source editsWhat if the file edit fails?
The edits are regex-based and target the shape of default framework templates. If your app/layout.tsx or vite.config.js has an unusual shape, the tool falls back to printing the exact snippet for you to paste, and continues installing the packages. Nothing is destructive.
License
MIT
