How renzel/work_or_meditate works
Project type and purpose
• This is a browser extension (“Work or Meditate”) whose purpose is to monitor tab URLs, capture screenshots on navigation, classify content via a local AI server, and prompt the user to meditate if leisure content is detected.
File structure
• Top‐level files:
• background.js – background service worker for URL change detection, screenshot capture, and server calls
• workormeditate.js – content script injected into pages (currently minimal)
• test.js & encoded_test.txt – test harness/materials (likely for local dev)
• No backend code in the repo: classification happens on an external AI service.
README for additional insights
• The AI server is Ollama running locally at http://localhost:11434 with llava-llama3.
• Workflow: URL change → capture screenshot → POST to AI → parse response → if “leisure,” show meditation prompt.
Detailed capture of essential elements
• Local-only processing (privacy boundary).