/TypeScript-Playground

A persistent, offline, quasi-REPL for TypeScript that promotes coding with rapid feedback.

Primary LanguageJavaScriptMIT LicenseMIT

TypeScript-Playground

GitHub license Dependency Review

About

A persistent, offline, quasi-REPL for TypeScript that promotes coding with rapid feedback. Ideal for:

  • Learning TypeScript itself.
  • Experimenting with npm packages.
  • Practising coding challenges.
  • Demonstrating code.
  • Building a 'functional core' independently of an 'imperative shell'.
  • Modelling a domain, in isolation or interactively with a domain expert.

See also

Getting started

Get the code

Clone the repository:

git clone https://github.com/RyanNieuwoudt/TypeScript-Playground.git

Alternatively, Open in Visual Studio Code and select "Clone repo in container volume" for a supported environment.

Install packages

The playground supports npm, yarn and bun. From a terminal in the TypeScript-Playground directory:

npm install

or

yarn install

or

bun install

Start the playground

npm run watch

or

yarn watch

or

bun watch run

Usage

With the playground started:

  1. Observe the output.
  2. Save changes to the code.
  3. Repeat.