How mehedieh/railway-booking-helper works
This MV3 Chrome extension helps a user search Bangladesh Railway’s e-ticket site and automate train, class, coach, and seat selection. The workflow starts in the popup, where booking preferences are saved locally; the user opens or fills the search page, then starts an immediate or scheduled run. The page flow retries train results, selects seats, and in live mode continues purchase before stopping at the OTP handoff. It avoids login, CAPTCHA, OTP entry, and payment. The graph reflects shown code and README claims; some flow details come from partial excerpts.
Main entry points: overlay.js Status Overlay · popup.js Booking Controls · flow.js Run Scheduler · selectors.js Site Selectors
Components 18
Popup and Settings
- Booking Controls
popup.js - Saved Preferences
popup.js - Search Page Link
popup.js
Railway Page Workflow
- Search Form Fill
content.js - Page Message Router
content.js - Run Scheduler
flow.js - Train and Class Match
flow.js - Coach Selection
flow.js - Seat Selection
flow.js - Purchase Continue
flow.js - OTP Handoff
flow.js
Page Support
- Site Selectors
selectors.js - Shared Utilities
utils.js - Status Overlay
overlay.js
Alerts and Browser
- Notification Handler
background.js
Other components
- User
- Railway E-ticket Site
- Chrome APIs
Connections 32
- User → Booking Controls: sets preferences
popup.js - Booking Controls → Saved Preferences: saves settings
popup.js - Booking Controls → Search Page Link: opens search
popup.js - Search Page Link → Chrome APIs: creates tab
popup.js - Booking Controls → Page Message Router: sends commands
popup.js - Booking Controls → Chrome APIs: reads and writes
popup.js - Page Message Router → Search Form Fill: runs form fill
content.js - Page Message Router → Run Scheduler: starts or schedules
content.js - Page Message Router → Run Scheduler: stops run
content.js - Search Form Fill → Railway E-ticket Site: fills search fields
content.js - Run Scheduler → Train and Class Match: starts booking flow
flow.js - Train and Class Match → Railway E-ticket Site: reads results
flow.js - Coach Selection → Railway E-ticket Site: selects coach
flow.js - Seat Selection → Railway E-ticket Site: selects seats
flow.js - Purchase Continue → Railway E-ticket Site: continues purchase
flow.js - OTP Handoff → Railway E-ticket Site: watches OTP screen
flow.js - Run Scheduler → Status Overlay: updates status
flow.js - Train and Class Match → Status Overlay: reports progress
flow.js - Coach Selection → Status Overlay: reports progress
flow.js - Seat Selection → Status Overlay: reports progress
flow.js - Purchase Continue → Status Overlay: reports progress
flow.js - OTP Handoff → Status Overlay: alerts user
flow.js - Status Overlay → Notification Handler: sends notification
overlay.js - Notification Handler → Chrome APIs: creates notification
background.js - Notification Handler → Chrome APIs: focuses tab
background.js - Search Form Fill → Site Selectors: uses selectors
content.js - Train and Class Match → Site Selectors: uses selectors
flow.js - Coach Selection → Site Selectors: uses selectors
flow.js - Seat Selection → Site Selectors: uses selectors
flow.js - OTP Handoff → Site Selectors: checks OTP selectors
flow.js - Search Form Fill → Shared Utilities: formats and waits
content.js - Run Scheduler → Shared Utilities: formats countdown
flow.js