← Back to home

Kaya in your browser

The program executes locally in a module Worker. AI requests use your own provider and credentials; no website server key is supplied.

Nothing runs until you start the browser runtime and press Run.

// Chat-style standard IO
[assistant] "How would you rate this?"

// LLM-integrated type system
type Rating = "bad" | "neutral" | "good"
const rating: Rating = input()

// Inline templating for strings
let reply = generate(message: "Reply to the {{rating}} rating.")
"{{reply}}"

Use Chromium on HTTPS or localhost with module Workers, OPFS and Web Locks. Another tab owning this namespace must close before this one can open it. Browser setup and limitations.