Menu
NextToolbar

Introduction

What NextToolbar is, what it shows and when to use it.

NextToolbar is a floating debug toolbar for the Next.js App Router. It sits at the bottom of your app while you run next dev and tells you, at a glance, what just happened on the page you are looking at.

Why

Building a Next.js app means asking the same questions all day:

  • Did this page return a 200, or did something fail on the server?
  • Is this route static, or will it render on every request in production?
  • Why did it take 800 ms? Was it the render or a slow fetch?
  • Did that fetch hit the cache, or go to the network every time?

The answers exist, but they're scattered: the Network tab, the terminal running next dev, Next's own indicator, and sometimes a next build just to find out. You lose the thread every time you switch.

NextToolbar puts them where you're already looking: on the page itself, updated on every navigation.

┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ N │ 200  # f9b45c  ⌥ /blog/[slug]  Static? │ ⏱ 39 ms server 46 ms nav  ⇄ fetch 3  ⚠ errors 0 │ … Next 16.4.1  ◐  ⊗ │
└───────────────────────────────────────────────────────────────────────────────────────────────┘

What it shows

  • HTTP status of the page, for full loads and for client-side navigations.
  • The route that matched, as a pattern: /blog/[slug], not just /blog/hello.
  • Render mode: whether the route is Static or Dynamic, including the cases where Next's own dev indicator gets it wrong.
  • Timing: server render time, time to first byte, and client navigation time.
  • Server fetch calls with their data-cache outcome (HIT, MISS, SKIP…) and a hit rate.
  • Errors on the client and on the server, with stack traces and the span where a server error started.
  • A request profiler with every request the dev server handled: summary, errors, fetches and a timeline of the render.
  • Server Actions: every action call from the page, with its status, time, what it revalidated and where it redirected.
  • SEO: the title, description, canonical, Open Graph image and JSON-LD that reached the page, with what's missing or broken.
  • Broken links: checks the page's internal links on demand and outlines the broken ones.
  • Security: known vulnerabilities of your Next.js version, with the version to upgrade to.
  • Versions of Next.js and React.

It is dev only: in a production build the component renders nothing.

Quick look

app/layout.tsx
tsx
import { NextToolbar } from '@angelitolm/next-toolbar'
 
export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <NextToolbar />
      </body>
    </html>
  )
}

Try it without installing

The live demo runs the real toolbar on simulated requests: a static page, a no-store fetch, a 500, a 404, a client error… Hover the segments, open the profiler, minimize it.

Requirements

MinimumFull feature set
Next.js15, App Router16.3+ with experimental.requestInsights
React1919

Next 15 to 16.2 get status, route, render mode, client timing, client errors and versions. Server timing, fetches, the no-store render-mode correction and the profiler need the request insights of Next 16.3+. See Compatibility.

Where to go next