logoalt Hacker News

diggan • 01/20/2025 • 1 reply • view on HN

If only we had a function in JavaScript that could execute JavaScript code directly, wouldn't need WASM then (assuming it's just you + assistant locally).


Replies

sdesol • 01/20/2025

I think the easiest and safest is to create a docker image that can execute code and display everything in a iframe and pass data back and forth between the llm client and the execution server. I haven't looked at claude artifacts but I suspect that is how it works.

➕ show 1 reply