Introduction
@silver-formily/core is the core package of the Silver Formily runtime. It is UI-agnostic: the same form domain model can drive Vue, React, or a custom renderer.
Its value is not that one class does everything. Instead, it builds a form runtime by composing several mechanisms:
@silver-formily/reactiveprovides reactive state and dependency tracking@silver-formily/pathprovides field path matching and nested data paths@silver-formily/validatorprovides validation rule execution and feedback@silver-formily/corecombines them into Form and Field models
Positioning
There are two useful ways to understand @silver-formily/core:
- For application developers, it provides the main form model and field model.
- For other Formily packages, it is the glue that connects reactivity, path queries, validation, lifecycle events, and UI consumers.
The path and validator packages are mostly transparent to users. They exist to serve the form model:
@silver-formily/coreneeds a reactive system, so it depends on@silver-formily/reactive@silver-formily/coreneeds field path querying, so it depends on@silver-formily/path@silver-formily/coreneeds validation, so it depends on@silver-formily/validator
Reading Path
This guide separates models from mechanisms, so the Form page does not become a catch-all page:
| Page | Focus |
|---|---|
| Form Model | Form as the top-level aggregate: state container, field factory, field graph, lifecycle, and aggregate operations |
| Field Model | Field / ArrayField / ObjectField / VoidField state and differences |
| Values & State | values, initialValues, form state, field state, and batch updates |
| Path System | address, path, FormPath, query(), and nested data operations |
| Validation System | Validators, trigger timing, validation strategy, and feedback aggregation |
| Linkage System | effects and reactions, their shared foundation, and when to use each |
If you only want to know what Form is, start with Form Model. If you need to understand complex dynamic forms, continue with the path, validation, and linkage pages.