Architecture of frappe/erpnext
frappe/erpnext is 4,833 source files holding 17,556 symbols across 4 modules, written mainly in Python, JavaScript, TypeScript. The largest module is erpnext, with 4,626 files, and 11 files are entry points into the dependency graph.
How erpnext fits together
The erpnext directory holds the main application, about 4626 files organized into folders for each business area. Business records are defined as doctypes, so erpnext/accounts/doctype/journal_entry/journal_entry.py defines the journal entry document and erpnext/stock/doctype/stock_entry/stock_entry.py defines stock entries. erpnext/controllers/accounts_controller.py is a shared controller file in the accounting code that these documents build on. The Frappe Framework supplies the database layer, user authentication and REST API that these parts run on. The banking directory is a separate TypeScript front end whose entry point is banking/src/main.tsx. erpnext/www/book_appointment/index.html is a public web page served by the application.
Largest modules
- erpnext: 4,626 files and 715,382 lines of code
- banking: 147 files and 16,782 lines of code
- .github: 42 files and 2,500 lines of code
- root: 16 files and 770 lines of code
- .greptile: 1 file and 25 lines of code
- semgrep: 1 file and 24 lines of code
Languages
By file count: Python 2,497 files, JavaScript 644 files, TypeScript 136 files, Shell 5 files.
Documentation
Repowise documents erpnext in 3,076 pages generated from the source.
More on erpnext: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos