repowisehkuds/deeptutor

Architecture of hkuds/deeptutor

hkuds/deeptutor is 4,211 source files holding 39,143 symbols across 13 modules, written mainly in Python, TypeScript, JavaScript. The largest module is web, with 1,522 files, and 9 files are entry points into the dependency graph.

How deeptutor fits together

Requests from the browser app and the command-line tool reach the Python backend in the deeptutor directory. The entry point deeptutor/api/main.py starts the API, and the routers in deeptutor/api/routers, such as knowledge.py, pass each request into the backend services. The deeptutor/agents directory holds the LLM workers that answer chat turns and produce practice questions and visual output. The web directory contains the browser app, where Next.js routes under web/app render the screens and React components handle chat, reading and calendar views. The deeptutor_cli directory provides the deeptutor terminal command, which drives the same backend one turn at a time.

Largest modules

  • web: 1,522 files and 254,158 lines of code
  • deeptutor: 1,162 files and 273,213 lines of code
  • tests: 980 files and 182,422 lines of code
  • apps: 35 files and 2,106 lines of code
  • packages: 29 files and 4,996 lines of code
  • deeptutor_cli: 24 files and 5,656 lines of code
  • scripts: 20 files and 2,512 lines of code
  • root: 4 files and 643 lines of code

Languages

By file count: Python 2,189 files, TypeScript 1,535 files, JavaScript 57 files, Dockerfile 1 file, Swift 1 file.

Documentation

Repowise documents deeptutor in 3,110 pages generated from the source, 84 of them written explanations of the repository and its modules. Module guides include:

  • deeptutor/tools: Agent Tool Implementations
  • deeptutor/runtime/agentic: Agentic Tool Authorization
  • deeptutor/agents: Agents
  • deeptutor/book: Book Authoring Engine
  • deeptutor/book/blocks: Book Block Composition

More on deeptutor: summary and FAQ, codebase overview, code health.