Embeddable widget
Add a list of the latest AI security issues to any website with a single script tag. The widget fetches the latest issues from the AI Sec Watch API and renders inside a shadow DOM to avoid CSS conflicts with your site.
Configure
Embed code
<script src="https://aisecwatch.com/widget.js" data-severity="critical" data-limit="5" data-theme="light"></script>Minimal version (uses defaults): <script src="https://aisecwatch.com/widget.js"></script>
Preview
How it works
- 1.
Add the script tag
Drop the embed code into any HTML page. Place the script tag at the end of the page body so it does not delay rendering.
- 2.
Shadow DOM isolation
The widget creates a shadow DOM container, ensuring its styles never conflict with your existing CSS.
- 3.
Live API data
Issues are fetched directly from the AI Sec Watch public API with CORS support. Data updates every six hours.
- 4.
Customize with data attributes
Use data-severity, data-limit, and data-theme to control what the widget displays and how it looks.
Configuration reference
| Attribute | Default | Options |
|---|---|---|
| data-severity | critical | critical, high, medium, low, info |
| data-limit | 5 | 1 to 10 |
| data-theme | light | light, dark |
Need more control? Use the REST API directly for full programmatic access to all fields and filters.