now
wasm-jseval
now | wasm-jseval | |
---|---|---|
8 | 4 | |
3 | 233 | |
- | - | |
3.4 | 10.0 | |
over 1 year ago | about 5 years ago | |
JavaScript | C | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
now
-
Can you make your own JavaScript by implementing ECMAScript standard?
Technically you can run Node.js in the browser right now now.
-
Can you use JavaScript to create an app that installs Node.Js then deploys the (or an) app?
Here is an example of downloading Node.js, extracting node executable, compiling to WASM to use node in the browser https://github.com/cemalgnlts/now.
-
What sorts of things would you consider to be “advanced” javascript concepts?
Just to demonstrate how finicky folks on this r/learnjavascript are: I shared this Node on Web. Use Nodejs freely in your browser with Linux infrastructure. here and on r/node. r/node folks get it, that is, the work that had to go in to making that a reality. Folks on this r/learnjavascript evidently don't get the effort it took to make that so, after StackBlitz announced "... run Node.js, entirely inside your browser" only to walk back from that claim here https://github.com/stackblitz/webcontainer-core/issues/658#issuecomment-1091004244 "We currently do not expose a way to use WebContainer outside of StackBlitz.com".
- Node on Web. Use Nodejs freely in your browser with Linux infrastructure.
- This website lets you run linux in browser
-
IT department refuses to let me install Python and other programs/languages I need for my job.
For running programming languages other than JavaScript in the browser there is Emscripten and WebAssembly. There is v86, where a Linux build is compiled to WASM. Folks have written QuickJS into a Linux build compiled to WASM, Node.js into the Linux buildroot https://github.com/cemalgnlts/now, so Python or CPython can be written to the image and loaded into the browser as WASM as well https://github.com/pyodide/pyodide.
wasm-jseval
-
Using a string that shows a path to an object property to update the said property
That's not dangerous when you know what you are doing. new Function() works, too. There are Workers and WASM to execute code as well wasm-jseval.
-
Node on Web. Use Nodejs freely in your browser with Linux infrastructure.
"A safe eval library based on WebAssembly and Duktape/QuickJS." wasm-jseval
- A safe eval library based on WebAssembly and Duktape/QuickJS
-
Duktape is an embeddable JavaScript engine
Tangentially related:
I maintain a library for using QuickJS, a JS interpreter with more modern language support, from NodeJS or the web called QuickJS-Emscripten: https://github.com/justjake/quickjs-emscripten
This was inspired by seeing Duktape WASM build on HN (https://github.com/maple3142/duktape-eval) and Figma's blogposts about using building a Javascript plugin runtime:
- How Figma built the Figma plugin system: Describes the LowLevelJavascriptVm interface (https://www.figma.com/blog/how-we-built-the-figma-plugin-sys...)
- An update on plugin security: Figma switches to QuickJS (https://www.figma.com/blog/an-update-on-plugin-security/)
What are some alternatives?
browser-shell - A Linux command-line shell in the browser
nodebox-runtime - Nodebox is a runtime for executing Node.js modules in the browser.
wasm-workers-server - 🚀 Develop and run serverless applications on WebAssembly
js-compute-runtime - JavaScript SDK and runtime for building Fastly Compute applications
wasmedge-quickjs - A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.