trendhub PulseEmbeddable block with live trendhub data. It refreshes on its own: newest tool, latest post, a rotating prompt and three goal guides.

On a light site

Free fonts for your next design

Example host page content above the block…

trend·hubAI tools directory, prompt library and AI trends magazinetrendhub.net ↗

On a dark site

Free fonts for your next design

Example host page content above the block…

trend·hubAI tools directory, prompt library and AI trends magazinetrendhub.net ↗

PHP sites (recommended: real HTML in the page, cached 10 minutes)

<?php
// trendhub Pulse: refreshes every 10 minutes; if trendhub cannot be reached, the last copy is shown.
$cache = __DIR__ . '/cache/trendhub-pulse-en.html';
if (!is_file($cache) || filemtime($cache) < time() - 600) {
    $html = @file_get_contents('https://trendhub.net/embed/pulse?src=' . rawurlencode($_SERVER['HTTP_HOST'] ?? ''), false, stream_context_create(['http' => ['timeout' => 3]]));
    if (is_string($html) && ($end = strrpos($html, '</section>')) !== false) $html = substr($html, 0, $end + 10);
    // Only a genuine Pulse block is kept: no scripts, no inline event handlers.
    if (is_string($html) && strpos($html, '<section class="thp"') === 0 && !preg_match('/<\s*(script|iframe|object|embed|form)|\son[a-z]+\s*=|javascript:/i', $html)) {
        @mkdir(dirname($cache), 0755, true);
        file_put_contents($cache, $html, LOCK_EX);
    } elseif (is_file($cache)) {
        touch($cache); // try again in 10 minutes, keep showing the last good copy
    }
}
if (is_file($cache)) readfile($cache);
?>

Any site (JavaScript)

<div id="trendhub-pulse"></div>
<script>fetch("https://trendhub.net/embed/pulse?src="+location.hostname).then(function(r){return r.text()}).then(function(h){var e=h.lastIndexOf("</section>");if(e>0)h=h.slice(0,e+10);if(h.indexOf('<section class="thp"')===0&&!/<\s*(script|iframe|object|embed|form)|\son[a-z]+\s*=|javascript:/i.test(h))document.getElementById("trendhub-pulse").innerHTML=h})</script>

Add ?theme=dark or ?theme=light to force a theme (default follows the visitor). For Turkish content use https://trendhub.net/tr/embed/pulse.