How jintairezhao/school-watcher works
School Watcher is a local desktop app for following university notices: users select schools, the system discovers publication sources, collects notices, and presents them in a searchable inbox. Its durable task queue and worker support background discovery, collection, and maintenance. Optional AI assists source identification and user-requested summaries; browser-based fetching is available for dynamic pages. The graph combines README-documented capabilities with sampled source references. Many route and service implementations were not excerpted, so some subsystem links are documented at a high level rather than traced through every call.
Main entry points: engine.py Scrape engine · discovery.py Source discovery · models.py Local database · worker.py Background worker
Components 26
Desktop experience
- Desktop window
desktop/window.py - App entry
app.py - Inbox interface
frontend/static/js/app.js
Source discovery
- School catalog
backend/services/school_registry.py - Source discovery
backend/services/discovery.py - Source governance
backend/services/source_governance.py - Source inventory
backend/services/source_inventory.py - Discovery control
backend/services/discovery_control.py - Discovery policy
backend/services/discovery_policy.py - AI runtime
backend/ai/runtime.py
Notice collection
- Scrape engine
backend/scraper/engine.py - HTTP fetching
backend/scraper/http_client.py - Browser fetching
backend/browser_service - Change detection
backend/scraper/change_detector.py - Title validation
backend/scraper/detectors/title_quality.py - List discovery
backend/scraper/discovery/publication_lists.py
Inbox and AI
- AI configuration
backend/ai/configuration.py - Inbox refresh
backend/services/inbox_refresh.py - Notice search
backend/routes/search.py - AI summaries
backend/services/summaries.py
Runtime and data
- Durable task queue
backend/services/tasks.py - Background worker
backend/worker.py - Storage policy
backend/services/storage_policy.py - Runtime catalog
backend/services/runtime_catalog.py - Local database
backend/database/models.py
Other components
- Local user
Connections 27
- Local user → Desktop window: uses
README.md - App entry → Desktop window: starts
app.py - Desktop window → Inbox interface: opens interface
README.md - Local user → School catalog: follows schools
README.md - School catalog → Source discovery: starts discovery
README.md - Source discovery → Source governance: validates sources
- Source discovery → Source inventory: records findings
- Source discovery → Durable task queue: queues work
- Discovery control → Source discovery: controls discovery
- Discovery policy → AI runtime: limits usage
backend/ai/runtime.py - AI configuration → AI runtime: configures
backend/ai/runtime.py - AI runtime → Source discovery: assists discovery
README.md - Background worker → Durable task queue: claims tasks
backend/worker.py - Background worker → Scrape engine: collects notices
backend/worker.py - Scrape engine → HTTP fetching: fetches pages
backend/scraper/engine.py - Scrape engine → Browser fetching: uses browser
README.md - Scrape engine → Change detection: checks changes
backend/scraper/engine.py - Scrape engine → Title validation: validates titles
backend/scraper/engine.py - Scrape engine → List discovery: finds lists
backend/scraper/engine.py - Background worker → Inbox refresh: refreshes inbox
backend/worker.py - Inbox interface → Notice search: searches notices
- Notice search → AI summaries: loads summaries
backend/routes/search.py - Local user → AI summaries: requests summary
README.md - Scrape engine → Local database: stores notices
backend/scraper/engine.py - Notice search → Local database: queries notices
backend/routes/search.py - Storage policy → Local database: stores policy
backend/services/storage_policy.py - Runtime catalog → Local database: persists catalog