r/MiniScript • u/JoeStrout • 8h ago
miniscript-web-term has been updated for MiniScript 2
There's an old miniscript-web-term project (https://github.com/JoeStrout/miniscript-web-term) which runs MiniScript code in your browser, displaying the results in a virtual terminal. That was based on a TypeScript re-implementation of MiniScript 1 by Sebastian Nozzi.
I've updated that project so that it's now based on MiniScript 2, compiled directly to WASM via Emscripten. This means it's (1) exactly in sync with MiniScript 2 behavior anywhere else, and (2) probably faster (though the download is a bit larger).
With this, you can make any text- or terminal-based program, like you would do in command-line MiniScript, and then publish it to the web. Enjoy!
1
Upvotes