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

@rsc-boundary/next

v0.3.2

Published

Next.js App Router adapter for [RSC Boundary](https://github.com/foxted/rsc-boundary) — visualize the boundary between React Server Components and Client Components in your browser.

Downloads

639

Readme

@rsc-boundary/next

Next.js App Router adapter for RSC Boundary — visualize the boundary between React Server Components and Client Components in your browser.

Quick start

pnpm add @rsc-boundary/next
# or: npm install @rsc-boundary/next
# or: yarn add @rsc-boundary/next

In your root layout (app/layout.tsx):

import { RscBoundaryProvider } from "@rsc-boundary/next";

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

That's it. No changes needed to any other component.

What it does

A small floating pill appears in the bottom-left corner of your page during development. Click it to toggle boundary highlighting:

  • Orange dashed outlines around client component subtrees ("use client")
  • Blue dashed outlines around server-rendered regions (heuristic ~ or optional explicit markers)
  • Labels on each region showing the component name / host tag and provenance
  • Panel listing client components and server regions with explicit vs heuristic badges

In production builds, RscBoundaryProvider renders only {children} — no devtools UI, no extra DOM nodes, and no scanning work.

Optional API

import {
  RscServerBoundaryMarker, // explicit server region labeling
  SERVER_BOUNDARY_DATA_ATTR, // raw data attribute
} from "@rsc-boundary/next";

Wrap a server-rendered subtree with <RscServerBoundaryMarker label="MyRegion"> to give it a stable name in the panel instead of the heuristic host-tag label.

The marker uses an asChild-style pattern: it does not render a wrapper element. Instead it injects data-rsc-boundary-server="MyRegion" onto its single child element during development. In production builds it is a pure pass-through — no cloning, no attribute, no extra DOM — so forgetting a marker in production has zero impact on the shipped HTML or CSS.

Pass a single React element as children. For reliable detection prefer a host element (e.g. <section>, <div>); custom components only propagate the attribute if they spread unknown props onto their root DOM node.

Migrating from rsc-boundary

The unscoped rsc-boundary package on npm is deprecated — use @rsc-boundary/next for new work (it includes @rsc-boundary/core as a dependency).

pnpm remove rsc-boundary && pnpm add @rsc-boundary/next
-import { RscBoundaryProvider } from "rsc-boundary";
+import { RscBoundaryProvider } from "@rsc-boundary/next";

The API is identical.

Requirements

  • Next.js 16+ (App Router)
  • React 19+