AkurAI Build
Menu

Public repository / 5458532ad0ba451030d0554d03be8ff383ccddb8

AkurAI-Framework / site/frontend/app.js

Latest change 4052fe38094b95ffabeaa0959c653900e383f343 - feat: markdown engine + authentic framework site (landing/docs/changelog/components) by Ólafur Búi Ólafsson

// Native ES module — no bundler. Pings the framework's health endpoint.
const el = document.getElementById("health");
if (el) {
  fetch("/api/health", { headers: { accept: "application/json" } })
    .then((r) => (r.ok ? r.json() : Promise.reject(new Error(`status ${r.status}`))))
    .then((d) => {
      el.textContent = `server up · ${d.framework} ${d.version}`;
      el.classList.add("ok");
    })
    .catch((e) => (el.textContent = `server unreachable: ${e.message}`));
}