Zova Source Reading Map
This page is a practical map for contributors and AI workflows that need to read Zova source code efficiently.
It does not try to teach every subsystem from scratch. Instead, it answers a narrower question:
when I need to understand one kind of Zova frontend behavior, which files should I read first, and in what order?
Use this page together with the architectural guides:
- Foundation
- Design Principles
- IoC and Beans
- Reading Zova for Vue Developers
- Frontend Source Reading Roadmap
- Zova Reactivity Under the Hood
Why this page exists
In a framework-sized codebase, source reading usually becomes slow for one reason:
- you can already find a relevant file
- but you do not yet know the shortest path to the next file
Zova especially benefits from a reading map because several layers cooperate at once:
- public wrappers and generated surfaces
- controller or bean authoring surfaces
- container and lifecycle runtime
- route or SSR integration
- module and suite boundaries
This page gives a starting sequence for each major topic so readers can move from public surface to runtime layer without drifting.
How to use this page
For each topic below:
- start with the public guide to refresh the architectural intent
- read the first source file to identify the public surface
- continue into the next runtime file only if you still need the implementation detail
- stop as soon as you have enough information for the task
The goal is not to read the entire framework every time. The goal is to choose the shortest accurate path.
1. Page controller and page reactivity
Use this path when you are asking questions like:
- why does a plain page-controller field update the UI?
- where do
$paramsand$querycome from? - how does page render enter the runtime?
Read the docs first
Then read source in this order
zova/src/suite/a-demo/modules/demo-basic/src/page/state/controller.tsxzova/packages-zova/zova-core/src/composables/useController.tszova/packages-zova/zova-core/src/bean/beanContainer.tszova/packages-zova/zova-core/src/bean/beanBase.tszova/packages-zova/zova-core/src/bean/beanControllerPageBase.tszova/packages-zova/zova-core/src/core/context/component.tszova/src/suite-vendor/a-zova/modules/a-router/src/monkey.ts
What each file clarifies
controller.tsxshows the public authoring patternuseController.tsshows controller creation and load timingbeanContainer.tsshows when beans become reactive and context-managedbeanBase.tsshows helper wrappers such as$computedand$watchbeanControllerPageBase.tsshows page-controller data-refresh hookscomponent.tsshows controller-oriented render redirectiona-router/src/monkey.tsshows how route-aware state is pushed onto the controller
2. Component controller and component wrapper behavior
Use this path when you are asking questions like:
- how do Z-prefixed wrapper components fit into the runtime?
- how does
controllerRefexpose the controller instance? - how do component controllers differ from page controllers?
Read the docs first
Then read source in this order
- a representative component metadata wrapper under
src/.metadata/component/*.ts zova/packages-zova/zova-core/src/composables/useController.tszova/packages-zova/zova-core/src/bean/beanControllerBase.tszova/packages-zova/zova-core/src/core/context/component.ts- the component controller source you are actually analyzing
What each file clarifies
- metadata wrapper files show how the public component wrapper enters
useController(...) useController.tsshows how component-local controller data is preparedbeanControllerBase.tsshows component-controller data refresh rules such as props updatescomponent.tsshows how render is patched toward controller/render beans- the concrete component controller shows the public authoring pattern for the case you care about
3. Bean lifecycle, instance scope, and helper APIs
Use this path when you are asking questions like:
- where should reactive setup happen?
- what is the role of
__init__and__dispose__? - how are helpers such as
$watch,$toRef, or$customRefexposed?
Read the docs first
Then read source in this order
zova/packages-zova/zova-core/src/bean/beanBase.tszova/packages-zova/zova-core/src/bean/beanBaseSimple.tszova/packages-zova/zova-core/src/bean/beanContainer.tszova/packages-zova/zova-core/src/core/context/util.ts
What each file clarifies
beanBase.tsshows the main helper surface available to beansbeanBaseSimple.tsshows the lower-level bean identity/base surfacebeanContainer.tsshows init, inject, and dispose flowcontext/util.tsshows how instance scope is applied around framework operations
4. Page routing, params, query, and layout-oriented route behavior
Use this path when you are asking questions like:
- where are typed params/query resolved?
- how does a route record connect to a page wrapper?
- where should route-aware page changes be debugged?
Read the docs first
- Page Route Guide
- A-Router Guide
- Zova Router Under the Hood
- Router View Hosts Guide
- Page Params Guide
- Page Query Guide
- Navigation Guards Guide
Then read source in this order
- the page
routes.tsfile for the module you care about zova/src/suite-vendor/a-zova/modules/a-router/src/monkey.tszova/src/suite-vendor/a-zova/modules/a-router/src/lib/utils.ts- the relevant route schema metadata or module page schema source
zova/packages-zova/zova-core/src/bean/beanControllerPageBase.ts
What each file clarifies
- route files show the public route declaration surface
monkey.tsshows controller data prepare/init/update behavior- route utils show how current/page route resolution is derived
- route schema sources show typed parsing behavior for params and query
beanControllerPageBase.tsshows the page-controller refresh hook surface
When to continue into routed hosts
If your next question becomes any of these:
- why this route lands in one shell host rather than another
- where keep-alive participation is decided after route resolution
- where
tabKey/componentKeyare derived for routed pages - how the active layout consumes routed-host state
then continue immediately with:
- Router View Hosts Guide
- section 5 on this page for the compact source-reading path
5. Router-view hosts, routertabs, and routerstack
Use this path when you are asking questions like:
- why does one routed page use an empty host while another behaves like a tabbed workbench?
- where do
tabKey,componentKey, and keep-alive inclusion actually come from? - how do
routerViewTabsandrouterViewStackdiffer at runtime? - which layout files are the real consumers of routed-host behavior?
Read the docs first
- Page Route Guide
- Zova Router Under the Hood
- Router View Hosts Guide
- Router Tabs Introduction
- Router Tabs Overview
- Router Tabs Mechanism
- Router Tabs vs Stack
- Router Stack Guide
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-router/src/lib/routerViewBase.tsxzova/src/suite-vendor/a-zova/modules/a-router/src/component/routerViewEmpty/controller.tsxzova/src/suite-vendor/a-zova/modules/a-routertabs/src/component/routerViewTabs/controller.tsxzova/src/suite-vendor/a-zova/modules/a-routertabs/src/model/tabs.tszova/src/suite-vendor/a-zova/modules/a-routerstack/src/component/routerViewStack/controller.tsxzova/src/suite-vendor/a-zova/modules/a-routerstack/src/model/stack.ts- the active layout controller/render pair that consumes the host you care about
What each file clarifies
routerViewBase.tsxshows the shared host contract for routed-page render, keep-alive, and host callbacksrouterViewEmpty/controller.tsxshows the minimal routed host without the richer tabs/stack modelrouterViewTabs/controller.tsxshows the controller-facing tabs host entrypointmodel/tabs.tsshows workspace grouping, tab-item state, page-meta updates, and keep-alive inclusion
If your next question becomes specifically about task-level title, dirty state, or form-scene presentation after the routed item is already open, continue with Page Meta Guide.
routerViewStack/controller.tsxshows the stack-host entrypoint with a smaller contract than tabsmodel/stack.tsshows the fullPath-based stack identity model and recency-based pruning- active layout consumers show how the current shell turns host state into visible Admin or Web behavior
6. Model state, cache-oriented state, and broader data ownership
Use this path when you are asking questions like:
- should this state live in a model bean?
- how does Zova unify async and sync state categories?
- where should I debug model-owned state instead of controller-owned state?
Read the docs first
Then read source in this order
- the relevant model bean in the module you are studying
zova/src/suite-vendor/a-zova/modules/a-model/src/bean/bean.model/bean.model.useState.ts- representative built-in model beans such as router tabs or resource models
- nearby state-owner service/controller code that consumes the model
What each file clarifies
- the local model bean shows the public business-facing ownership pattern
bean.model.useState.tsshows framework-level state helper behavior- built-in model beans show how the architecture is used in nontrivial cases
- consuming code shows whether the state really belongs in the model or only uses the model result
7. Command scene and command-bean invocation
Use this path when you are asking questions like:
- how does
$performCommand(...)resolve a command bean? - when should an action live in a command bean instead of a page/controller method?
- where do command names, helper bases, and generated command typing come from?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-command/src/lib/command.tszova/src/suite-vendor/a-zova/modules/a-command/src/monkey.tszova/src/suite-vendor/a-zova/modules/a-command/src/lib/performCommand.tszova/src/suite-vendor/a-zova/modules/a-command/src/types/command.ts- one generated downstream metadata file such as
zova/src/suite/cabloy-basic/modules/basic-commands/src/.metadata/index.ts - representative command beans such as
command.create.tsx,command.delete.tsx,command.setValue.tsx, orcommand.log.tsx
What each file clarifies
command.tsshows the public decorator surface and confirms thesyscontainer scopemonkey.tsshows how$performCommand(...)is injected onto bean instances and how defaultrenderContextdata is synthesized from the host beanperformCommand.tsshows onion-name to bean resolution, sync-first then async bean loading, option merging, and command executiontypes/command.tsshows the command-scene type contract, includingICommandRecord,IDecoratorCommandOptions, andSymbolCommandResult- generated downstream metadata shows the real command names and bean full names exposed by consuming modules
- representative command beans show when to use the plain, bulk, row, or scene-sensitive command shapes
App-shell root host and a-app
Use this path when you are asking questions like:
- what is the root app host in Zova?
- where does the routed tree first enter the app controller path?
- where do app-wide behaviors wrap the routed content?
- how should I read
a-appwithout confusing it with routes, layouts, or SSR orchestration?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-app/src/.metadata/this.tszova/src/suite-vendor/a-zova/modules/a-app/src/.metadata/index.tszova/src/suite-vendor/a-zova/modules/a-app/src/.metadata/component/app.tszova/src/suite-vendor/a-zova/modules/a-app/src/component/app/controller.tsxzova/src/suite-vendor/a-zova/modules/a-app/src/config/config.ts
What each file clarifies
this.tsshows the module identity quickly.metadata/index.tsshows the generated integration surface for controller, component, config, and scope.metadata/component/app.tsshows the thinZAppwrapper that mountsControllerAppthroughuseController(...)controller.tsxshows app-level meta setup, behavior-holder initialization, and behavior-wrappedRouterViewrenderconfig.tsshows the root behavior injection point throughscope.config.behaviors
8. Behavior scene and render-time interception
Use this path when you are asking questions like:
- should this concern be a Behavior, a Component, or a Helper?
- how do behaviors wrap render targets?
- where does the behavior pipeline actually compose?
Read the docs first
Then read source in this order
- the public behavior wrapper and controller path referenced in the docs
- the concrete behavior bean you are studying
- the composer/service files used by the behavior scene
- any host-injected controller or bean that the behavior depends on
What each file clarifies
- wrapper/controller files show the public entry into the behavior system
- concrete behavior beans show authoring-time render interception
- composer/service files show how behavior chains are normalized and executed
- host dependencies show why host-scoped injection is part of the behavior design
9. SSR runtime and hydration handoff
Use this path when you are asking questions like:
- is this SSR issue owned by Vona or Zova?
- where does the frontend SSR runtime begin?
- where should hydration-sensitive debugging start?
Read the docs first
Then read source in this order
- the frontend SSR site entry or generated SSR bundle entry for the affected app/site
- the SSR-related context/runtime files in
zova-core - the relevant page/controller/model code whose output differs between server and client
- if needed, the Vona SSR integration layer for the site entry and request handoff
What each file clarifies
- SSR entry files show where the frontend runtime starts during SSR
- SSR runtime/context files show how render context and state transfer are assembled
- page/controller/model files show whether the bug is actually page-level logic
- the Vona side shows whether the problem happens before the Zova runtime is even entered
10. Modules, suites, and architectural placement
Use this path when you are asking questions like:
- where should new frontend code live?
- does this belong in an existing module, a new module, or a different suite?
- which source-tree boundary expresses the intended business architecture?
Read the docs first
Then read source in this order
- the nearby suite/module layout under
zova/src/suite* - the target module
package.jsonand metadata if relevant - representative peer modules in the same suite
- only then the exact controller/component/model/service file you intend to change
What each file clarifies
- source-tree layout shows the real architectural neighborhood
- module metadata shows naming, dependencies, and bundle-related declarations
- peer modules show current placement conventions
- the final target file then makes sense inside the correct architectural boundary
A compact reading strategy
When in doubt, use this sequence:
- public guide
- representative example in app/module code
- public wrapper or controller entrypoint
- bean/container/runtime source
- integration layer such as router, behavior, model, or SSR
That order usually gets you to the answer faster than starting from deep runtime files first.
Final takeaway
The fastest way to read Zova source accurately is not to memorize every core file.
It is to recognize which architectural topic you are in, then start from the smallest public surface that matches that topic and only descend into runtime files as needed.