The TypeScript type checker,
inside a Cloudflare Worker, or your browser.

tsc-rs is a Rust port of the TypeScript 7 compiler. Compiled to WebAssembly, it runs in memory, inside this Worker: no container, no file system, no Node. Paste code below and get real TypeScript errors back in milliseconds. Or switch to Your browser and the same module checks it on your machine.

agent.tsthe code to check
tools.d.tsthe API it may call
strict mode · ⌘/Ctrl + Enter

Why

Agents write code against tools. A wrong argument or a made-up method should fail in milliseconds, before the code runs, not halfway through a job.

How

The checker is one WebAssembly module, bundled with the Worker. Each check gets a fresh instance and an in-memory file system holding your two files. In your browser, the same module runs in a background thread and is cached for offline use.

Proof

The repo builds the module from tsc-rs source and checks the same cases in Node, in a local Worker, against this deployed Worker, and in a real browser, online and offline.

MeasuredValue
Your last check on the Worker (round trip)—
Your last check in your browser—
First browser check: download and compile—
Typical check, same module in Node74 ms
Size of the checker (WebAssembly)4.7 MB (2.0 MB compressed)
tsc-rs commitdfb3ca6