A Google Maps for source code. Codemap renders zoomable treemap-based bird's-eye views of codebases with code thumbnails and semantic syntax highlighting — zooming in progressively reveals more detail, just like a map. Uses semgrep parsers for multi-language highlighting via a GTK2/Cairo GUI.

OCaml 4.14+ (via opam >= 2.1), gcc, git, curl, pkg-config.
On Ubuntu/Debian:
apt-get install build-essential pkg-config opam curl libcairo2-dev libgtk2.0-dev
On macOS:
brew install opam pkg-config cairo gtk+
C libraries (pcre, pcre2, gmp, libev, libcurl) are installed automatically
by ./configure via opam — no need to install them manually.
git clone --recurse-submodules https://github.com/aryx/codemap
cd codemap
./configure # installs opam deps and sets up tree-sitter (run infrequently)
make # routine build
make test # run tests
A reference build using Ubuntu is provided:
docker build -t codemap .
To build with OCaml 5:
docker build -t codemap --build-arg OCAML_VERSION=5.2.1 .
codemap ~/my-project
This launches a GTK-based GUI that lets you visualize source code and perform code search.
See the old codemap page at Facebook for more information.
Codemap combines ideas from several software visualization projects:
244 commits
OCaml
97.2%
A Google Maps for source code. Codemap renders zoomable treemap-based bird's-eye views of codebases with code thumbnails and semantic syntax highlighting — zooming in progressively reveals more detail, just like a map. Uses semgrep parsers for multi-language highlighting via a GTK2/Cairo GUI.

OCaml 4.14+ (via opam >= 2.1), gcc, git, curl, pkg-config.
On Ubuntu/Debian:
apt-get install build-essential pkg-config opam curl libcairo2-dev libgtk2.0-dev
On macOS:
brew install opam pkg-config cairo gtk+
C libraries (pcre, pcre2, gmp, libev, libcurl) are installed automatically
by ./configure via opam — no need to install them manually.
git clone --recurse-submodules https://github.com/aryx/codemap
cd codemap
./configure # installs opam deps and sets up tree-sitter (run infrequently)
make # routine build
make test # run tests
A reference build using Ubuntu is provided:
docker build -t codemap .
To build with OCaml 5:
docker build -t codemap --build-arg OCAML_VERSION=5.2.1 .
codemap ~/my-project
This launches a GTK-based GUI that lets you visualize source code and perform code search.
See the old codemap page at Facebook for more information.
Codemap combines ideas from several software visualization projects:
244 commits
OCaml
97.2%