Add TimeFYI entity cards, comparison tables, glossary terms, interactive tools, and inline elements to any website with a single line of HTML. No build tools. No dependencies. Live data from the TimeFYI database.
Widget Preview
Two lines of HTML. That's all it takes.
Select a widget type to preview. Every widget includes Shadow DOM isolation and a "Powered by TimeFYI" backlink.
Widget preview loads from live API
Widget preview loads from live API
Configure widgets with data-* attributes.
| Attribute | Values | Default | Description |
|---|---|---|---|
| data-timefyi | entity, compare, glossary, guide, search, faq, [tools] | required | Widget type to render |
| data-slug | any slug | — | Entity slug from the TimeFYI database |
| data-theme | light, dark, sepia, auto | light | Visual theme (auto follows OS preference) |
| data-styleVariant | modern, clean | modern | Widget design style |
| data-size | default, compact, large | default | Widget size |
| data-slugs | slug-a,slug-b | — | Comma-separated slugs for compare widget |
| data-placeholder | any string | Search... | Search box placeholder text |
2 design styles × 4 themes. Mix and match to fit your site.
Clean lines, rounded corners, accent gradients. Ideal for product pages and documentation. Default style.
Minimal borders, utility-focused, data-first aesthetic. Ideal for developer tools, dashboards, and reference sites.
Set explicitly or use auto to follow the visitor's OS preference (prefers-color-scheme).
Warm paper-tone background. Perfect for reference guides, educational materials, and documentation.
Multiple delivery options to fit your workflow.
Global CDN, auto-updates with npm. Recommended for most use cases.
<script src="https://cdn.jsdelivr.net/npm/timefyi-embed@1/dist/embed.min.js"></script>
For Webpack, Vite, Rollup bundlers.
npm install timefyi-embed // In your JS/TS: import 'timefyi-embed';
Lock to a specific version for production stability.
<script src="https://cdn.jsdelivr.net/npm/timefyi-embed@1.0.0/dist/embed.min.js"></script>
Part of FYIPedia — open-source developer tools for unit conversion, timezones, holidays, and names. Hub: toolfyi.com.
| Site | Domain | Package |
|---|---|---|
| UnitFYI | unitfyi.com | npm |
| TimeFYI | timefyi.com | npm |
| HolidayFYI | holidayfyi.com | npm |
| NameFYI | namefyi.com | npm |