Code Generation with GPT-3 Models: Integrating Frontend and Backend for Syntax-highlighted Code Display

Is there an example of Chat GPT or text-davinci-003 usage with code generation? I’m looking for a solution to integrate the frontend and backend ( powered by GPT ) to generate code and the frontend to show that code to the user with syntax coloring. A good example would be Chat GPT but their source code is proprietary.

GitHub Copilot is based on the OpenAI models, however this is also proprietary. But maybe you can get some inspirations from there.

For python, check
For js I believe there is an alternative in peacock.