How revive101/aurorium works
Aurorium is a persistent asset-tracking and file-serving service. Its main workflow polls the patch server for revision metadata, retrieves and parses manifests, records changed assets, downloads them, and serves tracked revisions and files over HTTP. The README documents the parallel revision-checker and file-server tasks and the API capabilities; sampled source confirms their orchestration and several route and fetcher behaviors. Some route and database internals were not excerpted, so those relationships are cited to the README where documented.
Main entry points: main.rs Task orchestration · db.rs SQLite tracking · manifest_fetcher.rs Manifest retrieval · asset_fetcher.rs Asset downloads
Components 15
Revision discovery
- Revision handshake
src/wizard_patcher.rs - Manifest retrieval
src/fetcher/manifest_fetcher.rs - Manifest parsing
src/xml_parser.rs - Asset downloads
src/fetcher/asset_fetcher.rs - Streamed file writes
src/fetcher/fetcher.rs
Asset tracking
- Revision and asset model
src/revision/mod.rs - SQLite tracking
src/db.rs
HTTP file service
- Asset file route
src/routes/file.rs - Latest revision route
src/routes/latest.rs - Revision list route
src/routes/revisions.rs
Runtime foundation
- Task orchestration
src/main.rs - Runtime configuration
src/config.rs
Other components
- HTTP clients
- Patch server
- Aurorium service
Connections 22
- Task orchestration → Runtime configuration: loads settings
src/main.rs - Task orchestration → SQLite tracking: initializes
src/main.rs - Task orchestration → Revision handshake: checks revisions
src/main.rs - Revision handshake → Patch server: handshakes with
src/wizard_patcher.rs - Task orchestration → Manifest retrieval: retrieves manifests
src/main.rs - Manifest retrieval → Patch server: downloads manifests
README.md - Manifest retrieval → Manifest parsing: parses XML with
src/fetcher/manifest_fetcher.rs - Manifest parsing → Revision and asset model: produces assets
src/xml_parser.rs - Task orchestration → SQLite tracking: records revision assets
src/main.rs - Task orchestration → Asset downloads: starts downloads
src/main.rs - Asset downloads → Patch server: downloads assets
README.md - Asset downloads → Streamed file writes: streams files with
src/fetcher/asset_fetcher.rs - Task orchestration → Asset file route: registers route
src/main.rs - Task orchestration → Latest revision route: registers route
src/main.rs - Task orchestration → Revision list route: registers route
src/main.rs - HTTP clients → Aurorium service: requests files
README.md - Aurorium service → Asset file route: routes file requests
- Aurorium service → Latest revision route: routes latest requests
- Aurorium service → Revision list route: routes revision requests
- Asset file route → SQLite tracking: resolves file owner
src/routes/file.rs - Latest revision route → SQLite tracking: reads latest revision
src/routes/latest.rs - Revision list route → SQLite tracking: lists tracked revisions
README.md