Free AI news for your website

The latest posts of AI Today (or All Today for world news) as a small list or a ticker on your site or blog. Every headline links to the full article. No cookies, no tracking, no ads. Works in WordPress (block “Custom HTML”), Ghost, Webflow, Wix, Squarespace and plain HTML.

1. Choose

Style

Fine tuning

Off by default: the link in the widget header to AI Today then carries nofollow like the headlines. Tick it only on pages you own; the headlines stay nofollow.

2. Preview

3. Copy the code

Embed a news game

Our news games are small browser games about real news. Put one on your page: it loads only when a visitor clicks “Play”, and it links back to the article it is about.

Loading the newest games …

Questions

How safe is this for my website? What can the widget do?

With the iframe form nothing at all can happen to your page. The three forms differ in how much you have to trust us:

  • iframe (safest). The widget runs in a locked box (a sandboxed frame from our server). It cannot read or change your page, your cookies, your forms or what your visitors type, it cannot send your visitors to another page by itself, open windows without a click or download anything. Our server also sets the lock itself (the page carries a sandbox policy), so an old or edited code stays locked too. Your site needs only frame-src in a Content-Security-Policy, no script.
  • Script, pinned. A script runs with the rights of your page, that is how every script works. But here the browser compares the file with the hash in the code before it runs it, and the file at that address never changes. If our servers were taken over after you pasted the code, the script would simply not run. (The pin protects from the moment you paste it on; to be sure about the moment of copying, compare the hash with the one in your own download of the file: openssl dgst -sha384 -binary widget-1.3.0.js | openssl base64 -A.) An update is a new code that you paste yourself (the generator shows the newest).
  • Script, updates itself. Convenient and always current, but you trust our server with your page: we could change the script at any time, and so could anybody who took over our server. Use it only where you accept that, or use one of the other two.

What the script does (a test checks each point before every release): it builds its text with plain DOM calls and never reads what our server sends as HTML; it shows only links to AI Today or All Today pages over https; it reads and writes no cookie and no storage, opens no window, loads no further script, image, frame or style and talks to no other window; it sends one kind of request, a plain GET of the headlines without cookies, with your host name. Pages that enforce Trusted Types for scripts can run it. The file is short and readable: widget.js.

What remains in the worst case, a taken-over server of ours: the headlines and their links (always to our own pages) could be wrong. In the iframe and with the pinned script that is all; nothing can reach the rest of your page. Found a problem? Tell us.

Is it free?

Yes. In return we ask for a visible link back to AI Today (or All Today) as the source: the script code already carries it (the plain link inside the <div>), with the iframe the header of the widget is that link, and next to an iframe the generator can add a text link below it (tick “Add a text link”). It is a request, not a technical condition: the widget works without it.

Does it set cookies or track my visitors?

No cookies, no local storage, no fingerprinting, no ads. Our server only counts on which web site (host name) the widget is shown, to know where it is used. Your visitors' IP addresses are not stored.

Script or iframe?

The iframe is the safest form (see “How safe is this”) and works where scripts are not allowed (for example some hosted blogs); give it the height shown in the code. It cannot take your site's own font and text colour and it does not grow with its content. The script form draws the widget directly in your page (in its own shadow root, so your theme's CSS does not break it), adapts its height and is the only one that can take your font and text colour; pin it to a version so that it cannot change behind your back. The iframe code is the iframe alone: it is sandboxed (only scripts and links that open in a new tab), loads lazily and tells us nothing but your host name.

WordPress?

Add a “Custom HTML” block (or the “HTML” widget in a sidebar) and paste the code. No plugin and no shortcode needed. On WordPress.com plans without plugins use the iframe form if scripts are removed.

Do the links pass on ranking value (nofollow)?

The plain link inside the <div> of the script code (“AI News by AI Today”) is a normal link, and it is the one search engines see (the widget replaces it on screen). The headlines and the header link (“AI News · AI Today ↗”) that the widget draws itself carry rel="nofollow noopener". On pages you own you can make only the header link a followed link with data-brandlink="follow" (iframe: brandlink=follow; tick box under “Fine tuning”); the headlines stay nofollow. Leave it off on other people's pages. Google asks for exactly that for links in widgets that are spread over many sites (“A reminder about widget links”, 2016), and it keeps your site clear of anything that looks like a link scheme: the widget gives your visitors fresh content, it is not a ranking trick.

Can I match the widget to my site (dark, transparent, my font, my colour)?

Yes. Pick a preset: Auto (light or dark like the visitor), Light, Dark, Transparent, dark text and Transparent, light text (no background, your page shows through), Minimal (no box, only the running text line, in your page's font and text colour) and Your site's font and text colour. Under “Fine tuning” you can set the accent colour, background, text colour, frame, corner radius, font, size and ticker speed. In the code these are the attributes data-preset, data-accent, data-bg, data-text, data-border (on/off), data-radius (0–40), data-font (system, serif, mono, rounded, inherit), data-density (compact, normal, roomy) and data-speed (slow, normal, fast or a factor from 0.25 to 4); the iframe takes the same names as address parameters. Colours are #rgb, #rrggbb, rgb()/rgba() or transparent; a value that does not fit is ignored. If you choose your own background and no text colour, the text colour is chosen for that background so that it stays readable. The old data-theme (light, dark, auto) still works. The font of your site (inherit) needs the script form; in an iframe the widget uses the system font.

My transparent iframe shows a solid box

A browser paints an iframe opaque when the colour scheme of the page inside differs from the one of your page. The widget page declares none. If your page declares color-scheme: dark (or light dark with a dark visitor), add &scheme=dark (or &scheme=auto) to the iframe address. The script form has no such problem.

My site has a Content-Security-Policy (CSP). Which hosts do I allow?

The script form needs two hosts and no 'unsafe-inline': for AI Today script-src https://ai-today.com; connect-src https://admin.ai-today.com, for All Today script-src https://all-today.com; connect-src https://all-today.com. A style-src 'self' policy is enough: the widget writes no inline style (it uses a constructable stylesheet) and loads no images, fonts or frames. Browsers older than Chrome 73, Firefox 101 or Safari 16.4 fall back to an inline style, which a strict policy blocks. The pinned script needs the same two hosts (and a browser that checks integrity, every current one does). Since version 1.3.0 the script form also runs on pages that enforce Trusted Types for scripts (require-trusted-types-for 'script'). The iframe form needs frame-src https://ai-today.com (or https://all-today.com) and no script at all; its code carries a style attribute for size and border, which style-src 'self' ignores: give the iframe that size and border:0 in your own stylesheet then.

What is the condition for using the widget, the feeds and the API?

Everything is free. The one rule: name AI Today (or All Today) as the source and set a visible, clickable link directly to the post you use, not only to the home page, in or directly below your text. The widget already does that: its headlines link to the posts and the plain link in the code is the source line, so keep both. With feeds, the REST API and the MCP server every post comes with its ready-made link (attribution): show it, and do not put rel="nofollow" or rel="sponsored" on the link you set yourself. The original sources of a post belong to their authors, please link to them as well. Our posts are written by AI and can contain mistakes: check the sources before you republish anything. The terms in full (partner page).

How fresh is it?

The widget shows the newest posts when the page is opened and refreshes itself every 10 minutes while the page is visible.