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

next-mahine-rsc-inspector

v1.0.4

Published

Inspect and analyze Next.js React Server Components architecture

Readme


🚀 Overview

Next Mahine RSC Inspector is a comprehensive analysis tool designed to help developers understand and optimize their Next.js App Router architecture. It provides detailed insights into React Server Components (RSC) usage, component distribution, and performance patterns.

Whether you're auditing a codebase, optimizing performance, or ensuring best practices, this tool gives you the visibility you need into your Next.js application's architecture.

✨ Features

📊 Client vs Server component count Instantly see how many components run on the client and how many run on the server.

🧠 RSC architecture insights Understand how your App Router is structured and how components interact.

⚡ Performance-oriented analysis Identify patterns that may impact bundle size or rendering performance.

🧩 Component distribution overview Visualize how components are spread across your application.

📊 Comprehensive Analysis

  • Automatic detection of app/ or src/ directories
  • Accurate classification of Server vs Client Components
  • Folder-by-folder statistics for detailed insights
  • Percentage ratios for quick assessment

🛠️ Multiple Output Formats

  • Visual CLI reports with progress bars and colored output
  • JSON export for integration with other tools
  • File output for saving reports
  • Programmatic API for custom integrations

🔧 Developer Experience

  • Zero-configuration - works out of the box
  • TypeScript support with full type definitions
  • Fast execution with minimal dependencies
  • Cross-platform support (Windows, macOS, Linux)

exemple:

📦 Quick Start

Method 1: Quick Run (No Installation)

npx next-mahine-rsc-inspector


Method 2: Local Installation
npm install next-mahine-rsc-inspector --save-dev
npx next-mahine-rsc-inspector


Method 3: Global Installation
npm install -g next-mahine-rsc-inspector
next-mahine-rsc-inspector



JSON Output

# Export as JSON to console
npx next-mahine-rsc-inspector --json

# Save JSON report to file
npx next-mahine-rsc-inspector --json -o report.json

# Combine folder stats with JSON
npx next-mahine-rsc-inspector --by-folder 


Output Examples
Visual Report



{
  "projectName": "my-nextjs-app",
  "projectRoot": "/path/to/project",
  "appDir": "/path/to/project/src",
  "folders": {
    "app": { "server": 5, "client": 2 },
    "components": { "server": 3, "client": 12 },
    "components/ui": { "server": 1, "client": 8 }
  },
  "total": 31,
  "client": 22,
  "server": 9,
  "ratioServer": 29,
  "ratioClient": 71
}




MIT License

Copyright (c) 2026 Mahaman Mahine Kamagaté
created: 26/01/2026