https://github.com/JerryI/wolfram-js-frontend

brew install --cask wolfram-engine
brew install --cask wljs-notebook

Now

  1. register an account and get free licence
  2. open wljs-notebook and point out where are wolframscript, by using which wolframscript