p5.js minimum project template with Vite and TypeScript
Click "Use this template" in GitHub repository page to create your own new repository from this template. Then clone your new repository to local.
# Clone your new repository
git clone https://github.com/your-account/your-sketch.git
# Go to working directory and initialize the project
cd your-sketch
npm install
# Launch app
npm run devAnd open http://localhost:5173/ in your web browser.
Edit src/sketch.ts to implement your sketch code. Hot reloading works when you saved the file.