<!-- https://tinyscript.tinyactors.dev/compare/ -->
# Compare JavaScript engines · tinyscript

Kind: reference. For: [Embedder](https://tinyscript.tinyactors.dev/audiences/embedder.xml), [Agent builder](https://tinyscript.tinyactors.dev/audiences/agent-builder.xml), [Platform builder](https://tinyscript.tinyactors.dev/audiences/platform.xml).
Voice: [Reference](https://tinyscript.tinyactors.dev/voices/reference.xml).

> tinyscript beside djs, Psychoscript, quickjs-wasi, V8 isolates, scriptc, Duktape and AssemblyScript: who is ahead on each axis, and when to choose which.

Each engine on the questions people ask when they run code they did not write. A cell names who is ahead on that question, by each project's own published facts, researched 5 December 2026.

| Question | [djs](https://tinyscript.tinyactors.dev/compare/djs/index.md) | [Psychoscript](https://tinyscript.tinyactors.dev/compare/psychoscript/index.md) | [quickjs-wasi](https://tinyscript.tinyactors.dev/compare/quickjs-wasi/index.md) | [V8 isolates](https://tinyscript.tinyactors.dev/compare/isolates/index.md) | [scriptc](https://tinyscript.tinyactors.dev/compare/scriptc/index.md) | [Duktape](https://tinyscript.tinyactors.dev/compare/duktape/index.md) | [AssemblyScript](https://tinyscript.tinyactors.dev/compare/assemblyscript/index.md) |
|---|---|---|---|---|---|---|---|
| Will my JavaScript and TypeScript run unchanged? | djs | open | quickjs-wasi | V8 isolates | open | tinyscript | tinyscript |
| How much does a call cost on ordinary code? | open | open | tinyscript | V8 isolates | scriptc | open | AssemblyScript |
| Can code I don't trust escape, or read another tenant's data? | even | even | even | tinyscript | tinyscript | tinyscript | even |
| How many sessions fit in one process, and what does an idle one cost? | open | open | open | open | tinyscript | Duktape | open |
| How long until a new session runs its first call? | djs | open | open | open | scriptc | open | open |
| Does the same input always give the same run, and who controls the outside world? | even | tinyscript | even | even | tinyscript | even | even |
| What happens when a script loops forever? | even | tinyscript | tinyscript | tinyscript | tinyscript | tinyscript | tinyscript |
| Can I save a session and restore it later, or elsewhere? | djs | Psychoscript | quickjs-wasi | tinyscript | tinyscript | tinyscript | tinyscript |
| Can I embed it in my stack? | djs | Psychoscript | quickjs-wasi | V8 isolates | even | Duktape | AssemblyScript |

Who is ahead of whom, axis by axis: "even" when both do it, "open" when no source settles it. Each guide gives the facts and their sources.

- **djs**: Use djs when your host is JavaScript (Node.js, Bun, Deno, a browser or Workers) and you want broad language coverage with fuel and snapshots today, and an experimental API is acceptable. [Read the comparison](https://tinyscript.tinyactors.dev/compare/djs/index.md).
- **Psychoscript**: Use Psychoscript when your agent lives in Node.js, Bun or a browser, its programs fit the subset, and runs must survive restarts while they wait on tools. [Read the comparison](https://tinyscript.tinyactors.dev/compare/psychoscript/index.md).
- **quickjs-wasi**: Use quickjs-wasi when you need broad language coverage in a JavaScript or TypeScript host today, and snapshots between calls are enough. [Read the comparison](https://tinyscript.tinyactors.dev/compare/quickjs-wasi/index.md).
- **V8 isolates**: Use V8 isolates when you need the whole language at full speed, can run each trust level in its own sandboxed process, and a call that runs too long may simply be killed. [Read the comparison](https://tinyscript.tinyactors.dev/compare/isolates/index.md).
- **scriptc**: Use scriptc when you write typed TypeScript you trust and want a small native binary or WASI module that starts fast and uses Node.js APIs. [Read the comparison](https://tinyscript.tinyactors.dev/compare/scriptc/index.md).
- **Duktape**: Use Duktape when your device has kilobytes of RAM, your scripts are ES5 and you trust them. [Read the comparison](https://tinyscript.tinyactors.dev/compare/duktape/index.md).
- **AssemblyScript**: Use AssemblyScript when you are writing new, typed code for WebAssembly and want it fast and small. [Read the comparison](https://tinyscript.tinyactors.dev/compare/assemblyscript/index.md).
