<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Isha Khan</title>
    <description>The latest articles on DEV Community by Isha Khan (@ishakhan418).</description>
    <link>https://dev.to/ishakhan418</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3264874%2Fcde06fb6-de53-4b64-8872-0d300f117b66.jpg</url>
      <title>DEV Community: Isha Khan</title>
      <link>https://dev.to/ishakhan418</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ishakhan418"/>
    <language>en</language>
    <item>
      <title>How to Build a JavaScript Browser Extension for Mindfulness Reminders?</title>
      <dc:creator>Isha Khan</dc:creator>
      <pubDate>Sun, 06 Jul 2025 09:36:59 +0000</pubDate>
      <link>https://dev.to/ishakhan418/how-to-build-a-javascript-browser-extension-for-mindfulness-reminders-1hb8</link>
      <guid>https://dev.to/ishakhan418/how-to-build-a-javascript-browser-extension-for-mindfulness-reminders-1hb8</guid>
      <description>&lt;p&gt;Hi DEV Community,&lt;/p&gt;

&lt;p&gt;I’m working on a JavaScript-based browser extension to help developers take short mindfulness breaks during coding sessions to improve focus. I found resources like &lt;a href="https://calmytime.com/" rel="noopener noreferrer"&gt;CalMyTime&lt;/a&gt; with quick relaxation exercises, and I want to create a timer that triggers a notification linking to such exercises every hour. I’ve tried using setInterval for the timer in a basic script:&lt;br&gt;
&lt;code&gt;setInterval(() =&amp;gt; {  &lt;br&gt;
  chrome.notifications.create({  &lt;br&gt;
    type: 'basic',  &lt;br&gt;
    iconUrl: 'icon.png',  &lt;br&gt;
    title: 'Mindfulness Break',  &lt;br&gt;
    message: 'Time for a quick relaxation exercise!'  &lt;br&gt;
  });  &lt;br&gt;
}, 3600000); // 1 hour&lt;/code&gt;&lt;br&gt;
The issue is the timer resets when the browser restarts, and I’m unsure how to persist it using chrome.storage. I also want to ensure notifications work reliably across Chrome and Firefox. Has anyone built a similar extension or used libraries to handle persistent timers and notifications? I checked MDN’s WebExtensions docs but couldn’t find a clear example for this use case. Any code snippets or tool recommendations (e.g., from npm or GitHub) would be great! &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
