# quickjs-emscripten: 5.7 out of 10

Reasonable, with limits. 5th of 9 in [JavaScript runtimes](https://elestia.ai/opensource/runtimes/index.md).

quickjs-emscripten runs the small QuickJS engine, compiled to WebAssembly, inside another JavaScript program. It is the most portable way to run untrusted or agent-written code in a sandbox, on any runtime. It is not a general runtime like Node.js, Bun or Deno. It is slow because it has no JIT, and one maintainer keeps it up at a slowing pace while memory-limit bugs stay open.

**Best for:** Teams that need to run untrusted or AI-written JavaScript in a sandbox that works the same in Node, browsers and edge workers, with no native build.

## Scores

- **Overall: 5.7** (likely 4.6 to 7.0)
  - Claude Opus 5.5 (5.0): Among JavaScript runtimes it does a narrow job: embedding a sandbox inside an app, not running apps. For that job it is the most portable choice, and agent tools are adopting it. Slow maintenance, open memory-limit and memory-safety bugs, and interpreter-level speed keep it at a reasonable choice with real limits. Node, Bun and Deno rank well above it for the category's main job.
  - GPT-6.2 Sol (6.3): This is a reasonable pick for embedding short scripts across several JavaScript hosts. Node.js, Deno, and Bun cover general-purpose applications more completely. The sparse release cadence and open resource-handling reports weigh heavily for long-lived or multi-tenant workloads.
- **Needed by many: 3.3** (likely 2.2 to 4.6)
  - Claude Opus 5.5 (3.0): Embedding a sandboxed engine inside an app is a clear niche of the runtime category. Most developers need Node, Bun or Deno instead. Agent code-execution features are widening the niche, which keeps the upper end of the range open.
  - GPT-6.2 Sol (3.5): Running JavaScript outside the browser is common, and Node.js leads regular runtime use in State of JavaScript. This package serves the smaller group that needs to run JavaScript inside an existing app, such as for plugins or workflow expressions. Its portability widens that niche, though the survey gives no direct estimate of its size.
- **Helps a lot: 6.6** (likely 5.3 to 7.7)
  - Claude Opus 5.5 (6.0): For portable sandboxing it is the most complete WebAssembly option. It supports async host functions through asyncify, interrupts, memory limits, several engine variants, and it ships types. It runs much slower than V8 and needs manual disposal of every handle. Open issues show that memory limits and out-of-memory handling are not reliable against hostile code.
  - GPT-6.2 Sol (7.2): Version 0.32.0 has a typed API for isolated contexts, host callbacks, and module loading, with clear examples for simple evaluations. Explicit handle disposal and promise-job handling make richer integrations easier to get wrong. A comparison by the maintainers of Secure Exec found low call overhead and several-fold slower execution on compute-heavy cases, so the fit depends on the workload.
- **Holds up over time: 4.4** (likely 3.0 to 5.9)
  - Claude Opus 5.5 (4.5): The project is mostly one maintainer's work. There were 11 commits in the last year, the last push was in July 2026, and 0.32.0 in February 2026 was the only release. Memory-safety and build issues are piling up without answers, and 22 pull requests are open. New demand from AI agent tools could bring more help or a fork, but alternatives such as quickjs-wasi also compete for that demand.
  - GPT-6.2 Sol (4.3): The project recorded 11 commits and one npm release in the past year, with the latest package published in February 2026. The maintainer describes it as spare-time work, and the June QuickJS engine update is still an open pull request. Outside contributors are proposing fixes, but the release cadence and the wait for upstream updates make future support hard to predict.
- **Used widely: 4.7** (likely 3.2 to 6.2)
  - Claude Opus 5.5 (5.5): Downloads rose 36 times in a year, from 0.5M to 18.3M per 4 weeks, far above the median ratio of 4.1. Most of that likely comes from AI agent frameworks that install it for their code-execution features, so it is not direct choice. ecosyste.ms counts only 68 dependent repositories, which points to a few thousand direct users, though the number is growing fast.
  - GPT-6.2 Sol (3.8): Four-week installs rose from 0.50 million to 18.3 million, about 36.5 times the prior-year count against a catalog median of 4.1 times. The index found 68 dependent repositories and 38 packages, far fewer than for workerd or Edge Runtime. Automated and indirect installs can amplify the rise, while downstream switches to the separately published core package make direct adoption hard to estimate.
- **Vouched for: 5.8** (likely 4.4 to 7.1)
  - Claude Opus 5.5 (5.0): Agent frameworks and wrappers build on QuickJS in WebAssembly, and some build on this package directly, which shows real production trust. Independent comparisons list it as the portable sandbox option, but I found no security audit. It has no Hacker News or Bluesky attention, and I could not confirm every adopter's exact dependency.
  - GPT-6.2 Sol (6.5): n8n ships it as a workflow expression engine option and defaults to a V8 isolate on the backend. MiLaboratory's Platforma also updated its desktop app to 0.32.0. These are concrete downstream uses, while broad satisfaction data and performance results across varied workloads remain sparse.
- **Safe: 5.1** (likely 3.6 to 6.6)
  - Claude Opus 5.5 (5.5): There are no OSV advisories, the licence is MIT, and it has only a few dependencies, which are its own variant packages. The WebAssembly boundary limits how far a bug can reach. Against that, the OpenSSF Scorecard is 3.9, with zeros for Maintained, Security-Policy, Pinned-Dependencies and SAST. Memory-safety bugs that sandboxed code can reach, including a use-after-free on out-of-memory, are open with no fix released.
  - GPT-6.2 Sol (4.6): The MIT package has five direct dependencies from the same project, a strong fuzzing check, and zero OSV advisories in the snapshot. Its 3.9 Scorecard shows weak review and workflow controls, and GitHub lists no security policy. Users have reported memory-limit failures and a crash in the default engine build, while the number of people able to publish and the release provenance remain unclear.

## Good

- It is pure WebAssembly with no native build step, so the same sandbox runs in Node, Deno, Bun, browsers and edge workers.
- The sandbox has no Node builtins unless you add them, and it supports interrupt handlers and memory limits.
- A sandbox is cheap in memory (about 4-12 MB, against 30-60 MB for isolated-vm), so you can keep many small ones running.
- It ships TypeScript types, and AI agent frameworks now use it for their code-execution (code mode) features.

## Bad

- It is an interpreter with no JIT, so CPU-heavy code runs 10-20 times slower than in V8-based options.
- You must dispose of every handle by hand, and a forgotten one leaks memory.
- Open issues report that setMemoryLimit does not cap a runtime's total memory, plus a use-after-free on out-of-memory.
- Work has slowed: 11 commits and one npm release in the last year, no GitHub releases, and a build break against quickjs-ng 0.16.0 that is still open.

## The numbers

- Downloads, 4 weeks: 18M
- In a year: ×37
- GitHub stars: 1.7k
- Commits, 12 months: 11
- Last npm release: Feb 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/justjake/quickjs-emscripten
- npm: https://www.npmjs.com/package/quickjs-emscripten

The QuickJS engine compiled to WebAssembly, to run JavaScript inside another JavaScript program.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
