Description
Code to Graph is a web tool that turns JavaScript code into a network diagram. You drop code files onto the page, and it draws the functions, conditions and returns as a graph. The sample on the page shows a function with an if statement that branches to return a string or throw an error, drawn as connected flowchart nodes. You can download the result as an SVG file, or copy the graph source to the clipboard. The graph source is written in Mermaid syntax, so you can edit the diagram or paste it into documentation that renders Mermaid. The project is public on GitHub under crubier/code-to-graph. It is aimed at developers who want to see how a piece of JavaScript flows, for reading or explaining code. The page shows no pricing or account system.…
Highlights
- Drop JavaScript files to draw a graph
- Download the graph as SVG
- Copy the Mermaid graph source
- Shows functions, conditions and returns
Ratings & Reviews
No ratings yet
Be the first to rate Code to Graph.
People also visit
Code to Graph FAQ
What is Code to Graph?
A web tool that visualizes JavaScript code as a network diagram.
What output can I get?
You can download an SVG file, or copy the graph code to the clipboard in Mermaid syntax.
Which files can I use?
Code files that you drop anywhere on the page, as the page instructs.
Where is the source?
On GitHub at crubier/code-to-graph.
What are the best Code to Graph alternatives?
Popular alternatives to Code to Graph include CodeCanvas, ToolsHref and JsDiagram. See all Code to Graph alternatives











