New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@seggy116/next-diff

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

0.3.0

@seggy116/next-diff

Compare your local Next.js site against live without leaving the page. Press a button, get a diff.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
344
Maintainers
1
Weekly downloads
 
Created
Source

@seggy116/next-diff

Compare your local Next.js site against live without leaving the page.

Press the button, or Ctrl/Cmd + Shift + D, and the page becomes two views: live on the left, local on the right, with every difference marked. Press Exit diff and you're back. It runs inside your own next dev. Nothing is sent to a service.

This is a devDependency. It sits on the Next.js your app already has. It does not replace, install, or upgrade Next.js.

Install

Your app keeps its own Next.js. There is no setup command, no route file, and nothing to add to a layout.

npm i -D @seggy116/next-diff

pnpm add -D @seggy116/next-diff and yarn add -D @seggy116/next-diff are the same install.

Wrap the Next config. live is an origin (https://example.com), not a path. The same wrapper works in next.config.ts.

// next.config.mjs
import { withDiff } from "@seggy116/next-diff";

export default withDiff(
  {
    // your config
  },
  { live: "https://example.com" },
);

Run next dev. A round button sits just above Next's own dev-tools button. Local is that dev server. The viewer always compares live (left) with local (right).

What ships

next build does not compile this package into the app. withDiff returns your config unchanged, and the button and the dev route are not part of the build. The Next.js that serves the site is the one your app already installed.

The dev server only fetches the origin in withDiff. Sessions stay in memory and expire on their own. Your cookies are not sent to the live site.

Pages behind a login are shown logged out. Pages that refuse to be framed may not render.

License

Released under the MIT License.

FAQs

Package last updated on 20 Oct 2026

Related posts