npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@angelitolm/next-toolbar

v0.6.2

Published

Floating debug toolbar for the Next.js App Router (dev only): status, route, render mode, timings, fetch cache with tags and revalidation, request profiler, Server Actions with revalidation, SEO metadata, broken links and security advisories

Downloads

2,166

Readme

NextToolbar

A floating debug toolbar for the Next.js App Router. It answers the questions you ask all day while building (did this page return a 200? is it static? why is it slow? did that fetch hit the cache?) without switching to DevTools or the terminal. Dev only: renders nothing in production builds. A self-hosted staging server can opt in for QA with a secret; see Staging.

It floats as a full-width strip at the bottom of the page. Minimize it (logo or ×) and it shrinks to a circle showing the status of the page: a gradient dot when OK, a red count when there are errors. Click the circle to expand it again. Styles live in a Shadow DOM, so they never clash with your app.

Shows, for the current page:

  • HTTP status (document load or client navigation)
  • Route pattern (/blog/[slug])
  • Render mode: Static / Dynamic / Static? (dynamic segment, depends on generateStaticParams)
  • Server render time, TTFB / navigation time
  • Server fetch calls with data-cache stats: HIT / HMR / MISS / SKIP, hit rate and reason (Next 16.3+ with request insights). With the server route, each fetch also shows its freshness and cache tags, and a button to revalidate it by them
  • Client and server errors: click a server error to open it in the profiler, expand a client error to see its stack
  • Next.js and React versions
  • Server Actions: every call with status, time, what it revalidated and where it redirected, plus a Refresh page button
  • SEO: title, description, canonical, og:image and JSON-LD as they reached the page, with what's missing or broken
  • Broken links: checks the page's internal links on demand (3 at a time) and outlines the broken ones
  • Security: known vulnerabilities of the installed Next.js (GitHub Security Advisories), with the version to upgrade to. Disable with securityCheck={false}

Click the request id (e.g. 7b5063) to open the profiler: recent requests (documents and RSC payloads) with status, summary, root-cause errors, server fetches and a span timeline. Full detail needs Next 16.3+ with experimental.requestInsights; on older versions it lists the page visits recorded by the browser (status, route, timing, client errors). Clear empties the request list (keeping the current page's request) and the client errors. Esc closes it.

Requires Next.js 15+ and React 19. basePath and assetPrefix work without extra config.

Documentation: next-toolbar.angellm.dev · Live demo · Español

Install

pnpm add -D @angelitolm/next-toolbar
// app/layout.tsx
import { NextToolbar } from '@angelitolm/next-toolbar'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <NextToolbar />
      </body>
    </html>
  )
}

Theme

Follows the OS light/dark preference by default. Force one with the theme prop; the theme button in the toolbar cycles system → light → dark and remembers the choice per browser.

<NextToolbar theme="dark" />

Recommended next.config.ts:

const nextConfig = {
  // Next's own indicator sits bottom-left by default and overlaps the toolbar.
  devIndicators: { position: 'top-right' },
  // Next 16.3+ only: server timing, fetches and exact route patterns.
  experimental: { requestInsights: true },
}

Server route (optional)

Revalidate paths and tags from the toolbar's Server Actions panel, and see action names instead of ids:

// app/api/next-toolbar/route.ts
export { GET, POST } from '@angelitolm/next-toolbar/server'

It answers 404 outside next dev, and to any request without the toolbar's x-next-toolbar header.

Limitations

  • Render mode is Next's dev heuristic: it only sees request APIs (headers(), cookies(), searchParams...) and dynamic = 'force-dynamic'. The toolbar also marks routes Dynamic when a fetch opts out of caching (no-store, revalidate: 0, noStore()), which needs request insights, and shows Static? for dynamic segments. dynamic = 'force-static' is not detected.
  • SSG vs ISR: next dev renders every request on demand, so both show as Static. Use next build && next start to see real caching.
  • Crashing pages: an uncaught render error makes Next replace the root layout with its error page, toolbar included. Also render <NextToolbar /> in app/global-error.tsx to keep it on screen.
  • Cache Components (Next 16): Next doesn't publish static/dynamic info for these apps; render mode shows ?.
  • Route pattern on Next 15 is rebuilt from useParams() and can mislabel a param whose value matches a static segment.
  • Status code needs responseStatus (Chrome, Edge, Firefox). Safari shows —.
  • Render mode and insights come from Next's internal dev HMR socket and may break in future Next versions; the toolbar degrades to ? instead of failing.