Developers often lose track of time during deep focus sessions. I built Prayer Time Reminder (published on VS Code Marketplace as riflo.prayer-time-reminder) to integrate real-time prayer countdowns, daily Quran verses, and dhikr tools directly into the editor.
Key Architecture & Features
Building a VS Code extension required leveraging VS Code's extension API efficiently without burning background CPU cycles:
- Status Bar API: Displays a live countdown timer that updates once per second using non-blocking intervals.
- Sidebar Dashboard: Webview panel presenting today's prayer schedule and status badges.
- IP-Based Auto Location: Automatically detects your city on initial startup—no manual coordinates needed.
- Daily Quran Ayah: Displays random daily Quran verses with translations upon editor startup.
- Built-in Tasbih Counter: Interactive status bar click counter for quick dhikr while waiting for builds.
- Visual Alerts: Dynamic color indicators that change as prayer time approaches (Yellow alert, Red on arrival).
Technical Insight: To prevent memory leaks, all status bar items, event listeners, and timers are registered to
context.subscriptions so they dispose cleanly when VS Code closes.