NeuroForge Documentation

Overview

NeuroForge is an AI prompt testing and comparison platform that allows users to battle three leading AI models (GPT, Claude, and Gemini) against each other in real-time. The platform evaluates responses across multiple dimensions and determines winners through objective scoring, creating an engaging tournament-style experience for AI interaction.

Core Features

AI Battle System

Intelligent Scoring Algorithm

The platform evaluates AI responses across six key dimensions:

Analysis & Tournament System

Thread Management

User Interface

Main Dashboard

Response Features

Model Customization

Technical Architecture

Frontend (React)

frontend/
├── src/
│   ├── components/   # Forge, Login, ModelBox, ThreadSidebar
│   ├── shared/       # modelMap.js, personalities.js
│   ├── utils/        # personality utilities
│   ├── App.jsx       # Main app
│   └── SettingsContext.jsx

Backend (Node.js/Express)

backend/
├── routes/           # forge.js, admin.js
├── auth/             # verifyToken.js
├── utils/            # analyze.js, threadManager.js
├── shared/           # modelMap.js, personalities.js
├── config/           # limits.js
└── server.js

Full Architecture


    neuroforge/
├── server.js                  # Express app entry
├── routes/
│   ├── forge.js              # Main battle endpoints
│   └── admin.js              # Usage monitoring
├── utils/
│   ├── analyze.js            # Response scoring algorithms
│   ├── threadManager.js      # Conversation management
│   ├── promptLimiter.js      # Usage tracking
│   └── modelNames.js         # Model name formatting
├── auth/
│   └── verifyToken.js        # JWT authentication
├── shared/
│   ├── modelMap.js           # Model identifier mapping
│   └── personalities.js      # AI personality definitions
├── gen-token.js              # Token generator CLI
├── frontend/                 # React frontend
│   ├── src/
│   │   ├── components/
│   │   │   ├── Forge.jsx     # Main dashboard
│   │   │   ├── Login.jsx     # Authentication
│   │   │   ├── ModelBox.jsx  # AI response cards
│   │   │   ├── ThreadSidebar.jsx # Thread navigation
│   │   │   ├── ThreadMessages.jsx # Conversation history
│   │   │   ├── SettingsModal.jsx # Configuration panel
│   │   │   └── Footer.jsx    # Application footer
│   │   ├── shared/
│   │   │   └── modelMap.js   # Frontend model utilities
│   │   ├── App.jsx           # Main application
│   │   └── SettingsContext.jsx # Global settings
│   └── package.json
└── package.json

API Endpoints

Authentication & Access Control

Scoring Algorithm Details

  1. Parse response
  2. Apply metrics
  3. Normalize scores
  4. Aggregate results
  5. Select winner

Metrics include: word count, readability, structure, confidence, response time, and accuracy.

Model Integration

Data Management

Security Features

Development Notes

Getting Started

Requirements

Basic Usage Flow

  1. Login with token
  2. Create or continue thread
  3. Submit prompt
  4. View responses and scores
  5. Analyze for tournament elimination

Best Practices


This documentation covers NeuroForge’s current version (NeuroForge v1.2b). For technical support, contact the development team.