Text → GPT → p5
A text to p5.js generative editor powered by GPT-3.5 ✨
- takes plain text prompts 📝
- makes an OpenAI GPT-3.5 call 🤖
- converts them into p5.js code 🌸
- displays the p5.js sketch 🖼️
Under the hood
A Next.js full-stack app (React, Next API routes).
To get started, clone the repository and install the necessary node modules.
Make a copy of the
.env.example file, rename it as
.env. Enter your OpenAI API key. Specific instructions 5 & 6 here.
The example also includes a
WHITELISTED_DOMAINS, in case you want to fetch from another server.
Development, Build, Deploy
Next.js defaults. See
package.json for commands.
Both dev and production are on port 3000.