Current portals
Author.Today
Russian online literature platform with support for free and purchased books
Portal architecture
Each portal in ReUCM implements a standardized interface defined in the core library. This modular architecture allows for easy addition of new resources.Portal interface
Every portal must implement thePortal interface from re_ucm_core/lib/models/portal/portal.dart:
Portal service
ThePortalService interface handles all portal-specific operations:
- Authentication: Managing user credentials and session tokens
- URL parsing: Extracting book IDs from portal URLs
- Metadata retrieval: Fetching book information (title, authors, genres, etc.)
- Content download: Retrieving chapter text and handling encryption
- Settings management: Storing portal-specific configuration
Authentication methods
Different portals support different authentication methods:- Token-based: Direct API token authentication
- Web-based: OAuth or cookie-based authentication through embedded browser
- Anonymous: Public content access without authentication
Adding new portals
To add support for a new resource:- Create a new module following the naming convention
re_ucm_[portal_name] - Implement the
Portalinterface - Implement the
PortalServiceinterface with portal-specific logic - Register the portal in
re_ucm_app/lib/core/di.dart
Supported formats
All portals export books in the following formats:- FB2 (FictionBook 2.0) - Primary export format with full metadata support