Hacker News new | ask | show | jobs
by krishvs 1841 days ago
Looks great!

How do you sandbox custom js code. Can we choose if it runs on the front-end or server-side?

Most of the low-code opensource builders seems to run it on a sandbox in the frontend using realms..but this is not great if a screen needs to perform calculations that affect financial data like a mini POS, tax calc etc

1 comments

Is the concern with running JS on the client side regarding security? At Appsmith we run user code inside a worker to avoid malicious code from accessing many browser apis. We also plan to add the ability to run the JS code on the server and have it run via web hooks for automation use cases. I wrote how we do it at Appsmith a few months back:

https://blog.appsmith.com/evaluating-js-in-the-browser-for-a...