How reeper316099/pathogenexplorer works
PathogenExplorer is a desktop infectious-organism reference. The main workflow runs from a user's search through taxon resolution, multi-source profile assembly, and a provenance-rich profile displayed in the UI. Separate branches support browsing, comparison, exports, and a saved-organism dashboard. The graph reflects the README’s documented capabilities and shown package references; several UI views and source adapters were not sampled, so their internal call details are not inferred.
Main entry points: app.go App service · ui UI shell and views · builder.go Profile builder · wailsBackend.ts Wails adapter
Components 23
Desktop interface
- UI shell and views
frontend/src/ui - Hash router
frontend/src/router.ts - Backend contract
frontend/src/api/backend.ts - Wails adapter
frontend/src/api/wailsBackend.ts - Reply validation
frontend/src/api/schemas.ts
Organism services
- App service
app.go - Search and resolution
internal/resolve/resolve.go - Search ranking
internal/search/rank.go - Profile builder
internal/profile/builder.go - Profile merge
internal/merge/merge.go - Coverage calculation
internal/model/coverage.go - Organism browse
internal/browse/browse.go - Profile comparison
internal/compare/compare.go - Treatment safety
internal/safety/safety.go
Sources and transport
- Source adapters
internal/sources - HTTPS policy client
internal/netlayer/client.go - Fetch and cache
internal/fetch/fetch.go
Local state and output
- Disk cache
internal/cache/cache.go - Organism library
internal/library/library.go - Profile export
internal/export/export.go
Other components
- User
- Public data sources
- System browser
Connections 24
- User → UI shell and views: uses
- UI shell and views → Hash router: navigates
frontend/src/ui/shell.ts - UI shell and views → Backend contract: requests data
frontend/src/ui/shell.ts - Backend contract → Wails adapter: implemented by
frontend/src/api/wailsBackend.ts - Wails adapter → App service: calls bound methods
- Wails adapter → Reply validation: validates replies
frontend/src/api/wailsBackend.ts - App service → Search and resolution: resolves queries
app.go - App service → Profile builder: builds profiles
- App service → Organism browse: serves browse data
app.go - App service → Profile comparison: compares profiles
- App service → Organism library: records viewed
app.go - App service → Profile export: exports profiles
- Search and resolution → Search ranking: ranks candidates
internal/resolve/resolve.go - Search and resolution → Source adapters: queries taxonomy
internal/resolve/resolve.go - Profile builder → Source adapters: collects source data
internal/profile/builder.go - Profile builder → Fetch and cache: fetches responses
internal/profile/builder.go - Profile builder → Profile merge: merges results
internal/profile/builder.go - Profile merge → Coverage calculation: counts completeness
- Profile merge → Treatment safety: filters treatment text
- Source adapters → HTTPS policy client: sends requests
internal/sources/ncbitax/ncbitax.go - HTTPS policy client → Public data sources: HTTPS requests
- Fetch and cache → Disk cache: reads and writes
internal/fetch/fetch.go - UI shell and views → Public data sources: shows attribution
- UI shell and views → System browser: opens source links