Visual editing overlay for Next.js — click any element, edit its styles and text, watch your source files update live.
No AI. No cloud. No accounts. Everything stays local.
The fastest way — one command sets everything up automatically:
npx @vibedit/next initThis will:
- Install
@vibedit/nextas a devDependency - Patch your
next.config.mjswithwithVibedit - Inject the overlay
<Script>into yourapp/layout.tsx
Then restart your dev server and look for the Vibedit button in the bottom-right corner.
If you prefer to configure manually:
1. Install
npm install --save-dev @vibedit/next2. next.config.mjs
import { withVibedit } from '@vibedit/next';
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default withVibedit(nextConfig);3. app/layout.tsx
import Script from 'next/script';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body suppressHydrationWarning>
{children}
{process.env.NODE_ENV === 'development' && (
<Script src="/_vibedit/overlay.js" strategy="beforeInteractive" />
)}
</body>
</html>
);
}4. Run npm run dev and look for the Vibedit button in the bottom-right corner.
withVibedit(nextConfig, {
port: 4242, // WebSocket server port (default: 4242)
undoLimit: 50, // Max undo steps (default: 50)
prettier: true, // Format files with Prettier after writing (default: true)
})- Inline CSS properties (color, spacing, typography, borders, shadows…)
- Text content — including i18n translation objects
- Full undo history (Ctrl+Z in browser)
Works with Next.js 13+ (App Router and Pages Router). Tested with Next.js 15.
MIT