GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PattedyrAI/AI-testing-website: This is going to be a website that i test different AI models against eachother, you can then compare their answers and make them vote for the best answer

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
frontend
frontend
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

AI Arena - Multi-Model Comparison Platform

A modern web application that allows you to compare responses from multiple AI models side-by-side, vote on the best responses, and explore the differences between leading AI providers.

AI Arena React Node.js

✨ Features

šŸ”„ Compare Mode

  • Side-by-Side Comparison: Send a single prompt to multiple AI models simultaneously
  • Real-time Streaming: Watch responses appear in real-time as they're generated
  • Response Times: See performance metrics for each model
  • Fullscreen View: Click any response card to view it in fullscreen
  • Compare Selected: Select two responses to view them side-by-side in a comparison modal
  • Model Tiers: Choose from Light, Medium, or Heavy tiers for different model capabilities

šŸ—³ļø Voting Mode

  • AI-Powered Voting: Let AI models vote on which response is best
  • Anonymized Voting: Responses are randomized to prevent bias
  • Visual Results: See vote distribution and winner announcement
  • Voting Rationale: Read each model's explanation for their vote choice

šŸ“š History & Navigation

  • Chat History: View all past conversations in a dedicated history page
  • Collapsible History: Expandable dropdowns for easy navigation
  • Sidebar Navigation: Quick access to recent chats
  • Persistent Storage: All history is saved locally

šŸŽØ Modern UI/UX

  • Dark Theme: Beautiful dark mode interface
  • Responsive Design: Works on desktop, tablet, and mobile
  • Smooth Animations: Polished transitions and interactions
  • Markdown Support: Rich text rendering for AI responses

šŸ¤– Supported Models

Provider Models Available Tiers
Anthropic Claude Haiku, Sonnet, Opus Light, Medium, Heavy
OpenAI GPT GPT-4o Mini, GPT-4o Light, Medium, Heavy
Google Gemini Gemini 2.0 Flash, Gemini 1.5 Pro Light, Medium, Heavy
Mistral AI Small, Medium, Large Light, Medium, Heavy

Model Tiers

  • Light: Fast, cost-effective models for quick responses

    • Claude Haiku 4.5
    • GPT-4o Mini
    • Gemini 2.0 Flash
    • Mistral Small
  • Medium: Balanced performance and capability

    • Claude Sonnet 4.5
    • GPT-4o
    • Gemini 1.5 Pro
    • Mistral Medium
  • Heavy: Most powerful models for complex tasks

    • Claude Opus 4.1
    • GPT-4o
    • Gemini 1.5 Pro Latest
    • Mistral Large

šŸš€ Getting Started

Prerequisites

  • Node.js 18+ and npm
  • API keys for at least one AI provider (more keys = more models available)

Installation

  1. Clone the repository

    git clone <repository-url>
    cd AI-testing-website
  2. Install dependencies

    npm run install:all
  3. Set up environment variables

    cp .env.example .env
  4. Add your API keys to .env

    Get your API keys from:

    • Anthropic: https://console.anthropic.com/
    • OpenAI: https://platform.openai.com/api-keys
    • Google: https://makersuite.google.com/app/apikey
    • Mistral: https://console.mistral.ai/
    ANTHROPIC_API_KEY=sk-ant-...
    OPENAI_API_KEY=sk-...
    GOOGLE_API_KEY=...
    MISTRAL_API_KEY=...

Running the Application

Development mode (runs both frontend and backend):

npm run dev

The application will be available at:

  • Frontend: http://localhost:5173
  • Backend API: http://localhost:3001

Run separately:

# Frontend only
npm run dev:frontend

# Backend only
npm run dev:backend

Building for Production

# Build frontend
npm run build

# Start production server
npm start

šŸ“– Usage Guide

Compare Mode

  1. Select "Compare" mode (default)
  2. Choose a tier (Light/Medium/Heavy) based on your needs
  3. Type your prompt in the input field
  4. Press Enter or click Send
  5. Watch responses stream in real-time from all configured models
  6. Compare the different approaches and answers
  7. Click any response card to view it in fullscreen
  8. Select two responses and click "Compare Selected" for side-by-side view

Voting Mode

  1. Select "Voting" mode
  2. Type your prompt
  3. Submit to get responses from all models
  4. Each model will then vote on which response is best
  5. View the results:
    • Winner announcement
    • Vote distribution chart
    • Individual voting rationale
    • All original responses

Note: Voting mode requires at least 2 configured API keys.

History

  • Click "History" in the navigation to view all past conversations
  • Expand any history item to see the full responses
  • Click on a history item in the sidebar to reload it

šŸ—ļø Architecture

Tech Stack

Frontend:

  • React 18.3.1
  • Vite 5.4.11
  • React Router 7.9.6
  • TailwindCSS 3.4.17
  • React Markdown 10.1.0

Backend:

  • Node.js
  • Express 4.21.2
  • Anthropic SDK 0.32.1
  • OpenAI SDK 4.77.3
  • Google Generative AI 0.21.0
  • Mistral AI SDK 1.3.7

Project Structure

AI-testing-website/
ā”œā”€ā”€ frontend/
│   ā”œā”€ā”€ src/
│   │   ā”œā”€ā”€ components/     # React components
│   │   ā”œā”€ā”€ pages/          # Page components
│   │   ā”œā”€ā”€ App.jsx         # Main app component
│   │   └── main.jsx        # Entry point
│   ā”œā”€ā”€ dist/              # Build output
│   └── package.json
ā”œā”€ā”€ backend/
│   ā”œā”€ā”€ server.js          # Express server
│   └── package.json
ā”œā”€ā”€ .env.example          # Environment template
ā”œā”€ā”€ .gitignore
└── package.json          # Root package.json

API Endpoints

  • GET /api/health - Health check
  • GET /api/models - Get available models
  • POST /api/chat/stream - Stream responses from all models
  • POST /api/vote - Get responses and votes
  • POST /api/vote-on-responses - Vote on existing responses
  • GET /api/history - Get chat history
  • POST /api/history - Save chat history

šŸ”’ Security Notes

  • Never commit your .env file - It contains sensitive API keys
  • API keys are stored server-side only
  • All API calls are made from the backend to protect your keys
  • The frontend never directly accesses AI provider APIs

šŸ› ļø Development

Adding a New Model

  1. Add the model to MODEL_TIERS in backend/server.js
  2. Add the API client initialization
  3. Add the handler function
  4. Add to the streaming endpoint
  5. Update the frontend model list in App.jsx

Customization

  • Model Selection: Edit MODEL_TIERS in backend/server.js
  • Styling: Modify Tailwind classes in components
  • UI Components: Edit files in frontend/src/components/

šŸ“ License

MIT License - feel free to use this project for your portfolio or personal projects.

šŸ™ Acknowledgments

  • Built with React, Vite, and Express
  • UI powered by TailwindCSS
  • AI models provided by Anthropic, OpenAI, Google, and Mistral

šŸ“§ Contact

For questions or contributions, please open an issue on GitHub.


Made with ā¤ļø for comparing AI models

About

This is going to be a website that i test different AI models against eachother, you can then compare their answers and make them vote for the best answer

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.