{"by":"sebastianwessel","descendants":65,"id":40896873,"kids":[40897658,40898641,40901496,40898029,40899513,40897810,40902145,40897341,40905470,40901415,40902027,40897986,40898064,40902188,40898977,40905530,40897306,40899374,40899518,40897614,40899600,40896874,40897632],"score":206,"text":"This TypeScript package allows you to safely execute JavaScript code within a WebAssembly sandbox using the QuickJS engine. Perfect for isolating and running untrusted code securely, it leverages the lightweight and fast QuickJS engine compiled to WebAssembly, providing a robust environment for code execution.<p>Features<p>- *Security*: Run untrusted JavaScript code in a safe, isolated environment.<p>- *File System*: Can mount a virtual file system<p>- *Custom Node Modules*: Custom node modules are mountable<p>- *Fetch Client*: Can provide a fetch client to make http(s) calls<p>- *Test-Runner*: Includes a test runner and chai based `expect`<p>- *Performance*: Benefit from the lightweight and efficient QuickJS engine.<p>- *Versatility*: Easily integrate with existing TypeScript projects.<p>- *Simplicity*: User-friendly API for executing and managing JavaScript code in the sandbox.","time":1720352245,"title":"Show HN: Execute JavaScript in a WebAssembly QuickJS sandbox","type":"story","url":"https://github.com/sebastianwessel/quickjs"}