~/rxliuli_
~/projects/typescript-console browser extension

TypeScript Console

Run TypeScript right inside Chrome DevTools.

The DevTools console only speaks JavaScript. TypeScript Console adds a panel where you write TypeScript, press Cmd/Ctrl+S, and it runs against the page you're on, with output in the regular console.

The TypeScript Console panel in Chrome DevTools running a snippet, with the console drawer below

How it works

  1. 1

    Open DevTools and switch to the TypeScript Console panel.

  2. 2

    Show the console drawer so you can see the output.

  3. 3

    Write TypeScript and press Cmd/Ctrl+S, or click Run.

More than a REPL

Modern TypeScript

The latest TypeScript syntax, plus TSX.

npm packages

Import packages directly. They're loaded from esm.sh.

Works on the page

Code runs in the inspected page, so you can query and change the DOM like in the console.

Real errors and breakpoints

Syntax and runtime errors are reported clearly, and debugger stops in DevTools as usual.

privacy

Your code runs in the page you're inspecting and isn't sent anywhere. The only requests TypeScript Console makes are to esm.sh, when you import an npm package. There is no analytics.

support

Found a bug or want a feature? Open an issue or come say hi.

More browser extensions

All 26 →
ps ext
Pangu Spacing (Unofficial) Automatically inserts whitespace between CJK characters and half-width letters, digits, and symbols on web pages. An unofficial cross-browser extension based on pangu.js. firefox · edge · safari
si ext
Single Instance Keep each site you choose in a single tab. Links to that site open in the tab you already have and the new tab is closed. chrome · firefox · edge · safari
iw ext
Imp Write Fix and rewrite text in any textbox with AI. Type a command like /fix at the end, pause, and the result replaces your text in place. chrome · firefox · edge · safari