Best Practices in ARDOR
Writing maintainable frontend applications requires clear structural boundaries between state, transport, and dependency resolution. These best practices describe established patterns for registering container services, typing keys with module augmentation, authoring repositories, and handling token recovery.
Binding Keys and Registration
Register classes via stereotype discovery or by hand, manage singleton scopes, and wire provider slots
Module Augmentation
Extend key unions for useInjectable and useTranslate through TypeScript module augmentation on @venizia/ardor
Services and Repositories
Author domain services on BaseService and resource repositories on HttpRepository with options objects and @api()
No-Auth Paths and Token Recovery
Configure unauthenticated endpoints and implement one-refresh-one-retry recovery workflows for HTTP 401 statuses
Architecture Roadmap
Container Registration
Type Safety
Domain Architecture
Authentication Security
No-Auth Paths and Token Recovery
Define unauthenticated paths and coordinate automatic token refresh across data providers and repositories