<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Robin Nayak</title>
    <description>The latest articles on DEV Community by Robin Nayak (@robin_nayak_ccbd1e8d231d8).</description>
    <link>https://dev.to/robin_nayak_ccbd1e8d231d8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3895035%2Fb84fe983-ff37-4f22-bf65-830a0adfa6f4.png</url>
      <title>DEV Community: Robin Nayak</title>
      <link>https://dev.to/robin_nayak_ccbd1e8d231d8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robin_nayak_ccbd1e8d231d8"/>
    <language>en</language>
    <item>
      <title>I built an open-source tool to visualize React/Next.js component hierarchy</title>
      <dc:creator>Robin Nayak</dc:creator>
      <pubDate>Fri, 24 Apr 2026 00:30:53 +0000</pubDate>
      <link>https://dev.to/robin_nayak_ccbd1e8d231d8/i-built-an-open-source-tool-to-visualize-reactnextjs-component-hierarchy-173o</link>
      <guid>https://dev.to/robin_nayak_ccbd1e8d231d8/i-built-an-open-source-tool-to-visualize-reactnextjs-component-hierarchy-173o</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;As React and Next.js apps grow, it becomes hard to answer simple questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which component uses which hook?&lt;/li&gt;
&lt;li&gt;Where is this API being called?&lt;/li&gt;
&lt;li&gt;What breaks if I change this file?
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft4cute43xmy0hlf2xh5v.png" alt=" " width="800" height="450"&gt;
&lt;/li&gt;
&lt;li&gt;Which components are duplicated across pages?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You end up jumping between 10 files just to trace one data flow.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;ReactGraph&lt;/strong&gt; is an open source developer tool that analyzes your React/Next.js project and renders it as an interactive hierarchy graph.&lt;/p&gt;

&lt;p&gt;Pages → Components → Hooks → APIs&lt;/p&gt;

&lt;p&gt;Every node is clickable. Every connection is visible. Props and TypeScript types are shown inline on each node.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive graph&lt;/strong&gt; — zoom, pan, click any node to inspect it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Props &amp;amp; types&lt;/strong&gt; — see exactly what each component expects&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Impact Analysis&lt;/strong&gt; — click a node to see everything that breaks if you change it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Health Check&lt;/strong&gt; — run a TypeScript check and see errors mapped onto the graph&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Circular Dependency Detection&lt;/strong&gt; — automatically flags components in circular render loops&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prop Drilling Detection&lt;/strong&gt; — finds props passed more than 3 levels deep&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move to Shared&lt;/strong&gt; — detects components used in multiple pages that should be in your shared folder&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unused Component Detection&lt;/strong&gt; — surfaces dead code you can safely delete&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Use It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Option 1 — npm package (run from any project):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @reactgraph-ui/core
npx reactgraph serve &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;a href="http://127.0.0.1:4174" rel="noopener noreferrer"&gt;http://127.0.0.1:4174&lt;/a&gt; in your browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option 2 — VS Code extension:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install from the marketplace, open any React project, and run:&lt;/p&gt;

&lt;p&gt;Ctrl+Shift+P → ReactGraph: Open Graph&lt;/p&gt;

&lt;h2&gt;
  
  
  Works With
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Next.js App Router&lt;/li&gt;
&lt;li&gt;Next.js Pages Router&lt;/li&gt;
&lt;li&gt;Create React App&lt;/li&gt;
&lt;li&gt;Vite + React&lt;/li&gt;
&lt;li&gt;Any TypeScript React project&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;📦 npm: &lt;a href="https://www.npmjs.com/package/@reactgraph-ui/core" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@reactgraph-ui/core&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🔗 VS Code: &lt;a href="https://marketplace.visualstudio.com/items?itemName=reactgraph.reactgraph-vscode" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=reactgraph.reactgraph-vscode&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;⭐ GitHub: &lt;a href="https://github.com/robinnayak/reactgraph" rel="noopener noreferrer"&gt;https://github.com/robinnayak/reactgraph&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback and contributions are very welcome. What features would make this useful for your workflow?&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
