Code Arena allows you to randomly or manually select two AI models to generate code simultaneously, vote for the model with better results, and generate personal rankings based on voting results.
This is the open-source version of the Code Arena from 302.AI. You can directly log in to 302.AI to use the online version with zero code and zero background, or modify and deploy it yourself according to your requirements.
In the model battle, multiple programming languages such as web and Python are available. Based on your input description, you can randomly select or manually choose two models for a real-time code duel to see which one has superior coding capabilities.
You can see the code and its preview effects, and vote for the model with better results.
The generated code and voting results are saved in the history.
Based on user voting results, the system automatically generates personal model rankings to help you find the most suitable AI model for code generation.
Supports code generation in multiple programming languages.
Supports simultaneous code generation and comparison between two AI models.
Generates personal model rankings based on user votes.
Complete preservation of all code generation records and voting results.
- Chinese Interface
- English Interface
- Japanese Interface
- Support for more programming languages
- Support for more AI code generation models
- React
- Tailwind CSS
- Shadcn UI
- Clone project
git clone https://github.com/302ai/302_code_arena - Install dependencies
npm - Configure 302's API KEY (refer to .env.example)
- Run project
npm run dev - Build and deploy
docker build -t 302_code_arena . && docker run -p 3000:80 302_code_arena - Node version 20 or above required
302.AI is an enterprise-oriented AI application platform that offers pay-as-you-go services, ready-to-use solutions, and an open-source ecosystem.✨
- 🧠 Comprehensive AI capabilities: Incorporates the latest in language, image, audio, and video models from leading AI brands.
- 🚀 Advanced application development: We build genuine AI products, not just simple chatbots.
- 💰 No monthly fees: All features are pay-per-use, fully accessible, ensuring low entry barriers with high potential.
- 🛠 Powerful admin dashboard: Designed for teams and SMEs - managed by one, used by many.
- 🔗 API access for all AI features: All tools are open-source and customizable (in progress).
- 💡 Powerful development team: Launching 2-3 new applications weekly with daily product updates. Interested developers are welcome to contact us.