How manhhao/hoshi-reader works
Hoshi Reader is an iOS Japanese EPUB reader for immersion learning. The principal workflow is importing and organizing EPUBs, reading and navigating their contents, then looking up selected text in Yomitan-style dictionaries and optionally mining it to Anki. Separate capabilities include audio-assisted reading, statistics, and ッツ Reader sync. The graph combines documented product features with relationships visible in the supplied source index; reader internals were not sampled, so uncertain connections are omitted or marked unverified.
Main entry points: BookshelfViewModel.swift Shelf management · SyncManager.swift Sync orchestration · PopupWebView.swift Lookup popup · HoshiReader.swift App entry
Components 21
EPUB processing
- EPUB import
Libraries/EPUBKit/Sources/EPUBKit/Parser/EPUBParser.swift - EPUB document model
Libraries/EPUBKit/Sources/EPUBKit/Model/EPUBDocument.swift
Bookshelf and reading
- App entry
App/HoshiReader.swift - Bookshelf
Features/Bookshelf/BookshelfView.swift - Shelf management
Features/Bookshelf/BookshelfViewModel.swift - EPUB reader
Features/Reader/ReaderView/ReaderView.swift - Reader web view
Features/Reader/ReaderWebView/ReaderWebView.swift - Contents and search
Features/Reader/Contents/BookSearch.swift
Lookup and mining
- Dictionary search
Features/Dictionary/DictionarySearchView.swift - Lookup popup
Features/Popup/PopupWebView.swift - Dictionary lookup engine
Core/LookupEngine.swift - Dictionary management
Core/DictionaryManager.swift
Local data and settings
- Book storage
Core/BookStorage.swift - User preferences
Core/UserConfig.swift
Integrations and insights
- Anki mining
Core/AnkiManager.swift - Sasayaki audio
Features/Sasayaki/SasayakiPlayer.swift - Reading statistics
Core/StatisticsStorage.swift - Sync orchestration
Features/Sync/SyncManager.swift - Google Drive
Features/Sync/GoogleDriveHandler.swift - Credential storage
Features/Sync/TokenStorage.swift
Other components
- Reader
Connections 23
- Reader → App entry: opens
- App entry → Bookshelf: shows
App/HoshiReader.swift - Bookshelf → Shelf management: uses
Features/Bookshelf/BookshelfView.swift - Shelf management → Book storage: manages books
Features/Bookshelf/BookshelfViewModel.swift - Shelf management → Reading statistics: updates stats
Features/Bookshelf/BookshelfViewModel.swift - Shelf management → Sync orchestration: requests sync
Features/Bookshelf/BookshelfViewModel.swift - Shelf management → EPUB document model: uses document
Features/Bookshelf/BookshelfViewModel.swift - EPUB import → EPUB document model: builds document
Libraries/EPUBKit/Sources/EPUBKit/Parser/EPUBParser.swift - Book storage → EPUB import: parses EPUB
Core/BookStorage.swift - EPUB reader → Reader web view: renders through
- EPUB reader → Contents and search: offers navigation
- Dictionary search → Lookup popup: shows lookup
Features/Dictionary/DictionarySearchView.swift - Lookup popup → Dictionary lookup engine: queries
Features/Popup/PopupWebView.swift - Dictionary management → Dictionary lookup engine: provides dictionaries
Core/DictionaryManager.swift - Dictionary search → Anki mining: mines entries
Features/Dictionary/DictionarySearchView.swift - Lookup popup → Anki mining: supports mining
Features/Popup/PopupWebView.swift - Lookup popup → Sasayaki audio: plays word audio
Features/Popup/PopupWebView.swift - Sync orchestration → Google Drive: transfers data
Features/Sync/SyncManager.swift - Sync orchestration → Book storage: reads book data
Features/Sync/SyncManager.swift - Sync orchestration → Reading statistics: syncs statistics
Features/Sync/SyncManager.swift - Google Drive → Credential storage: uses credentials
Features/Sync/GoogleDriveHandler.swift - App entry → User preferences: loads preferences
App/HoshiReader.swift - Reader → Sync orchestration: enables sync