logoalt Hacker News

pscanfyesterday at 9:21 PM2 repliesview on HN

Very cool project!

Question regarding the pluggable js engine: I have an electron app where I'm currently using QuickJS to run LLM-generated code. Would edge.js be able (theoretically) to use electron's v8 to get a "sanboxed within electron" execution environment?


Replies

syrusakbaryyesterday at 10:02 PM

Yes, this should be fully possible.

We actually believe Edge.js will a great use case for LLM-generated code.

cyanydeezyesterday at 9:35 PM

naively, based on their install.sh script, you'd pick the correct edge.js executable and shell out to that. I'm sure there's some more integral means, but if you wanted a quick test, that should be easily setup.