Skip to main content

Navigate any codebase or GitHub repo as a real-time ASCII city in your terminal

Project description

CodeASCIIMap

Walk around any codebase — or any GitHub repo — as a live ASCII city inside your terminal.

  ╔══════════════ facebook/react ═══════════════╗
  ║                                             ║
  ║  ┌──────────┐  ┌────────────────────┐       ║
  ║  │▓▓▓▓▓▓▓▓▓▓│  │▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓│       ║
  ║  │░░░ ░░░ ░░│  │░░░ ░░░ ░░░ ░░░ ░░░░│       ║
  ║  │░░░ ░░░ ░░│  ├────────────────────┤       ║
  ║  └─index.js─┘  │░░░ ░░░ ░░░ ░░░ ░░░░│       ║
  ║                └─ReactDOM.js─────── ┘       ║
  ╚═════════════════════════════════════════════╝
          ─────────────────────────────
                       @

Each directory is a walled city block. Each file is a building — taller buildings have more lines. Walk around with WASD, search with /, and inspect any file's source code by pressing i.


Install

pip install codeasciimap

On Windows, windows-curses is installed automatically as a dependency.


Run

# Current directory
codeasciimap

# Any local path
codeasciimap ~/projects/myapp
codeasciimap C:\Users\you\projects\myapp

# GitHub repo  (owner/repo shorthand)
codeasciimap torvalds/linux
codeasciimap facebook/react
codeasciimap twbs/bootstrap
codeasciimap vercel/next.js

# Full GitHub URL
codeasciimap https://github.com/django/django

GitHub repos are shallow-cloned (--depth 1 --filter=blob:none) so even massive repos like the Linux kernel load in seconds. The clone is deleted automatically when you quit.


Controls

Key Action
W A S D or arrow keys Move around the city
i or Enter Inspect the file you're standing next to
j / k Scroll file content up/down in inspector
q or Esc Close inspector / cancel search
/ Open search bar
Enter Jump to search result
n / N Next / previous search result
? or F1 Show help screen
q or Ctrl+C Quit

City legend

Symbol Meaning
@ You (the player)
╔═╗ ╚═╝ District border (a directory)
┌─┐ └─┘ Building frame (a file)
Penthouse / top floor
░░░ ░░░ Window floors (lit office at night)
├───┤ Floor separator (every 3 floors)
above building Rooftop antenna (tall buildings only)
/ / · Streets

Color coding

Color Lines
🟢 Green < 50 lines
🟡 Yellow 50 – 500 lines
🔴 Red 500 – 2 000 lines
🔵 Cyan > 2 000 lines
🟣 Magenta Binary or unreadable

Mini-map

The bottom-right corner always shows a miniature overview of the entire city. Your position blinks as @. The dotted rectangle shows what's currently on screen.


Requirements

  • Python ≥ 3.8
  • git on PATH (only needed for GitHub repos)
  • Terminal ≥ 80 × 24, UTF-8 recommended

Publish to PyPI (maintainers)

pip install build twine
python -m build
twine upload dist/*

Then anyone in the world can install with:

pip install codeasciimap

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeasciimap-1.0.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeasciimap-1.0.0-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file codeasciimap-1.0.0.tar.gz.

File metadata

  • Download URL: codeasciimap-1.0.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for codeasciimap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 76595ed1ff3466410f50869117b896259e6df9a11b33eb4175489bca418283be
MD5 09dc80134721f7ea5448e3800e271865
BLAKE2b-256 34dae918ddf8361a8c116c155189ea0a6185293ac34eec63dd5962db9a554135

See more details on using hashes here.

File details

Details for the file codeasciimap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: codeasciimap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for codeasciimap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fabdd18c9689a77f6f405310885e391de806dbe47cab22c55993410b53218c7
MD5 ccc47bb80e56c2eb43f1bcc68d93cdce
BLAKE2b-256 dd3e011c286deb1dbcac61bcf1013ad3716c7ae70e8c43d5fad4ad1a6e935805

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page