Skip to main content

peek demo — htop for codebases (code-generated, 800x450, ~15s)

Demo by code — python -m peek.tools.gen_demo • also assets/demo.svg + assets/demo.html

peek — htop for codebases

Understand any codebase in 5 seconds. pip install peek && peek .

PyPI Python tests themes Rich+Textual

5 seconds → languages, stack, Start Here, graph. Every output is a screenshot.


Install

pip install peek
pipx install peek          # or: uv tool install peek
pip install -e "peek[dev]" # dev — pyproject is at peek/pyproject.toml

Requires Python 3.11+. Deps: typer, rich, textual, pathspec.

Full install → docs.md

Quick Start

peek                      # TUI — q quit, / filter, j/k nav, o open
peek --no-tui             # static Rich (CI / screenshot)
peek --theme dracula --html -o map.html && open map.html

Keys: q quit • j/k nav • o open $EDITOR/ filter • enter details • esc clear • ? help

Full CLI → docs.md#cli-reference · TUI → docs.md#tui-guide

Demo (by code)

python -m peek.tools.gen_demo        # → peek/assets/demo.gif (800×450, <3MB) + demo.svg
peek --html -o peek/assets/demo.html
pytest peek/tests/test_demo_assets.py -v

How it works → docs.md#demo-video

Features

What you get Where
.gitignore-aware walk, languages/LOC, tech stack, entry points, import graph, PageRank ranking peek scan / peek analyze / peek (TUI)
TUI with 10 themes, filter, open, HTML export, token-aware pack, ranked find, optional LLM peek / --html / --pack / find / --llm
Never crashes, <1s for 500 files, offline, no API key

Full 5-col table + vs others → docs.md#features

10 Themes

peek --theme dracula
peek --theme-list  # anthropic-pro (default), cinematic, dracula, nord, catppuccin-mocha, tokyo-night, solarized-dark, github-dark, monokai, minimal-mono

Warm clay anthropic-pro → neon cinematicdraculanord. 15 tokens #RRGGBB, precedence cli > PEEK_THEME > config > anthropic-pro.

Full table + previews → docs.md#10-themes

Documentation

  • Full manual: docs.md — Install, Demo, Features, Themes, CLI, TUI, Pack/Find/LLM, Config, Architecture, Testing
  • Research: docs/research/ — viral thesis, candidates, 5-day plan
  • Plans: docs/superpowers/

Development

git clone https://github.com/hariomlohardev/peek && cd peek
pip install -e "peek[dev]"
pytest -q          # 74 passed, 1 skipped
peek --no-tui && peek  # static + TUI

See CONTRIBUTING.md. ruff + pytest before PR. Branch polish-100.

Why peek?

Every output is a screenshot. Every repo is a new demo. pip install peek is zero friction — unlike gitingest (no ranking) or pydeps (no TUI).

License

MIT — LICENSE · Built by Hariom Loharhariomlohar.new@gmail.com

Download files

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

Source Distribution

peek_code-0.1.0.tar.gz (377.7 kB view details)

Uploaded Source

Built Distribution

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

peek_code-0.1.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file peek_code-0.1.0.tar.gz.

File metadata

  • Download URL: peek_code-0.1.0.tar.gz
  • Upload date:
  • Size: 377.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for peek_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c792a8feb64085f1ca5f9521d41fc064d61f9aee49f3a5cc43fb87726de22fb0
MD5 d6d6ecab59e5ca40b3cb8068589eafb8
BLAKE2b-256 6a0daa506055d6309c21ce72b35a45789fed1d9d9c4d573ace6a01e27d843e9e

See more details on using hashes here.

File details

Details for the file peek_code-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: peek_code-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for peek_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a8ae7e43eb6482eea3e3cbeab90417915c571630ae6c9569327a31d9c7fcbd
MD5 3a5a71d3eb2f6030a9e13995a3d67d33
BLAKE2b-256 ff24689b3eece97a1a380fb81b2d235077d9ecc7841c0f85d45bcbfa7a7265df

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