·1 min read

also in: Türkçe

TryJS: A Lightweight JavaScript / TypeScript Playground

A minimal JS/TS playground that runs in the browser with instant feedback — ~130 KB gzip at tryjs.app

TryJS is a lightweight JavaScript and TypeScript playground that runs in the browser: write code and see the result immediately. It’s built for trying a Stack Overflow snippet, testing a small idea, or just playing around with a REPL-like feel.

Highlights: Auto-run on change (500ms debounce), Cmd+Enter to run now, switch between JS and TS (TypeScript compiled in-browser with Sucrase), REPL-style expression evaluation, and full console support (log, warn, error, table, time). Code runs in a sandbox with a 5s timeout; syntax themes and resizable panels are included, and your code is persisted in localStorage per language.

Tech: Preact + Preact Signals (~6 KB), CodeMirror 6, Sucrase, Vite, Vercel. Total bundle ~130 KB gzipped.

Try it: tryjs.app · Source: github.com/berkinduz/try-js