<?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: Sunit Sinha</title>
    <description>The latest articles on DEV Community by Sunit Sinha (@sunit_s_2k26).</description>
    <link>https://dev.to/sunit_s_2k26</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260356%2F33fc67b2-2bad-4693-ad9f-104497715c26.jpg</url>
      <title>DEV Community: Sunit Sinha</title>
      <link>https://dev.to/sunit_s_2k26</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sunit_s_2k26"/>
    <language>en</language>
    <item>
      <title>I built Gistgraph: interactive call-graph maps for TS, JS, Java and C# codebases</title>
      <dc:creator>Sunit Sinha</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:58:08 +0000</pubDate>
      <link>https://dev.to/sunit_s_2k26/i-built-gistgraph-interactive-call-graph-maps-for-ts-js-java-and-c-codebases-13eh</link>
      <guid>https://dev.to/sunit_s_2k26/i-built-gistgraph-interactive-call-graph-maps-for-ts-js-java-and-c-codebases-13eh</guid>
      <description>&lt;p&gt;Every codebase I've joined started the same way.&lt;/p&gt;

&lt;p&gt;I've led three legacy migrations: a desktop app to Angular, a Flex app to Angular, and an AngularJS factory-automation platform to modern Angular. Each one began with the same slow week. Where does execution start? Which modules actually matter? If I change this method, what calls it? And which of the twelve &lt;code&gt;handleClick&lt;/code&gt;s is the one I care about?&lt;/p&gt;

&lt;p&gt;IDEs answer those questions one "Go to definition" at a time. I wanted the whole map at once, so I built &lt;strong&gt;&lt;a href="https://gistgraph.site" rel="noopener noreferrer"&gt;Gistgraph&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://gistgraph.site" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;gistgraph.site&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Give Gistgraph a TypeScript, JavaScript (React, AngularJS, jQuery), Java or C# repository and it turns it into a map you can explore. All the screenshots below are from the live site, mapping Spring's &lt;a href="https://github.com/spring-projects/spring-petclinic" rel="noopener noreferrer"&gt;petclinic&lt;/a&gt; sample.&lt;/p&gt;

&lt;h3&gt;
  
  
  An architecture overview you can zoom into
&lt;/h3&gt;

&lt;p&gt;The repository opens as a map of its top-level containers and the imports between them. Zoom in and the same map becomes components, then files, then code. The side panel lists the entry points, the most connected files and the most called methods, which is usually where you want to start reading.&lt;/p&gt;

&lt;p&gt;Architecture overview of spring-petclinic in Gistgraph: containers linked by imports, with entry points and the most connected files in the side panel&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sst05ehx8aeu5hufega.png" class="article-body-image-wrapper"&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sst05ehx8aeu5hufega.png" alt="Architecture View" width="799" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Call chains, method by method
&lt;/h3&gt;

&lt;p&gt;Pick any method and see everything it calls, or everything that calls it, one or two steps out, with the source right beside the graph. Here's &lt;code&gt;PetController.processCreationForm&lt;/code&gt; from Spring's petclinic sample, calling six methods across &lt;code&gt;Owner&lt;/code&gt;, &lt;code&gt;Pet&lt;/code&gt;, &lt;code&gt;NamedEntity&lt;/code&gt; and &lt;code&gt;BaseEntity&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;Gistgraph's method inspector showing the call graph of PetController.processCreationForm next to its source code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0w3qkra7hx9o82fao9gs.png" class="article-body-image-wrapper"&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0w3qkra7hx9o82fao9gs.png" alt="Method View" width="799" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Search every method in the repo
&lt;/h3&gt;

&lt;p&gt;Type the start of a method name and Gistgraph lists every match across the project, with its file, line and caller count, so you can tell the twelve &lt;code&gt;handleClick&lt;/code&gt;s apart before opening one.&lt;/p&gt;

&lt;p&gt;Method search in Gistgraph listing every method starting with "process", with file, line and caller count&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5l2jshsujotw8svowcl5.png" class="article-body-image-wrapper"&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5l2jshsujotw8svowcl5.png" alt="Process View" width="799" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The galaxy view
&lt;/h3&gt;

&lt;p&gt;When you want the whole thing at once, the galaxy view draws every folder, file, class and method as one graph. Select a node to see which way its calls flow.&lt;/p&gt;

&lt;p&gt;Gistgraph's galaxy view of spring-petclinic: folders, files, classes and methods as one connected graph&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprtwyouzsn79pnay333r.png" class="article-body-image-wrapper"&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprtwyouzsn79pnay333r.png" alt="Connected Graph View" width="799" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Entry points, found for you
&lt;/h3&gt;

