A fight club for LLMs. 🤫
ChatWar is an AI battleground for comparing large language models. It’s built as a monorepo with a web client, an API, and shared packages.
The default development experience is mock-first, with an opt-in full local stack.
- Node.js 18+
- pnpm
- Docker Desktop (only required for dev:full)
Install dependencies:
pnpm installRuns the web app using MSW mocks. No API or database required.
pnpm devdocker ps # verify docker desktop is running
pnpm dev:fullServices:
- Web: http://localhost:5173
- API: http://localhost:3001
pnpm dev:web:mock
pnpm dev:web:localserver
pnpm dev:apidocker ps # verify docker desktop is running
pnpm db:up
pnpm db:down
pnpm db:resetAPI:
cp apps/api/.env.example apps/api/.envWeb:
cp apps/web/.env.example apps/web/.env.localpnpm --filter @chatwar/api exec prisma migrate dev
pnpm --filter @chatwar/api exec prisma generate- Swagger UI (local): http://localhost:3001/api-docs
- Swagger UI (prod): https://api.chatwar.ai/api-docs
pnpm install
pnpm build
pnpm previewIf you find this useful or learned something new, consider starring the repo ⭐