๐Ÿค– Little Johnny's First AI App

Powered by rentahal.com โ€” Llama 3 8B Instruct on an RTX 4060 in Newburgh, NY. No API key required.

App #1 โ€” Ask anything

The simplest possible AI app. One button. Llama 3 8B answers.

Click the button. Llama is waiting.

App #2 โ€” Free weather, no LLM tokens

Routes through the realm's weather intent, not the LLM. Free, structured, fast.

Type a city, click.

App #3 โ€” Today's news, JSON-ready

Hits /api/news. Headlines come back as JSON. Render however you want.

News awaits.

App #4 โ€” Is the realm alive?

The boring-but-essential health check. /api/setup_status.

Click to check.

The source code for App #1 โ€” all of it

<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.

What this proves

Little Johnny built his first AI app. Now it's your turn.