How mplungjan/dealbreaker works
Dealbreaker is a deal-comparison app: users enter two offers, then see normalized unit prices and which deal is better. The web client builds and submits comparison data to the PHP processor; the separate app client performs comparison in-browser. Settings support currency, units, theme, and first-run preferences, while the web landing page provides demo/privacy modals and iframe sizing. Source excerpts show the web request path and settings behavior; app-side calculation details and several page capabilities are only partly sampled, so their internal connections are not expanded.
Main entry points: process.php Deal processor · webapp.js Web comparison UI · aux.js Site interactions · app.js App comparison UI
Components 13
Deal comparison
- App comparison UI
src/app/js/app.js - Web comparison UI
src/web/js/webapp.js - Deal processor
src/web/process.php - Exchange rates
src/web/process.php
Settings
- App settings
src/app/js/settings.js - Web settings
src/web/js/settings.js - Browser preferences
Website experience
- Web landing pages
src/web/index.html - Site interactions
src/web/js/aux.js - Privacy content
src/web/nl/dealbreak.html - Embedded demo
src/web/js/aux.js
Other components
- Shopper
- Exchange-rate API
Connections 15
- Shopper → App comparison UI: enters offers
src/app/js/app.js - App comparison UI → Shopper: shows comparison
src/app/js/app.js - Shopper → Web comparison UI: enters offers
src/web/js/webapp.js - Web comparison UI → Deal processor: posts deals
src/web/js/webapp.js - Deal processor → Web comparison UI: returns result
src/web/js/webapp.js - Web comparison UI → Shopper: shows comparison
src/web/js/webapp.js - Deal processor → Exchange rates: reads cache
src/web/process.php - Deal processor → Exchange-rate API: fetches rates
src/web/process.php - Shopper → App settings: changes preferences
src/app/js/settings.js - Shopper → Web settings: changes preferences
src/web/js/settings.js - App settings → Browser preferences: loads and saves
src/app/js/settings.js - Web settings → Browser preferences: loads and saves
src/web/js/settings.js - Web landing pages → Site interactions: loads script
- Site interactions → Privacy content: fetches content
src/web/js/aux.js - Site interactions → Embedded demo: sizes iframe
src/web/js/aux.js