The simplest possible AI app. One button. Llama 3 8B answers.
Routes through the realm's weather intent, not the LLM. Free, structured, fast.
Hits /api/news. Headlines come back as JSON. Render however you want.
The boring-but-essential health check. /api/setup_status.
<input id="q1" />
<button onclick="ask1()">Ask Llama 3</button>
<div id="out1"></div>
<script>
async function ask1() {
out1.textContent = "thinking...";
const r = await fetch("https://rentahal.com/api/ask", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: q1.value })
});
const data = await r.json();
out1.textContent = data.answer;
}
</script>
That's the whole app. Save it as index.html,
open in any browser, you're done. No npm. No build. No keys.
Little Johnny built his first AI app. Now it's your turn.