Architecture of paperless-ngx/paperless-ngx
paperless-ngx/paperless-ngx is 1,085 source files holding 8,940 symbols across 6 modules, written mainly in TypeScript, Python, Shell. The largest module is src-ui, with 434 files, and 4 files are entry points into the dependency graph.
How paperless-ngx fits together
Documents enter through import paths, mail consumption and scanners. src/manage.py is a backend entry point, and src/paperless holds shared infrastructure such as the parser registry that other parts rely on. src/documents/parsers.py uses that registry, for example through is_mime_type_supported, to check whether a MIME type can be parsed. src/documents/views.py is one of the repository's hotspot files, and src/documents contains the document handling code. src/paperless_ai groups the AI-related concerns, including AI indexing. src-ui/src/main.ts is the entry point of the Angular web interface, which sends REST requests to the backend.
Largest modules
- src-ui: 434 files and 64,488 lines of code
- src: 408 files and 121,574 lines of code
- docker: 41 files and 789 lines of code
- root: 3 files and 553 lines of code
- scripts: 2 files and 21 lines of code
- .devcontainer: 1 file and 131 lines of code
Languages
By file count: TypeScript 431 files, Python 410 files, Shell 42 files, JavaScript 4 files, Dockerfile 2 files.
Documentation
Repowise documents paperless-ngx in 1,241 pages generated from the source, 41 of them written explanations of the repository and its modules. Module guides include:
- src-ui/src/app/components/admin/config: Admin UI Panels
- src-ui/src/app/components/common: Common Overview
- src-ui/src/app/components: Components Overview
- docker/rootfs/usr/local/bin: Container Helper Scripts
More on paperless-ngx: summary and FAQ, codebase overview, code health.