How auxin-io/muslim_policy_operating_system works
MPOS here is a Chrome extension for proactive policy-page analysis. Its main workflow is page-load or tab-activation scanning, local eligibility filtering, Gemini analysis, cached results and alerts, then popup presentation with state scope and source verification. The popup also supports forced rescans and manual text/URL analysis; settings control Gemini and notifications. The README documents these capabilities, while excerpts only show selected implementation paths, so unsampled feature links are omitted unless documented.
Main entry points: background.js Scan coordinator · popup.js Popup interface · options.js Settings page · usa-map-data.js US state map geometry
Components 14
Page Monitoring
- Scan coordinator
background.js - Page eligibility filter
background.js - Page text extraction
background.js - Result cache
background.js - Badge and notifications
background.js
Policy Analysis
- Gemini API
- Bill impact analysis
background.js
Extension Interface
- Popup interface
popup/popup.js - US state map geometry
data/usa-map-data.js - Source passage highlight
background.js
Local Settings
- Settings page
options/options.js - Chrome local storage
Other components
- Extension user
- Chrome tabs
Connections 15
- Chrome tabs → Scan coordinator: triggers scans
README.md - Scan coordinator → Page eligibility filter: checks eligibility
README.md - Scan coordinator → Page text extraction: extracts text
background.js - Scan coordinator → Result cache: reads and writes
background.js - Scan coordinator → Bill impact analysis: analyzes text
background.js - Bill impact analysis → Gemini API: requests analysis
background.js - Scan coordinator → Badge and notifications: updates alerts
README.md - Scan coordinator → Popup interface: serves analysis
popup/popup.js - Extension user → Popup interface: opens popup
README.md - Popup interface → Scan coordinator: requests scans
popup/popup.js - Popup interface → US state map geometry: renders map
popup/popup.js - Popup interface → Source passage highlight: requests highlight
popup/popup.js - Popup interface → Scan coordinator: submits manual analysis
popup/popup.js - Settings page → Chrome local storage: saves preferences
options/options.js - Scan coordinator → Chrome local storage: loads configuration
background.js