How divyavadapalli/nitestays-divs-tej works
This Chrome extension collects hotel details from Google Hotels, presents and manages the results in an in-page panel, and supports single-hotel and sheet-driven batch workflows. Collection covers overview, prices, reviews, and photos; results can be normalized to USD, stored locally, and exported or sent to Supabase. The excerpts show the principal orchestration and selected module responsibilities; major panel features are visible, but some runtime wiring and integrations are only partially sampled, so uncertain links are omitted.
Main entry points: content-script.js Collection controller · collector.js Collection workflow · service-worker.js Background service worker · panel.js In-page panel
Components 17
Extension interface
- Popup controls
popup/popup.js - In-page panel
content/panel.js
Hotel collection
- Collection controller
content/content-script.js - Sheet batch matching
content/batch.js - Collection workflow
content/collector.js - Page readiness
content/page.js - Hotel data extractors
content/extractors.js - DOM and wait utilities
content/utils.js
Result processing
- USD normalization
content/currency.js - Export formatting
content/export.js
Storage and export
- Extension local storage
content/content-script.js
External services
- Background service worker
background/service-worker.js - Frankfurter rates
- Supabase
- Google Sheets
Other components
- User
- Google Hotels page
Connections 21
- User → Popup controls: opens
popup/popup.js - Popup controls → Collection controller: sends commands
popup/popup.js - User → In-page panel: operates
content/panel.js - In-page panel → Collection controller: invokes actions
content/content-script.js - Collection controller → In-page panel: updates state
content/content-script.js - Collection controller → Collection workflow: starts collection
content/content-script.js - Collection controller → Sheet batch matching: matches sheet rows
content/content-script.js - Collection workflow → Page readiness: checks and opens tabs
content/collector.js - Collection workflow → Hotel data extractors: extracts sections
content/collector.js - Collection workflow → DOM and wait utilities: waits and scrolls
content/collector.js - Page readiness → DOM and wait utilities: uses helpers
- Hotel data extractors → DOM and wait utilities: uses helpers
- Google Hotels page → Collection workflow: provides page data
- Collection controller → Extension local storage: reads and writes
content/content-script.js - Collection controller → USD normalization: normalizes results
- USD normalization → Background service worker: requests rates
- Background service worker → Frankfurter rates: fetches rates
background/service-worker.js - Collection controller → Export formatting: formats results
- Collection controller → Background service worker: sends integrations
- Background service worker → Supabase: calls RPCs
background/service-worker.js - Background service worker → Google Sheets: reads sheet data
background/service-worker.js