This website is an archive as of 31 Dec 2023. For my latest website, please visit mattelim.com

Text-GPT-p5 is a generative p5.js editor / REPL that takes user text prompts, turns them into p5.js code using OpenAI GPT 3.5, and immediately displays the sketch within the window.

I got into programming through Arduino and Processing. I’ve always thought about how to lower the barriers for people to start programming. With GPT, we can now turn plain text into code, allowing people to start coding without knowing code. Text-GPT-p5 takes this further by evaluating the code directly and displaying it; users can also edit the generated code and see the changes immediately.

Text-GPT-p5 is open source – please explore and create your own version: https://github.com/mattelim/text-gpt-p5-app

Text-GPT-p5 in action