That's how they did "build an AI app" back when the claude.ai coding tool was javascript running in a web worker on the client machine.