This handbook is a comprehensive, source‑code‑driven analysis of the Frappe v16 framework. It covers application lifecycles, frontend/backend execution flows, the Document ORM, report engines, bench internals, realtime architecture, hooks, and production‑safe extension patterns. All information is derived from the official Frappe v16 repository and supporting technical documents.
Table of Contents
- 3.1 Login Lifecycle
- 3.2 Logout Lifecycle
- 3.3 Boot Process
- 6.1 Frontend Form Events
- 6.2 Backend Document Lifecycle
- 6.3 Save, Submit, Cancel, Amend, Delete, Rename
- 9.1 Script Report
- 9.2 Query Report
- List View & Other Views
- Workspace & Dashboard
- Notifications & Assignment
- Realtime & WebSockets
- Scheduler Architecture
- Worker & Background Jobs
- Bench Commands Deep Dive
- 16.1
bench start - 16.2
bench restart - 16.3
bench migrate - 16.4
bench build
- Asset Pipeline & Build System
- Hooks Framework & Extension Points
- Migration System
- Production‑Safe Customization Strategies
- Source Code Reference Map
- Appendices
- A. Form Event Matrix
- B. Controller Hook Matrix
- C. Migration Order
- D. Bench Process List
- E. Sequence Diagrams