How aryx/codemap works
Codemap is a desktop source-code visualization and search tool. A user opens a project; the GTK GUI presents a zoomable treemap with code thumbnails and semantic syntax highlighting, and supports code search. The README documents these product capabilities but no source excerpts were provided, so internal call ownership and connections between parsing, visualization, and GUI modules cannot be verified; those links are omitted rather than inferred.
Main entry points: view_mainmap.ml Map rendering · Controller.ml GUI controller · treemap_pl.ml Program map · Main.ml Application entry
Components 14
Application entry
- Application entry
src/main/Main.ml
Desktop interface
- GUI controller
src/gui/Controller.ml - GUI views
src/gui/View.ml - Code search
src/gui/ui_search.ml
Code analysis
- Source parsing
src/gui/Parsing.ml - Syntax highlighting
src/gui/Model.ml - Language support
languages
Code visualization
- Treemap layout
libs/treemap/treemap.ml - Program map
src/program_visual/treemap_pl.ml - Visualization layers
src/program_visual/layer_archi.ml - Map rendering
src/gui/view_mainmap.ml - Code thumbnails
src/gui/draw_microlevel.ml - Highlighted code
src/gui/draw_macrolevel.ml
Other components
- Project user
Connections 13
- Project user → Application entry: opens project
README.md - Application entry → GUI controller: launches GUI
README.md - GUI controller → GUI views: presents interface
- GUI controller → Code search: supports search
README.md - GUI views → Map rendering: shows visualization
README.md - Map rendering → Program map: renders code map
- Program map → Treemap layout: uses treemap layout
- Program map → Visualization layers: shows map layers
- Map rendering → Code thumbnails: reveals thumbnails
README.md - Map rendering → Highlighted code: reveals highlighted code
README.md - Highlighted code → Syntax highlighting: uses highlighting
- Syntax highlighting → Language support: supports languages
README.md - Language support → Source parsing: uses parsers
README.md