https://github.com/yandex/yx_scope
yx_scope is a compile-safe DI framework with advanced scoping capabilities
https://github.com/yandex/yx_scope
dart dependency-injection flutter scopes
Last synced: about 1 year ago
JSON representation
yx_scope is a compile-safe DI framework with advanced scoping capabilities
- Host: GitHub
- URL: https://github.com/yandex/yx_scope
- Owner: yandex
- License: mit
- Created: 2024-10-08T09:37:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-31T10:10:24.000Z (about 1 year ago)
- Last Synced: 2025-03-31T11:23:19.900Z (about 1 year ago)
- Topics: dart, dependency-injection, flutter, scopes
- Language: Dart
- Homepage: https://dev.go.yandex
- Size: 283 KB
- Stars: 40
- Watchers: 6
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# yx_scope packages
yx_scope is a compile-safe DI framework with advanced scoping capabilities.
## Library Components
The library group currently consists of:
- **[yx_scope](packages/yx_scope)**: The core implementation of the framework
- **[yx_scope_flutter](packages/yx_scope_flutter)**: An adapter library that allows embedding
yx_scope containers into the widget tree
- **[yx_scope_linter](packages/yx_scope_linter)**: A set of custom lint rules that provide
additional protection against errors when working with yx_scope
## Features
- Pure Dart
- DI-like (not static and not ServiceLocator)
- Compile-safe access to dependencies
- No code generation
- Flutter-friendly container management
- Declarative description of the dependency tree
- Non-reactive dependency tree
- Unambiguous behavior and lifecycle of dependencies in containers
- Ability to create scopes of any nesting level
- Compile-safe check for the existence of active scopes
- Support for asynchronous dependencies and their initialization
- Compile-safe protection against circular dependencies