What problem does it solve?
The VM Standard defines inviolable covenants governing View Model architecture to ensure consistency, maintainability, and proper separation of concerns across all UI-related code. It prevents divergence in VM definitions and enforces a uniform pattern for live/test layers, atom usage, and tagging.
Core Features & Use Cases
- Enforces single-file View Model definitions following the {ComponentName}.vm.ts naming convention.
- Provides a canonical Layer structure with live and test variants and namespace import patterns.
- Prohibits business logic in View Models; delegates to services and exposes reactive UI bindings.
- Useful for teams building robust UI architectures, enabling reliable testing and production readiness.
Quick Start
Create a new VM following the canonical template and export it with live/test variants as shown in the template. Ensure the VM resides in a single file named {ComponentName}.vm.ts and that the default export uses VMRuntime.key with live and test variants.