JavaScript / TypeScript Playground
JS & TS EngineExecute modern JavaScript (ES2024) and TypeScript code in a secure in-browser sandboxed thread. Live console logging, execution timings, and zero server roundtrips.
About This Tool
This runs a single JavaScript/TypeScript-flavored snippet inside an isolated Web Worker and streams its console.log, warn, error output and run time back into a terminal-style panel. It is designed for trying out a data pipeline, an algorithm, or a Web Crypto call without opening browser devtools or scaffolding a project.
Scripts execute strictly in client-side memory with zero server roundtrips.
Key Features
- Four bundled snippets: Async/Await & Promises, Data Pipelines & Array Methods, Web Crypto API & Hashing, and Algorithms & Benchmarking.
- Top-level await support: Code runs inside an async function, so you do not need to wrap it yourself.
- Optional auto-run on edit: Debounced about 400ms after you stop typing.
- Per-run execution timer: A badge showing elapsed milliseconds for the last run.
- 5-second runaway timeout: A hung or infinite-looping worker is force-terminated automatically.
- Worker sandbox isolation: Executes in an isolated Web Worker context, preventing DOM manipulation issues.