Skip to main content

Code visualization for non-programmers

Project description

codedocent

Screenshot_2026-02-09_13-17-06

Code visualization for non-programmers.

A docent is a guide who explains things to people who aren't experts. Codedocent does that for code.

The problem

You're staring at a codebase you didn't write — maybe thousands of files across dozens of directories — and you need to understand what it does. Reading every file isn't realistic. You need a way to visualize the code structure, get a high-level map of what's where, and drill into the parts that matter without losing context.

Codedocent parses the codebase into a navigable, visual block structure and explains each piece in plain English. It's an AI code analysis tool that runs entirely on your machine — no API keys, no cloud, no data leaving your laptop. Point it at any codebase and get a structural overview you can explore interactively, understand quickly, and share as a static HTML file.

Who this is for

  • Developers onboarding onto an unfamiliar codebase — get oriented in minutes instead of days
  • Non-programmers (managers, designers, PMs) who need to understand what code does without reading it
  • Solo developers inheriting legacy code — map out the structure before making changes
  • Code reviewers who want a high-level overview before diving into details
  • Security reviewers who need a structural map of an application
  • Students learning to read and navigate real-world codebases

What you see

Nested, color-coded blocks representing directories, files, classes, and functions — the entire structure of a codebase laid out visually. Each block shows a plain English summary, a pseudocode translation, and quality warnings (green/yellow/red). Click any block to drill down; breadcrumbs navigate you back up. You can export code from any block or paste replacement code back into the source file. All AI runs locally through Ollama — nothing leaves your machine.

Install

pip install codedocent

Requires Python 3.10+ and Ollama running locally for AI features. Works without AI too (--no-ai).

Quick start

codedocent                         # setup wizard — walks you through everything
codedocent /path/to/code           # interactive mode (recommended)
codedocent /path/to/code --full    # full analysis, static HTML output
codedocent --gui                   # graphical launcher

How it works

Parses code structure with tree-sitter, scores quality with static analysis, and sends individual blocks to a local Ollama model for plain English summaries and pseudocode. Interactive mode analyzes on click — typically 1-2 seconds per block. Full mode analyzes everything upfront into a self-contained HTML file you can share.

Why local

All AI processing runs through Ollama on your machine. Your code is never uploaded, transmitted, or stored anywhere external. No API keys, no accounts, no cloud services. This matters when you're working with proprietary code, client projects, or anything you can't share — codedocent works fully air-gapped. The --no-ai mode removes the AI dependency entirely while keeping the structural visualization and quality scoring.

Supported languages

Full AST parsing for Python and JavaScript/TypeScript (functions, classes, methods, imports). File-level detection for 23 extensions including C, C++, Rust, Go, Java, Ruby, PHP, Swift, Kotlin, Scala, HTML, CSS, and config formats.

License

MIT

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

codedocent-0.4.0.tar.gz (47.6 kB view details)

Uploaded Source

Built Distribution

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

codedocent-0.4.0-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file codedocent-0.4.0.tar.gz.

File metadata

  • Download URL: codedocent-0.4.0.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for codedocent-0.4.0.tar.gz
Algorithm Hash digest
SHA256 357a8ac2530af9014a6710e875f129e69c4ecfc8973782b6eac54f5bd7d65fbf
MD5 7ee4a001f5b0dd6e909100f90b2410d1
BLAKE2b-256 6cef1cc2091b3bab7d43d26a5781af4959daa903a5817bb2a1e877f25b05b246

See more details on using hashes here.

File details

Details for the file codedocent-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: codedocent-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for codedocent-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce092ec2b29cd03211dedbdaddd509330d2763bf76c8d01f99813e97f0fc016
MD5 4b073b8eaa46e00f97ed1e1bb3d97717
BLAKE2b-256 1e2d171a5b03e9c4a0f8679ea1f3832f97e9afc39983029b4f5d72bf5f2a7011

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