How mun2ddd/baanright-mfu-housing-demo- works
Baan Buddy is a Chrome extension for translating Thai rental listings and organizing useful listing details. Users can submit selected text from a page through a floating button or the browser context menu; the background worker stores it for the popup, which translates and analyzes the listing. The popup also provides saved listings, search alerts, and Thai reply templates. The source excerpts establish selection dispatch, pending-text handoff, and local persistence; translation-service wiring and some popup behavior are not shown in the excerpts, so those links are marked unverified or omitted.
Main entry points: popup.js Popup interface · background.js Background handoff · content.js Page selection
Components 11
Text capture
- Page selection
content.js - Context menu
background.js - Background handoff
background.js
Listing workflow
- Popup interface
popup.js - Translate and analyze
popup.js
Listing tools
- Extension storage
- Saved listings
popup.js - Search alerts
popup.js - Thai reply generator
popup.js
Other components
- User
- MyMemory API
Connections 14
- User → Page selection: selects text
content.js - Page selection → Background handoff: sends message
content.js - User → Context menu: chooses selection
background.js - Context menu → Background handoff: handles selection
background.js - Background handoff → Extension storage: stores pending text
background.js - Background handoff → Popup interface: opens popup
background.js - Popup interface → Extension storage: reads and clears pending text
popup.js - Popup interface → Translate and analyze: runs listing workflow
popup.js - Translate and analyze → MyMemory API: translates text
- Popup interface → Saved listings: saves and renders
popup.js - Saved listings → Extension storage: reads and writes listings
popup.js - Popup interface → Search alerts: manages alerts
popup.js - Search alerts → Extension storage: reads and writes alerts
popup.js - Popup interface → Thai reply generator: generates replies
popup.js