explaingit

jasswhiteleaf/nextdoctor

Analysis updated 2026-05-18

1TypeScriptAudience · developerComplexity · 2/5Setup · easy

TLDR

A command line tool that diagnoses, auto-fixes, and shows a live dashboard of memory usage for Next.js development servers.

Mindmap

mindmap
  root((repo))
    What it does
      Diagnoses memory issues
      Applies safe fixes
      Live memory dashboard
    Tech stack
      TypeScript
      Next.js
      Node.js
    Use cases
      Debug memory leaks
      Auto tune config
      Monitor dev servers
    Audience
      Next.js developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Diagnose why a Next.js dev server keeps using more and more memory as you work.

USE CASE 2

Automatically apply safe configuration fixes to reduce memory usage, with a backup made first.

USE CASE 3

Watch a live dashboard of memory usage for one or several Next.js dev servers at once, including monorepo setups.

What is it built with?

TypeScriptNext.jsNode.jsnpm

How does it compare?

jasswhiteleaf/nextdoctor0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyhardeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Runs instantly via npx with no installation needed for a first try.

No license information is included in the material provided.

In plain English

nextdoctor is a command line tool that watches, diagnoses, and fixes memory problems in Next.js development servers. Next.js dev servers can hold onto a growing amount of memory as a developer visits more routes and pages while working, and how bad this gets depends on the Next.js version, the bundler in use, and the project's configuration. This tool gives visibility into what is actually happening and offers one command tuning to help. A person can try it on a single project without installing anything, by running it directly through npx inside their Next.js project folder. Once someone decides they like it, it can be installed globally so the command is available across every project, or installed as a per project development dependency. The tool has three main commands. Diagnose runs a static scan of the current project, checking the Next.js version, whether Turbopack's memory eviction feature is being used, and whether the project is part of a monorepo setup. Fix applies the safe changes that diagnose suggests, such as tuning entry settings or removing a setting that accidentally disabled memory eviction, and it always makes a backup of the configuration file first and shows what it plans to change before writing anything. Dev wraps a project's actual development command and shows a live dashboard of memory usage across the whole process tree, including any worker processes Next.js spawns, with the option to automatically restart the server if memory crosses a set limit. It can also watch several apps at once, which is useful for monorepos with multiple dev servers running side by side. The project runs entirely on the developer's own machine, with no telemetry and no network calls, and only touches the project files it is pointed at. The author describes it as an early version, where the fix command intentionally makes small, easy to review text changes to configuration files rather than a full automated rewrite.

Copy-paste prompts

Prompt 1
Run npx @gowhiteleaf/nextdoctor diagnose on my project and explain what the results mean.
Prompt 2
Walk me through installing nextdoctor globally and setting up a nextdoctor.config.json file.
Prompt 3
Explain what the nextdoctor fix command changes in my next.config file before I run it.
Prompt 4
Help me set up nextdoctor dev to watch multiple apps in my monorepo at once.

Frequently asked questions

What is nextdoctor?

A command line tool that diagnoses, auto-fixes, and shows a live dashboard of memory usage for Next.js development servers.

What language is nextdoctor written in?

Mainly TypeScript. The stack also includes TypeScript, Next.js, Node.js.

What license does nextdoctor use?

No license information is included in the material provided.

How hard is nextdoctor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is nextdoctor for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.