Getting started
You get from source code to an interactive code map in three steps: install the CodeCharta Shell, analyse your project, open the map. To look around first, open the live demo with CodeCharta’s own code.
Quick start
Section titled “Quick start”You need Node 22.19 or newer and Java 22 or newer.
-
Install the CodeCharta Shell:
Terminal window npm i -g codecharta-analysis -
Analyse your project:
Terminal window cd my-projectccsh analyseccsh analyseruns an opinionated selection of parsers and options to get you started, adds the git or svn history and writes the map tomy-project.cc.json.gzin the current folder. -
Open the Web Studio and load
my-project.cc.json.gzwith the folder button (Load cc.json files). See Loading maps.
Choose how to run CodeCharta
Section titled “Choose how to run CodeCharta”| Option | What you get | Needs |
|---|---|---|
| npm | ccsh on your machine, the most direct way to analyse | Node, Java |
| Docker | ccsh with Git, Tokei, Code Maat and SonarScanner bundled, and a self-hosted Web Studio | Docker |
| Desktop app | the Web Studio as an app for Windows, macOS and Linux | nothing, or Node for the npm package |
| From source | the latest development version of both parts | Git, Node, Java |
The Web Studio at codecharta.com runs entirely in your browser: the map you load is not uploaded. See Data privacy.
Next steps
Section titled “Next steps”- Find your way around the map in the interface overview.
- Add metrics from SonarQube, coverage reports and other tools with the importers.
- Check every build against your own limits with the quality gate.