Ancient Light for Modern Minds
Divine Wisdom is a lightweight Chrome extension that delivers one sacred Hindu scripture verse per browser session. It waits 5–7 seconds after you open a page, slides in a beautifully styled overlay, then disappears in 10–20 seconds — never interrupting your flow, always enriching your moment.
One Verse. One Session. One Moment.
Technical Deep Dive
Built on Manifest v3 with a service worker model. A race-condition-safe dual-lock system ensures exactly one verse per session, even when multiple tabs open simultaneously.
// Dual-lock: in-memory + session storage let sessionGateLocked = false; chrome.runtime.onStartup.addListener(() => { sessionGateLocked = false; chrome.storage.session.set({ showMessage: true }); }); // First tab wins — all others get null if (!sessionGateLocked && result.showMessage) { sessionGateLocked = true; // Lock immediately chrome.storage.session.set({ showMessage: false }); // Fetch verse → send to winning tab }
{
"source": "Bhagavad Gita",
"chapter": "Chapter 2, Verse 47",
"speaker": "Lord Krishna",
"message": "You have a right to perform your duties..."
}
Permissions
| Permission | Used In | Purpose |
|---|---|---|
| storage | background.js | Session storage for the one-per-session gate flag only |
| tabs | manifest.json | Required for content script injection into tab context |
| activeTab | manifest.json | Enables the popup UI when the extension icon is clicked |
Sacred Aesthetics
Typography
Color Palette
Get Started
- 1Visit the Chrome Web Store listing for Divine Wisdom
- 2Click Add to Chrome and confirm the permissions dialog
- 3Restart your browser completely
- 4Open any webpage — your first sacred verse will appear after 5–7 seconds 🙏
- 1Clone the repository:
git clone https://github.com/yourusername/divine-wisdom-extension.git - 2Open Chrome and navigate to
chrome://extensions/ - 3Enable Developer Mode using the toggle in the top-right corner
- 4Click Load unpacked and select the project folder
- 5Restart Chrome, open any tab, and your verse will appear 🕉️
Zero Data. Total Transparency.
This extension was built with privacy at its core. We collect absolutely nothing — because there is nothing to collect.
From the Ancient Texts
One who sees inaction in action, and action in inaction, is intelligent among men.