Hi! Your playground is great, but I want to suggest a great improvement idea! There are currently no Code Interpreters chatbots or llms able to run javascript code in their sandboxes or to linter/debug js web code. For Python there is a lot out there to assist debugging and generation of code with AI models (GPT, Claude, Gemini, etc. all those have their code interpreter that run python in a sandbox), but not for javascript. Because they have an hard time reading the output from the browser in a sandbox. But for js playgrounds like yours, it is easy to send the output directly to the AI API as a response. You should be the first to implement AI code assistantance in online javascript playgrounds. It would be amazing. And I would likely pay a premium subscription for this, since it would mean that any js bug in a web page will be fixed by the AI using an iterative fix-execute-debug cycle, feeding the output console output errors and exceptions to the AI to let it fix the code and try again until everything works. The user can even use the html web interface, cause the bug to appear, and send the current web page state and the console output with the error details to the AI to find the issue and fix it. Models with vision api, like OpenAI, can even accept screenshots of the web page to inspect directly the page renderings errors, suggesting fixes, libraries and automatically adding js imports/required libs to the code. With such a tool, web development will never be the same again! 😊
Please add AI Code Assistants to your playground! Thanks in advance! 😊 🙏