How doreenmolly/mindful-gate works
Mindful Gate interrupts app and site openings with a vision-board reminder, then records whether the user continued or closed the gate. In the browser extension, the content script displays the gate and writes events to local extension storage; the background listener handles close requests, while the popup shows the event count and exports CSV. The README also documents an iPhone Shortcut photo gate. Its implementation and the planned usage-analysis notebook are not present in the supplied tree, so their internal flows are not mapped.
Main entry points: content.js Page Gate · popup.js Export Popup · background.js Close Handler · manifest.json Extension Manifest
Components 10
Phone Reminder
- iPhone Shortcut
Browser Gate
- Page Gate
interrupt/browser-extension/content.js - Gate Styling
interrupt/browser-extension/overlay.css - Close Handler
interrupt/browser-extension/background.js - Extension Manifest
interrupt/browser-extension/manifest.json
Event Records
- Export Popup
interrupt/browser-extension/popup.js - Popup View
interrupt/browser-extension/popup.html - Extension Storage
Other components
- User
- Browser Tab
Connections 11
- User → iPhone Shortcut: opens app
README.md - User → Browser Tab: opens site
- Browser Tab → Page Gate: shows gate
interrupt/browser-extension/content.js - Page Gate → Extension Storage: logs events
interrupt/browser-extension/content.js - Page Gate → Close Handler: sends close
interrupt/browser-extension/content.js - Close Handler → Browser Tab: closes tab
interrupt/browser-extension/background.js - Export Popup → Extension Storage: reads events
interrupt/browser-extension/popup.js - Export Popup → Extension Storage: exports events
interrupt/browser-extension/popup.js - Page Gate → Gate Styling: uses styling
- Extension Manifest → Page Gate: configures script
- Export Popup → Popup View: uses view