(article link)
git clone https://github.com/traintocode/example-chatgpt-spellchecker.git
cd example-chatgpt-spellchecker
npm install
There is a local entry point ./debug.ts that you can run with a NodeJS debugger such as that included in Visual Studio Code. Simply clone this repository, open in VSCode and hit F5 (or select Run -> Start Debugging).