Architecture of chatwoot/chatwoot
chatwoot/chatwoot is 8,780 source files holding 29,817 symbols across 18 modules, written mainly in Ruby, Vue, JavaScript. The largest module is app, with 3,359 files, and 6 files are entry points into the dependency graph.
How chatwoot fits together
The user interfaces start from separate Vue entry points, including app/javascript/dashboard/App.vue for the agent dashboard and app/javascript/widget/App.vue for the chat widget that customers see on a website. A third entry point, app/javascript/survey/App.vue, handles the survey front end. Server-side logic is written in Ruby and lives mostly in the app directory, where app/models/integrations/app.rb is one of the model files. The enterprise directory holds a separate module of 561 files. Configuration is kept in config, shared Ruby code in lib, and the spec directory contains the test suite.
Largest modules
- app: 3,359 files and 273,812 lines of code
- spec: 1,145 files and 134,752 lines of code
- enterprise: 561 files and 25,194 lines of code
- db: 207 files and 3,310 lines of code
- lib: 113 files and 6,444 lines of code
- config: 56 files and 1,756 lines of code
- root: 16 files and 928 lines of code
- tests: 14 files and 566 lines of code
Languages
By file count: Ruby 3,010 files, Vue 1,250 files, JavaScript 1,211 files, TypeScript 21 files, Shell 6 files, Dockerfile 2 files.
Documentation
Repowise documents chatwoot in 3,961 pages generated from the source.
More on chatwoot: summary and FAQ, codebase overview, code health.