@legible-sync/example-console
v1.3.1
Published
Console example application using LegibleSync framework
Maintainers
Readme
@legible-sync/example-console
Console-based example application demonstrating the LegibleSync framework.
Running the Example
From the root of the monorepo, run:
npm run dev:consoleThis will demonstrate:
- User registration with validation
- Synchronization rules execution
- Flow auditing and tracing
- State persistence
What It Does
The console example shows a complete user registration flow:
- User Registration: Creates a new user account
- Password Validation: Ensures password meets requirements
- JWT Generation: Creates authentication tokens
- State Persistence: Saves data using RDF/SPARQL patterns
- Flow Auditing: Shows complete execution trace
Code Structure
src/
├── concepts/ # Business logic modules
│ ├── User.ts # User management
│ ├── Password.ts # Password handling
│ ├── JWT.ts # Token generation
│ └── Persistence.ts # RDF storage
├── syncs/ # Synchronization rules
│ └── registration.sync.ts
├── utils/ # Utilities
│ └── audit.ts # Flow auditing
└── index.ts # Main applicationLearning Points
- How to define and register concepts
- Creating synchronization rules
- Flow management and auditing
- State persistence patterns
- Error handling and validation
Related Packages
- @legible-sync/core - Framework core
- @legible-sync/example-express - REST API example
License
MIT License - Copyright (c) 2025 Mauro Stepanoski
