Ty TypeScript Online Compiler

TypeScript via tsx (Node.js)
Code main.ts
Output
Run your code to see the output here.
Ready
3 free AI credits 5/5 runs today Sign up for more
AI actions use credits · running code is free Run history

Run TypeScript online

Run TypeScript code online in a fast, secure sandbox — no setup. Run TypeScript online — compiled and executed with ts-node, zero config. Generate, fix and explain code with one-click AI. Write TypeScript in the editor, press Run, and your code executes in an isolated Linux sandbox powered by TypeScript via tsx (Node.js) — nothing to install. Need a starting point or stuck on an error? Let the built-in AI generate, fix, comment or optimize your code, streamed straight into the editor.

Instant execution

Cached, pre-built environments start fast and run your TypeScript in a secure sandbox with stdin support.

AI built in

Generate from a prompt, fix the exact error you hit, add comments or optimize — the result appears live in the editor.

Isolated & safe

Every run happens in a throwaway sandbox with strict time and memory limits — your machine never runs the code.

Saved history

Signed-in runs are saved so you can revisit and share what you ran.

Do more with your TypeScript code

FAQ

Is the TypeScript Code Runner free?

Yes. Running code is free — guests get 5 runs a day, a free account gets 50, and paid plans get 500. Only the optional AI actions use credits, like the rest of CodingFleet.

Which TypeScript version / toolchain is used?

Your code runs with TypeScript via tsx (Node.js) inside a sandboxed Linux environment.

Can I read input from stdin?

Yes — open the “Standard input (stdin)” panel under the editor and type the input your program should receive.

Do you save my code?

When you're signed in, each run is saved to your history so you can find it later. Your latest editor content is also kept in your browser between visits.