Vyuh Entity System
Entity Explorer & Relationships
A type-safe framework for exploring entities and their rich relationships. Visualize data connectedness, navigate between related entities, and manage the complete entity lifecycle with CRUD operations, version history, and audit trails.
Why Entity System?
Relationship Exploration
Visualize and navigate rich entity relationships. Explore the connectedness of your data.
Version History
Track changes to entities with automatic versioning and diff capabilities.
Audit Trails
Complete audit trail of all entity changes with who, what, and when.
Full CRUD Operations
Create, read, update, and delete entities with type-safe operations.
Quick Example
dart
// Define an entity schema
final userEntity = EntityDescriptor<User>(
name: 'user',
version: 1,
fields: [
Field.string('name', required: true, minLength: 2),
Field.email('email', required: true),
Field.int('age', min: 0, max: 150),
Field.datetime('createdAt', defaultValue: DateTime.now),
],
fromJson: User.fromJson,
toJson: (user) => user.toJson(),
);
// Register and use
final system = EntitySystem()
..register(userEntity);
// Create with validation
final user = await system.create<User>({
'name': 'Alice',
'email': 'alice@example.com',
'age': 28,
});
// Track versions
final history = await system.getVersionHistory(user.id);Core Features
Entity GraphVisualize relationships and data connections
NavigationSeamlessly navigate between related entities
Type SafetyFull Dart type support with validation
Coming Soon
Comprehensive documentation is being developed. Check back soon for:
- Installation and setup guide
- Entity definition patterns
- Validation strategies
- Storage adapters
- Migration workflows