A real-time chess server for AR smart glasses using the MentraOS SDK. Features voice-controlled chess, AR board display, and Stockfish AI—all deployable on Node.js or Bun with no system binary dependencies.
- Voice-controlled chess moves (e.g., "rook to d4", "pawn e5")
- AI opponent (Stockfish, configurable difficulty)
- Real-time AR board and feedback display
- Session and game state management
- Node.js 18+ or Bun
- AugmentOS SDK access
- Smart glasses with AugmentOS
git clone <repo-url>
cd augmentOSChess
npm install # or bun install
npm start # or bun startSet these environment variables (or in a .env file):
PACKAGE_NAME(default:com.mentra.chess)MENTRAOS_API_KEY(required)PORT(default:3000)
- Uses the npm
stockfishpackage (runs as a Node.js child process) - No system binary or WASM setup required
- Works on Railway, Vercel, and all Node.js hosts
GET /health— Server status (handled by MentraOS SDK)
src/
index.ts # Entry point
chess_logic.ts # Chess rules & board rendering
server/
ChessServer.ts # Main server logic
services/
StockfishService.ts # Stockfish AI integration
utils/
types.ts # TypeScript types
chessMoveParser.ts # Move parsing
- Launch the app on your smart glasses
- Set color and difficulty in the MentraOS app
- Use voice to make moves (e.g., "knight f3")
- See the board and feedback in AR
MIT