&lt;p&gt;Gistgraph detects where execution starts: &lt;code&gt;ReactDOM.render&lt;/code&gt; and &lt;code&gt;createRoot&lt;/code&gt;, Angular's &lt;code&gt;bootstrapModule&lt;/code&gt;, &lt;code&gt;$(document).ready&lt;/code&gt;, Java's &lt;code&gt;static main&lt;/code&gt; and &lt;code&gt;@SpringBootApplication&lt;/code&gt;, C#'s &lt;code&gt;Main&lt;/code&gt;, top-level statements and &lt;code&gt;WebApplication.CreateBuilder&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;There's a gallery of projects already mapped (Spring petclinic, Clean Architecture for .NET, zustand, ky and more), so you can try it without submitting anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Gistgraph is a TypeScript monorepo with three parts: a static-analysis engine, a NestJS API with a background worker, and an Angular front end that draws the graph with Cytoscape. A few decisions I enjoyed making:&lt;/p&gt;

&lt;h3&gt;
  
  
  One compiler pipeline for every flavour of JS and TS
&lt;/h3&gt;

&lt;p&gt;React, AngularJS and jQuery code look nothing alike, but they're all JavaScript. Instead of writing a parser per framework, every &lt;code&gt;.ts&lt;/code&gt;, &lt;code&gt;.tsx&lt;/code&gt;, &lt;code&gt;.js&lt;/code&gt; and &lt;code&gt;.jsx&lt;/code&gt; file goes through the TypeScript compiler (via &lt;code&gt;ts-morph&lt;/code&gt;). The compiler already understands imports, aliases and types, so a call can be followed through an import alias to the method it really targets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Java and C# through tree-sitter, with no native build
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;.java&lt;/code&gt; and &lt;code&gt;.cs&lt;/code&gt; files are parsed with tree-sitter's official grammars, compiled to WebAssembly. That means no native toolchain to install and the same Node process handles all four languages. Calls are resolved through the declared types of locals, parameters, fields and properties, through &lt;code&gt;this&lt;/code&gt;, &lt;code&gt;super&lt;/code&gt; and &lt;code&gt;base&lt;/code&gt;, inheritance, static imports, and C# partial classes and extension methods. Overloads get their own IDs, so &lt;code&gt;save(User)&lt;/code&gt; and &lt;code&gt;save(Order)&lt;/code&gt; stay separate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep what you can't resolve
&lt;/h3&gt;

&lt;p&gt;Static analysis can't resolve everything: built-ins, dynamic dispatch, things decided at runtime. The easy option is to drop those calls. Gistgraph keeps them and marks them &lt;code&gt;resolved: false&lt;/code&gt;. A graph with honest gaps is more useful than a clean-looking one that's quietly missing edges.&lt;/p&gt;

&lt;h3&gt;
  
  
  MongoDB as both the graph store and the job queue
&lt;/h3&gt;

&lt;p&gt;Modules, methods and call edges live in MongoDB. Call chains are &lt;code&gt;$graphLookup&lt;/code&gt; traversals with a depth limit, so tracing "everything this method reaches, five levels deep" is one query.&lt;/p&gt;

&lt;p&gt;Analysing a large repo takes a while, so submitting one returns a project ID straight away. The job goes into a Mongo collection, and a background worker claims it atomically, runs the analysis and writes the graph. The browser polls for progress, and the job survives a page refresh. Using the database I already had as the queue kept the deployment to a single service.&lt;/p&gt;

&lt;h3&gt;
  
  
  Staying current
&lt;/h3&gt;

&lt;p&gt;When a repository changes, Gistgraph uses &lt;code&gt;git diff&lt;/code&gt; to re-analyse only the files that changed, triggered by a push webhook or a nightly job, instead of rebuilding the whole graph.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;The map is useful to people, but it's just as useful to coding agents, which spend a lot of their effort working out how a codebase fits together. I'm adding a retrieval (RAG) layer and an MCP server so an agent can ask Gistgraph "what calls this?" or "what does this module depend on?" and get a precise answer instead of guessing from a handful of files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://gistgraph.site" rel="noopener noreferrer"&gt;gistgraph.site&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open a gallery project, or paste a public GitHub URL of your own. I'd love to hear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which repo you tried, and whether the map matched how you think about it&lt;/li&gt;
&lt;li&gt;Where call resolution got it wrong&lt;/li&gt;
&lt;li&gt;Which language or framework you'd want next&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Leave a comment here and I'll reply to all of them.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>typescript</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
