MCPcopy Create free account
hub / github.com/Swaggermuffin64/VIM_GYM

github.com/Swaggermuffin64/VIM_GYM @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
399 symbols 881 edges 65 files ⚖ AGPL-3.0 33 documented · 8% ● updated 8d ago★ 1477 open issues

Browse by type

⨍ Functions 307◇ Types & classes 92
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

VIM GYM

Competitive vim motion racing. Practice alone or race others in real time.

Play now at vimgym.app

Features

  • Real-time multiplayer racing via WebSocket
  • Vim navigation and deletion tasks
  • Solo practice mode
  • Quick match and private rooms

Tech Stack

  • Frontend: React 19, Vite, CodeMirror 6 with @replit/codemirror-vim
  • Backend (game server): Fastify, Socket.IO, deployed on Fly.io
  • Matchmaking: Node.js, WebSocket (ws), deployed on Fly.io

Local Development

Prerequisites

  • Node.js 20+

Environment Variables

Each service needs its own .env file, copied from the committed template:

cp frontend/.env.example frontend/.env
cp backend/.env.example backend/.env
cp matchmaking/.env.example matchmaking/.env

Every service refuses to start in dev without its .env file. Production (NODE_ENV=production, or vite build for the frontend) refuses to start unless the variables marked [prod-required] in each template are set.

Running

Start each service in its own terminal:

# Frontend (localhost:3000)
cd frontend && npm install && npm run dev

# Backend (localhost:3001)
cd backend && npm install && npm run dev

# Matchmaking (localhost:3002)
cd matchmaking && npm install && npm run dev

Solo practice works with just the frontend and matchmaking server. Matchmaking is only needed for quick match multiplayer.

Deployment

Both the backend and matchmaking services deploy to Fly.io via GitHub Actions on push to main. See .github/workflows/ for details.

License

This project is licensed under the GNU Affero General Public License v3.0.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 242
Interface 74
Method 65
Class 18

Languages

TypeScript100%

Modules by API surface

backend/multiplayer/vimGraph.ts46 symbols
backend/multiplayer/roomManager.ts26 symbols
matchmaking/scripts/full-game-test.ts20 symbols
backend/tasks.ts15 symbols
matchmaking/src/matchmaker.ts14 symbols
matchmaking/scripts/smoke-test.ts14 symbols
backend/scripts/generateSnippets.ts14 symbols
frontend/src/pages/practice.tsx13 symbols
frontend/src/components/Lobby.tsx12 symbols
frontend/src/extensions/targetHighlight.ts11 symbols
frontend/src/components/LeaderboardTable.tsx11 symbols
backend/rateLimit/socketRateLimiter.ts11 symbols

Datastores touched

vimracingDatabase · 1 repos

For agents

$ claude mcp add VIM_GYM \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page