repowisezenbu-labs/terminal-code

Architecture of zenbu-labs/terminal-code

zenbu-labs/terminal-code is 101 source files holding 628 symbols across 7 modules, written mainly in TypeScript, JavaScript, Shell. The largest module is src, with 57 files, and 8 files are entry points into the dependency graph.

How terminal-code fits together

The main entry point src/main.ts and the entry point src/codeserver/server.ts connect the terminal side to the code-server part that runs VS Code. The src/shortcuts/wizard.ts file holds the interactive wizard that the shortcut setup command starts, so users can change terminal or terminal-code shortcuts that conflict. The assets/keymaps directory contains keymap files such as vscode-linux.json and vscode-mac.json. In ssh mode, only the backend of VS Code runs on the remote machine, while the frontend runs locally and network requests are proxied over the ssh connection. The web module, with 15 files, is a separate part of the repository next to src.

Largest modules

  • src: 57 files and 7,561 lines of code
  • web: 15 files and 1,268 lines of code
  • test: 8 files and 3,024 lines of code
  • scripts: 7 files and 593 lines of code
  • release-worker: 4 files and 193 lines of code
  • root: 4 files and 124 lines of code
  • herdr-plugin: 3 files and 38 lines of code
  • assets: 2 files and 10,854 lines of code

Languages

By file count: TypeScript 65 files, JavaScript 11 files, Shell 8 files.

Documentation

Repowise documents terminal-code in 130 pages generated from the source.

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

Related guide: Best dependency graph tools for monorepos