Architecture of knadh/listmonk
knadh/listmonk is 238 source files holding 1,247 symbols across 6 modules, written mainly in Go, TypeScript, JavaScript. The largest module is frontend, with 109 files, and 22 files are entry points into the dependency graph.
How listmonk fits together
The entry point is cmd/main.go, which starts the listmonk binary. The cmd directory holds the command code, and cmd/handlers.go and cmd/init.go are among the files that change most often. The internal directory contains the server-side logic, including internal/migrations/v6.2.0.go, a database migration file. The queries and models directories hold the database queries and data models. The frontend directory contains the web dashboard, built with Vue and Buefy. The binary stores its data in PostgreSQL and serves the dashboard and API responses.
Largest modules
- frontend: 109 files and 10,308 lines of code
- internal: 57 files and 7,029 lines of code
- cmd: 26 files and 6,796 lines of code
- root: 12 files and 1,151 lines of code
- .github: 10 files and 334 lines of code
- queries: 10 files and 1,328 lines of code
- models: 9 files and 976 lines of code
- dev: 2 files and 106 lines of code
Languages
By file count: Go 92 files, TypeScript 76 files, JavaScript 27 files, Shell 2 files, Dockerfile 1 file, Makefile 1 file.
Documentation
Repowise documents listmonk in 61 pages generated from the source, 8 of them written explanations of the repository and its modules.
More on listmonk: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos