How trankite/snap.voracity works
Snap.Voracity is a console command application for E-Hentai/ExHentai gallery downloads and Hoyolab account, game, and community tasks. Its main workflow reads command-line or interactive input, parses it into commands, and dispatches through the terminal manager; domain commands then handle the requested operation. The tree and README establish additional capabilities, but excerpts do not show every command’s internal calls, so those links are kept conservative. The sampled gallery parser explicitly requests and deserializes gallery pages into image-URL tickets.
Main entry points: HttpContext.cs HTTP context · Hoyolab Hoyolab commands · TerminalManage.cs Command manager · Program.cs Program entry
Components 22
Terminal runtime
- Program entry
Terminal/Program.cs - Command parser
Common/Source/Service/Terminal/CommandParser.cs - Command manager
Common/Source/Service/Terminal/TerminalManage.cs - Terminal invocation
Common/Source/Service/Terminal/Support/TerminalInvoke.cs - Support commands
Common/Source/Service/Terminal/Support
Gallery downloads
- E-Hentai commands
Common/Source/Service/Terminal/EHentai - Gallery downloader
Common/Source/Web/EHentai/Download/EHentaiDownloader.cs - Gallery page parser
Common/Source/Web/EHentai/Download/EHentaiSlideParser.cs - Gallery request and decoding
Common/Source/Web/EHentai/Gallery
Hoyolab services
- Hoyolab commands
Common/Source/Service/Terminal/Hoyolab - Login and QR auth
Common/Source/Web/Hoyolab/Passport - Forum operations
Common/Source/Web/Hoyolab/Bbs/Forum - Mission and check-in
Common/Source/Web/Hoyolab/Bbs - Game account data
Common/Source/Web/Hoyolab/Takumi
Shared services
- HTTP context
Common/Source/Web/HttpContext.cs - Token persistence
Common/Source/Model/Collection/Token/TokenManager.cs - QR generation
Common/Source/Service/Encode/QRCode/QRCode.cs - Formula parsing
Common/Source/Factory/Formula - File operations
Common/Source/Factory/Streams/FileOpen
Other components
- Console user
- E-Hentai service
- Hoyolab service
Connections 27
- Console user → Program entry: enters commands
- Program entry → Command parser: parses input
- Program entry → Terminal invocation: invokes
- Terminal invocation → Command parser: consumes commands
- Command parser → Command manager: looks up commands
- Command manager → E-Hentai commands: dispatches
- Command manager → Hoyolab commands: dispatches
- Command manager → Support commands: dispatches
- E-Hentai commands → Gallery downloader: requests downloads
- Gallery downloader → Gallery page parser: parses gallery pages
- Gallery page parser → Gallery request and decoding: builds requests
- Gallery page parser → HTTP context: sends requests
- HTTP context → E-Hentai service: requests pages
- Hoyolab commands → Login and QR auth: authenticates
- Hoyolab commands → Forum operations: runs forum tasks
- Hoyolab commands → Mission and check-in: runs tasks
- Hoyolab commands → Game account data: queries game data
- Login and QR auth → HTTP context: uses HTTP context
- Forum operations → HTTP context: uses HTTP context
- Mission and check-in → HTTP context: uses HTTP context
- Game account data → HTTP context: uses HTTP context
- HTTP context → Hoyolab service: requests API
- Token persistence → File operations: reads and writes
- E-Hentai commands → Token persistence: may persist credentials
- Hoyolab commands → Token persistence: may persist credentials
- Support commands → QR generation: supports QR output
- Support commands → Formula parsing: supports formula task