Skip to main content
DualMind Arena is a web app backed by one REST API. The API picks models, calls the providers in parallel, stores the battle, and records votes that feed the leaderboard.

The big picture

Arena app

A fast static web app served from Cloudflare’s network. It handles sign-in, the battle UI, voting, threads and sharing.

DualMind API

An ASP.NET Core service running in containers on Cloudflare, at api.dualmindlab.tech. Every Arena action goes through it.

Sign-in

Accounts and sessions use Supabase Auth (email, phone, GitHub, Google). The API checks the session’s access token on each request.

Model providers

Groq, Google AI Studio and Cloudflare Workers AI. See Models and providers.

Life of a battle

1

Authenticate

The app sends your session’s access token with each request. Battles, votes and private threads require it; the leaderboard, health check and shared threads don’t.
2

Pick the models

Random, Topper or your own picks, depending on the mode.
3

Generate in parallel

Both models get the same prompt, system prompt, token limit and temperature, at the same time. Each call has a 60 second limit with an automatic fallback.
4

Store

The battle is stored as a comparison with its own ID, and the turn is added to your thread.
5

Vote and reveal

Your vote is stored once per battle, the battle is marked revealed, and the leaderboard stats pick it up.

Built to stay up

The API runs in containers on Cloudflare and is pinged every few minutes, so requests rarely hit a cold start.
If a provider errors or times out, the API answers with a fallback model and labels the reply, instead of failing the whole battle.
GET /health reports whether the API is up. It’s public, so you can point an uptime monitor at it.
Last modified on October 18, 2026