How elirangor/byewall works
Page Rewind is a Chrome extension for opening archived versions of the current page through Archive.today or the Wayback Machine. The popup coordinates service and tab preferences, history, shortcuts, and archive requests; the background worker dispatches requests to shared archive logic, which validates the page, checks for snapshots, opens one, and records it. The graph includes the documented shortcut and theme capabilities. Some popup internals and manifest wiring were not sampled, so unverified connections are omitted.
Main entry points: popup.js Popup coordinator · ui-handlers.js Popup controls · archive-core.js Archive lookup and opening · history-manager.js Archive history
Components 19
Popup experience
- Popup coordinator
src/popup/popup.js - Popup controls
src/popup/modules/ui-handlers.js - Popup rendering
src/ui/popup-ui.js - Shortcut display
src/popup/modules/shortcuts.js - Pending messages
src/popup/modules/pending-messages.js - Precheck warmup
src/popup/modules/precheck.js - History controls
src/popup/modules/history.js
Archive workflow
- Background worker
src/background/service-worker.js - Archive lookup and opening
src/core/archive-core.js
Preferences and history
- Archive history
src/storage/history-manager.js - Service and display preferences
src/popup/modules/ui-handlers.js
Shared logic
- Error message mapping
src/core/error-messages.js - Configuration constants
src/core/constants.js - Storage and URL utilities
src/utils/utils.js
Other components
- User
- Chrome APIs
- Archive.today
- Wayback Machine
- Extension storage
Connections 26
- User → Popup coordinator: opens popup
README.md - Popup coordinator → History controls: loads history
src/popup/popup.js - Popup coordinator → Pending messages: checks messages
src/popup/popup.js - Popup coordinator → Shortcut display: initializes hints
src/popup/popup.js - Popup coordinator → Popup controls: initializes controls
src/popup/popup.js - Popup controls → Background worker: requests archive
src/popup/modules/ui-handlers.js - Background worker → Archive lookup and opening: dispatches request
src/background/service-worker.js - Background worker → Extension storage: stores shortcut error
src/background/service-worker.js - Popup coordinator → Precheck warmup: warms checks
src/popup/popup.js - Popup controls → Precheck warmup: starts warmup
src/popup/modules/ui-handlers.js - Archive lookup and opening → Archive.today: checks snapshot
src/core/archive-core.js - Archive lookup and opening → Wayback Machine: checks snapshot
src/core/archive-core.js - Archive lookup and opening → Archive history: saves archive
src/core/archive-core.js - Archive lookup and opening → Chrome APIs: opens archived page
src/core/archive-core.js - Archive history → Extension storage: reads and writes
src/storage/history-manager.js - History controls → Archive history: loads and edits
src/popup/modules/history.js - History controls → Popup rendering: renders history
src/popup/modules/history.js - Popup controls → Popup rendering: shows feedback
src/popup/modules/ui-handlers.js - Pending messages → Popup rendering: shows message
src/popup/modules/pending-messages.js - Pending messages → Error message mapping: formats error
src/popup/modules/pending-messages.js - Popup controls → Error message mapping: formats error
src/popup/modules/ui-handlers.js - Popup controls → Extension storage: stores preferences
src/popup/modules/ui-handlers.js - Archive lookup and opening → Storage and URL utilities: validates URLs
src/core/archive-core.js - Archive history → Storage and URL utilities: normalizes URLs
src/storage/history-manager.js - Popup rendering → Storage and URL utilities: checks text direction
src/ui/popup-ui.js - Error message mapping → Configuration constants: maps error codes
src/core/error-messages.js