repowisexifan2333/fcitx5-vinput

Architecture of xifan2333/fcitx5-vinput

xifan2333/fcitx5-vinput is 217 source files holding 1,410 symbols across 4 modules, written mainly in C++, Shell, TypeScript. The largest module is src, with 164 files, and 27 files are entry points into the dependency graph.

How fcitx5-vinput fits together

A background daemon runs as the vinput-daemon.service user service, and trigger keys such as Alt_R start and stop recording through Fcitx5. src/daemon/runtime/daemon_runtime_controller.cpp contains the daemon's runtime controller and is one of the hotspot files in the codebase. src/daemon/postprocess/post_processor.cpp handles the LLM post-processing step that applies scenes such as error correction, formatting and translation. The vinput-gui front end is built from src/gui/app/mainwindow.cpp, and src/gui/pages/resources/resource_page.cpp is where models are downloaded and activated. scripts/build-sherpa-onnx.sh prepares the sherpa-onnx component that local recognition needs when building from source. The vinput CLI gives full control from the command line.

Largest modules

  • src: 164 files and 23,728 lines of code
  • site: 21 files and 1,704 lines of code
  • .github: 11 files and 966 lines of code
  • root: 9 files and 1,023 lines of code
  • scripts: 8 files and 677 lines of code
  • packaging: 2 files and 106 lines of code
  • data: 1 file and 50 lines of code
  • i18n: 1 file and 689 lines of code

Languages

By file count: C++ 164 files, Shell 7 files, TypeScript 2 files, JavaScript 1 file, Python 1 file.

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

Related guide: Best dependency graph tools for monorepos