Skip to content
/ ts-repl Public template

Fast, local, Replit-like environment for exploring TypeScript.

Notifications You must be signed in to change notification settings

absorpheus/ts-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-repl

ts-repl is a super-fast environment for exploring and experimenting with TypeScript on your local machine. Designed to run seamlessly within VSCode, it enables quick feedback and smooth experimentation.

Features

  • Blazing-fast transpilation: Built on SWC for near-instant code transformations.
  • Local integration: Designed to work directly within VSCode, leveraging your local setup.
  • Simple and lightweight: A minimal yet powerful setup for experimenting with TypeScript.

Installation

Prerequisites

Installation

First, install dependencies with npm.

npm install

Open the project in VSCode:

code .

Keybindings

To achieve functionality similar to Replit, add these entries to your keybindings.json file.

[
  {
    "key": "cmd+enter",
    "command": "workbench.action.tasks.runTask",
    "args": "build",
    "when": "config.workspaceKeybindings.repl.enabled"
  },
  {
    "key": "cmd+enter",
    "command": "workbench.action.tasks.restartTask",
    "args": "build",
    "when": "config.workspaceKeybindings.repl.enabled && taskRunning"
  }
]

Usage

  1. Open src/index.ts

  2. Start experimenting with TypeScript syntax and features.

  3. Update results on demand with Command+Enter, similar to Replit.

Contributing

We welcome contributions! If you have ideas for new features, improvements, or bug fixes, feel free to open an issue or submit a pull request.

About

Fast, local, Replit-like environment for exploring TypeScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published