Embed widget
The embed widget puts a live status card on your own website, so visitors and customers don't need to open your status page. It shows the monitors on one status page, their current status, daily uptime bars and any open incidents. It refreshes every 60 seconds.
Create an embed key
- Go to Dashboard → API & embeds.
- Under Embed widget, name the key, pick the status page to show and list the websites allowed to show the widget.
- Copy the snippet into your site's HTML where the widget should appear.
<script src="https://app.asniher.com/embed.js" data-key="ask_pub_…" async></script>
Embed keys (ask_pub_…) are meant to be public. They can only read what the chosen status page shows, and they only work on the websites you allow. The widget works with a private status page too. In that case the card has no "View status page" link.
Allowed websites
List each origin on its own line, as scheme and host with no path:
https://example.com
https://www.example.com
https://*.example.com
http://localhost:3000
https://*.example.com matches every subdomain of example.com, but not example.com itself. Browsers send the page's origin with each request. Asniher rejects requests from any other origin, and the iframe version refuses to load inside other sites.
Options
| Attribute | Effect |
|---|---|
data-key |
Your embed key. Required. |
data-theme |
auto (default, follows the visitor's light or dark mode), light or dark. |
data-days |
Days of uptime bars to show: 30 (default), 60 or 90. |
data-target |
A CSS selector such as #status. The widget renders inside that element instead of right after the script tag. |
The widget renders inside a shadow DOM, so your site's CSS doesn't affect it and its CSS doesn't leak into your page. It takes the full width of its container, up to 560 px.
Iframe
If your site blocks third-party scripts, use the iframe instead. It accepts the same theme and days options as query parameters:
<iframe src="https://app.asniher.com/embed/ask_pub_…?theme=dark&days=90"
title="Service status" width="100%" height="320" style="border:0" loading="lazy"></iframe>
Increase height if your status page has many monitors. The iframe reloads itself every 60 seconds.
Plans
The widget is free on every plan. On Free it shows a small "Powered by Asniher" link, as the status page does.
Revoking
Revoke a key under Dashboard → API & embeds. The widget stops loading straight away. Deleting the status page also deletes its embed keys.