Widget comparison
Niyat vs. other prayer times widgets
Niyat's widget is a free script tag with no account and no API key, isolated in a shadow DOM. Most alternatives are an iframe, and two of the mosque-platform options need a free account before they give you any code at all. The table below checks each one directly against its own site.
Side by side
| Widget | Embed type | Account | Location | Notes |
|---|---|---|---|---|
| Niyat | Script tag, shadow DOM | None. No sign-up, no API key. | Any coordinates, or a city preset | Static HTML credit link works even with JavaScript off. Light, dark, or auto theme. |
| time.now | iframe | None stated | Any city you enter | Several calculation methods and Shafi'i/Hanafi Asr; lets you set the iframe's colors and font. |
| hijri.cool | iframe | None | About 119 preset cities, not arbitrary coordinates | Light, dark, or green theme. We could not load the page directly to double-check the city count; this figure is from the provider's own listing. |
| UmmahAPI | Script + div, or an iframe option | None for the widget | Any coordinates | Also ships Quran, Qibla, hadith, dua, and 99-Names widgets from the same free API. Closest to Niyat's own approach; we could not confirm whether it uses a shadow DOM. |
| IslamicFinder | iframe | Not required to generate the embed code | Configurable calculation method, angle, and juristic setting | One of the older, better-known prayer-times sites. We could not confirm whether ads or branding appear inside the iframe itself. |
| Masjidbox | Not confirmed | Free Masjidbox account required; you enter your mosque's own times in their dashboard | Tied to your registered mosque, not a general calculator | Part of a mosque management platform that also does digital signage and donations. A good fit if you already use Masjidbox for those; more setup if you just want a calculated-times widget. |
| The Masjid App | Not confirmed | Not confirmed | Not confirmed | Also part of a broader mosque platform, with events and donation widgets alongside prayer times. Their own page did not state the embed technology or account requirement clearly enough for us to confirm either way. |
| Masjidal | Not confirmed | Free Masjidal account and a Masjid ID required; times are set in their dashboard | Tied to your registered mosque | Also distributed as a WordPress plugin. Same trade-off as Masjidbox: convenient if you already manage iqama times there, extra setup otherwise. |
Checked directly against each provider's own site on 14 September 2026. Where we could not confirm a detail — the exact embed technology for Masjidbox, The Masjid App, and Masjidal, and whether ads appear inside the IslamicFinder or hijri.cool iframes — the table says so rather than guessing.
Iframe vs. shadow DOM, in plain terms
An iframe is a second, separate web page loaded inside a box on your page. It is a reliable way to stop your site's CSS from reaching in and breaking the widget, and it has been the standard approach for embeddable widgets for years. Its trade-off is that it is a second document: it cannot automatically inherit your page's font sizing the way an inline element can, and if the widget's content changes height, the box can need extra script to resize itself.
A shadow DOM does the same isolation job without a second document. The widget's markup and styles live inside a shadow root attached directly to an element on your page: your site's CSS cannot reach in, and the widget's CSS cannot leak out, but it is still one page, one document, and it can resize like any normal element. Niyat's three widgets all use this approach.
FAQ
Frequently asked questions
What is the difference between an iframe widget and Niyat's widget?
An iframe loads a small separate web page inside a box on your site; it keeps your CSS and its CSS from clashing, but it is a second document with its own scrollbar and font defaults. Niyat's widget uses a shadow DOM instead: it renders inside your own page as one element, isolated from your site's styles in both directions, without loading a second document.
Do I need to create an account to use Niyat's widgets?
No. There is no sign-up, login, or API key. Set your location and calculation method in the widget builder and copy the code.
Which prayer times widget should I use for my mosque website?
If your mosque already manages iqama times, donations, or events on a platform like Masjidbox, Masjidal, or The Masjid App, their bundled widget is convenient since it is already wired to your account. If you just want a free, calculated prayer-times, Hijri date, or Ramadan countdown widget for any page with no account to maintain, use Niyat's.
Get adhan reminders on your phone
The Niyat app brings calculated prayer times, adhan notifications, a qibla finder, and the full cited dua library with you.
Keep exploring