
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
next-plugin-devtools-json
Advanced tools
Next.js plugin for Chrome DevTools project settings - seamless development integration with rewrites and standalone server
Next.js plugin for generating the Chrome DevTools project settings file on-the-fly during development. This is the Next.js equivalent of vite-plugin-devtools-json.
This enables seamless integration with the new Chrome DevTools features:
pages/ and app/ routernpm run devnpm install --save-dev next-plugin-devtools-json
Run the setup command:
npx next-plugin-devtools-json
Or manually add to your Next.js config:
next.config.js (CommonJS):
const withDevToolsJSON = require('next-plugin-devtools-json');
const nextConfig = {
// your config
};
module.exports = withDevToolsJSON(nextConfig);
next.config.mjs (ESM):
import withDevToolsJSON from 'next-plugin-devtools-json';
const nextConfig = {
// your config
};
export default withDevToolsJSON(nextConfig);
This plugin runs a standalone HTTP server (on port 3001) during development and adds a Next.js rewrite to proxy the DevTools endpoint (/__devtools_json) to the server. This serves the Chrome DevTools project settings JSON file, enabling Chrome DevTools to automatically recognize your local development project and provide enhanced debugging capabilities.
The /__devtools_json endpoint serves the project settings as JSON with the following structure:
{
"workspace": {
"root": "/path/to/project/root",
"uuid": "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"
}
}
Where root is the absolute path to your project root folder, and uuid is a random v4 UUID, generated the first time you start the Next.js dev server with the plugin installed (it's cached in .next/cache/ for consistency).
The plugin only runs during development (npm run dev) and automatically serves the required endpoint without needing any API routes or additional configuration.
To enable automatic workspace folder detection in Chrome DevTools:
Once enabled, Chrome DevTools will automatically detect your Next.js project when you visit http://localhost:3000 during development.
Port 3001 already in use? The plugin will log a warning but continue to work if port 3001 is occupied. You can specify a custom port:
module.exports = withDevToolsJSON(nextConfig, { port: 3002 });
Plugin not working? Make sure you're running in development mode (NODE_ENV=development or npm run dev) as the plugin is disabled in production for security.
While the plugin can generate a UUID and save it in .next/cache/, you can also specify it in the options:
const withDevToolsJSON = require('next-plugin-devtools-json');
module.exports = withDevToolsJSON(nextConfig, {
uuid: "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b"
});
Available options:
uuid - Custom UUID for the workspace (optional, auto-generated if not provided)endpoint - Custom endpoint path (optional, defaults to /__devtools_json)enabled - Explicitly enable/disable the plugin (optional, defaults to true in development)port - Custom port for the DevTools server (optional, defaults to 3001)This plugin is inspired by and serves as the Next.js equivalent of vite-plugin-devtools-json.
MIT
FAQs
Next.js plugin for Chrome DevTools project settings - seamless development integration with rewrites and standalone server
The npm package next-plugin-devtools-json receives a total of 229 weekly downloads. As such, next-plugin-devtools-json popularity was classified as not popular.
We found that next-plugin-devtools-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.