Vi

Visualize the complexity of a Golang codebase with a 3D force graph

Hacker News

Visualize the complexity of a Golang codebase with a 3D force graph

Hi HN! I want to share a project for which Golang support was just added: https://github.com/gabotechs/dep-tree This is a tool that allows users to visualize the complexity of a code base using a 3D force-directed graph: It will take a Golang codebase entrypoint, typically `main.go`, it will parse the file and gather other files in which this file depends on (by resolving function names, types, etc...) It will recursively perform this operation with all the dependant files, until the full graph with all the source files is formed. It will render the graph using a force-directed layout, and all the source files will be placed in a three-dimensional space simulating some attraction/repulsion forces based on the dependencies between them. Clean and loosely coupled codebases will tend to form clusters of nodes in the 3d space separated from each other, while tightly coupled and messy codebases will be rendered with all the nodes grouped together without clear sense of separation. Here are some examples of rendering this graph for some well known projects: - Docker compose: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - Ollama: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - Gin: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - Go's crypto std: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - CockroachDB SQL parser: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - Ethereum: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... - Dep Tree: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F... Hope you find this interesting!

Share card

Actual performance

1points
1comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, dock, visual · Missing: mac, agents, macos
59%59% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRLess likely to generate early MRR · Strong signals: visualize, users, para · Missing: mobile apps, ios, personal
44%44% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: llama, io · Missing: https docs, excited, just released
41%41% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersIH features products with proven revenue · Strong signals: para · Missing: supports, reddit linkedin, podcasting
37%37% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: users · Missing: plus, platform, intuitive
26%26% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
12%12% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: crypto · Missing: web3, chat, cryptocurrency
5%5% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Vi
Visualize the entropy of a codebase with a 3D force-directed graph52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualize the entropy of a codebase with a 3D force-directed graph

Hacker News180
Tach
Tach77%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Untangle + visualize your codebase

Product Hunt+140Open Source
Vi
Visualize Lisp in 3D67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualize Lisp in 3D

Hacker News7
Codalogy
Codalogy73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualize Any Codebase Instantly

Product Hunt+121Productivity
Ne
Nebula Graph Studio 1.0 – Visualize graph data for you60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nebula Graph Studio 1.0 – Visualize graph data for you

Hacker News8
Co
CodeKnow – Turn any codebase into a knowledge graph56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CodeKnow – Turn any codebase into a knowledge graph

Hacker News3
Co
Codebase Knowledge Graph Builder63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Codebase Knowledge Graph Builder

Hacker News4
Ma
Mathpix 3D Grapher – visualize 3D functions online53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mathpix 3D Grapher – visualize 3D functions online

Hacker News1
Ta
Tach – Visualize and untangle your Python codebase85%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tach – Visualize and untangle your Python codebase

Hacker News263
Vi
Visualize Lisp in 3D in the browser70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualize Lisp in 3D in the browser

Hacker News5