Skip to content

Getting Started

isaacscript will currently work on Windows and Linux.

You can go from zero to up-and-running with a new mod in around 5 minutes, depending on how fast your computer and internet speed is.

(If you don’t know what IsaacScript is or you are not yet convinced that you should use it, look at the features page first.)


In order to run files that are written in the JavaScript & TypeScript programming language, we need Node.js, a JavaScript runtime. If you don’t have it installed already, download and install it from the Node.js download page.


Visual Studio Code (or VS Code, for short) is probably the best text editor for TypeScript. If you don’t have it installed already, download and install it from the VS Code download page.

(If you usually use a different TypeScript editor like WebStorm or vim, then feel free to use that instead if you want.)


3) Open a New Command Prompt Window / Shell

Section titled “3) Open a New Command Prompt Window / Shell”

Open a new command prompt window. (Or, feel free to use Windows Terminal, PowerShell, Git Bash, etc.)


4) Create and Change to Your Project Directory

Section titled “4) Create and Change to Your Project Directory”

Make a new directory for your mod, and then change the current working directory to it. (Use lowercase and kebab-case.)

For example, if your mod is named “Revelations”, you would type the following into the command prompt:

Terminal window
mkdir C:\Repositories\revelations
cd C:\Repositories\revelations

Note that your project directory should not be a subdirectory of the Isaac mods directory! This is because isaacscript will synchronize / clone your mod there automatically.


5) Run isaacscript init to Bootstrap the Project

Section titled “5) Run isaacscript init to Bootstrap the Project”

Run:

Terminal window
npx isaacscript@latest init

The program will ask you some questions and then populate your current directory with TypeScript and other some other dependencies.

(You might get a warning of npm WARN config global `--global\`, `--local` are deprecated. Use `--location=global` instead. You can safely ignore this and press enter to proceed, as it is a recent npm bug with Windows.)

At the end, it will ask you if it should launch VS Code for you. Answer yes.


Back in your command prompt, start isaacscript:

Terminal window
npx isaacscript

(This is shorthand for npx isaacscript monitor.)

The program will run forever, monitoring for changes in your project. If you want to cancel it, you can press Ctrl + C to return to your shell.

IsaacScript needs to be running in order for your code changes to propagate to the real mod directory, so you will need to start it up in the same way every time that you begin coding. (You could also automate the invocation with a VS Code task if you find it annoying to run it manually.)


That’s it! Now, start coding by editing the src/main.ts file.

Note that when you are editing the code in your project, you should always have VS Code opened to the project directory (i.e. by clicking on File –> Open Folder), as opposed to just editing a single file. Otherwise, ESLint and Prettier won’t work.