# Bogdan-Lyashenko/js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.

Repository: https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart
Canonical: https://ross.abutalabs.com/products/js-code-to-svg-flowchart
Language: JavaScript
License: MIT
License Family: permissive
Topics: flowchart, svg-flowchart, ast, javascript, svg, visualisation, learning, es6, scheme
Last push: 2023-10-02T19:41:41+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3321, "days_push": 1066, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7115, forks 478 (observed 2026-08-28T04:09:56.005018+00:00)

## What it is
js2flowchart is a JavaScript library that converts JavaScript code into SVG flowcharts by parsing the code's AST. It works on both client and server, supports ES6, and offers abstraction levels, custom modifiers, and highlighting to help learn, explain, and document code.

## Use cases
- generate an SVG flowchart from JavaScript code
- visualize code logic to understand someone else's code
- create diagrams for code documentation
- explain code step by step at different abstraction levels
- render flowcharts of functions in a browser or on a server
- highlight or blur parts of a code flowchart

## When to choose
- you need automatic flowchart generation from JavaScript source code
- you want to teach or document code logic visually
- you need customizable SVG output with abstraction levels and modifiers

## When to avoid
- you need flowcharts for languages other than JavaScript
- you need multi-file codebase visualization (consider Codecrumbs instead)
- you need actively developed features or long-term support

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, data-visualization, developer-tools
- domain: developer-tools, web-development, education, documentation
- platform: browser
- tags: flowchart, svg, ast, code-visualization, es6, code-explanation, nodejs, javascript

## Member repositories
- Bogdan-Lyashenko/js-code-to-svg-flowchart (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.005018+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:06.110109+00:00, confidence not recorded.
  - readme: https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart (fetched 2026-08-28T04:09:56.005018+00:00, sha 1b68fe6ae9e4)
  - registry_npm: https://registry.npmjs.org/js-code-to-svg-flowchart (fetched 2026-08-29T08:35:57.446284+00:00, sha 41bb96fe3553)
- Data as of 2026-08-30T08:39:29.467469+00:00.
