TokenMap is a desktop app for exploring where a codebase gets heavy. Open a local folder and inspect the same project as both a tree and a treemap, measured by tokens, non-empty lines, or file size.
- See which folders and files actually dominate a repository instead of guessing from file count alone.
- Compare token-heavy areas before feeding code to LLM workflows.
- Spot hotspots before refactors, cleanup, or architecture discussions.
- TokenMap scans a local folder into one snapshot.
.gitignore, global excludes, and folder excludes decide what gets in.- Only included files are measured and shown.
- Text files get local token counts, non-empty line counts, and byte size.
- Folder weight is aggregated from descendants.
Note
Token counts are computed locally with the o200k_base tokenizer via Microsoft.ML.Tokenizers.
They are useful for comparing files and folders inside the same repository, but should not be treated as exact billing or context-window numbers for every model.
The latest release is available in GitHub Releases.
- Installer: download the Windows setup from the latest release and run it. It installs per-user and does not require administrator rights.
- Portable: download the Windows portable archive, extract it, and launch TokenMap from the extracted folder.
- DMG: download the macOS disk image from the latest release, open it, and drag
TokenMap.appintoApplications. - Portable: download the macOS portable archive, extract it, and move
TokenMap.appintoApplications.
macOS: first launch for the unsigned build
TokenMap is currently distributed as an unsigned app, so macOS may block the first launch.
UI path:
- Move
TokenMap.apptoApplications. - Try to open it once, then dismiss the warning.
- Open
System Settings > Privacy & Security. - Find the message about
TokenMapbeing blocked and clickOpen Anyway. - Confirm the follow-up prompt and launch the app again.
Terminal alternative:
xattr -dr com.apple.quarantine /Applications/TokenMap.appThen launch TokenMap.app again.
- Debian package:
cd ~/Downloads
sudo apt install ./<downloaded-package>.deb
tokenmap- Portable: download the Linux portable archive, extract it, and run the included launcher from the extracted folder.
Prerequisite: .NET SDK 10.0.201 or newer in the same feature band.
dotnet restore Clever.TokenMap.sln
dotnet build Clever.TokenMap.sln
dotnet run --project .\src\Clever.TokenMap.App\Clever.TokenMap.App.csprojRun tests:
dotnet test Clever.TokenMap.sln --no-buildFor repo conventions and architecture details, see docs/architecture.md and docs/workflow.md.
- .NET 10
- C#
- Avalonia
- CommunityToolkit.Mvvm
- Microsoft.ML.Tokenizers
TokenMap is available under the MIT License.
