What happens if we replace the app backend with an LLM?

Anil Turaga October 25, 2025

Letting an LLM generate the screen and decide the response to an event.

What happens if we replace the app backend with an LLM?

LLM would generate a screen, any user action would call it back and the LLM can then generate the next screen on the fly.

A couple of months back, Anthropic released an experiment called Imagine with Claude which does exactly this.

I recreated it but also went beyond with features like:
  1. Support for OpenAI, Anthropic and Gemini models.
  2. Runs entirely in the browser. Both LLM calls and the apps generated.
  3. LLM decides to write code to call itself based on user actions through JS.

Try it

I really liked using this to play games with the LLM like tic tac toe. You can play too if you have a key :)

Imagine with Claude limitations

  • JavaScript disabled which means apps won't be as interactive.
  • Only for Claude Max subscribers.
  • LLM retrigger is limited to user clicks only.