A minimalist, high-performance typing engine with microscopic keystroke analytics.
- Minimalist Dark-Mode UI: Distraction-free interface with a custom cursor and fluid animations.
- Speed Variance Heatmap: An intelligent grading system that highlights specific characters where the user hesitated, allowing for targeted practice.
- Multi-line & Code Support: Fully supports tabs (
\t) and line breaks (\n) for practicing programming syntax and formatting. - Google OAuth Integration: Secure, one-tap login using
@react-oauth/google. - Guest Session Merging: Play as a guest immediately. When you decide to log in, your previous local session data is intelligently merged into your permanent cloud profile.
- Real-time Analytics: Tracks WPM, accuracy, raw time, and specific missed keys.
Frontend (Decoupled Architecture)
- React.js (Vite)
- Custom CSS (Native animations and flexbox layouts)
- Vercel (Edge CDN Deployment)
Backend & Database
- Node.js & Express.js
- MongoDB Atlas
- JSON Web Tokens (JWT) for secure session handling
- Render (Backend Hosting)
To run Type.AI on your local machine, you will need to set up both the frontend and backend environments.
git clone https://github.com/NitinYadav354/type.ai.gitNavigate to the backend directory, install dependencies, and set up your environment variables.
cd typeai-backend
npm installCreate a .env file in the backend root:
MONGO_URI=mongodb+srv://<your-cluster-url>
GOOGLE_CLIENT_ID=your_google_client_id.apps.googleusercontent.com
JWT_SECRET=your_super_secret_jwt_key
FRONTEND_URL=http://localhost:5173
Start the backend server:
npm run dev
# or: node index.jsOpen a new terminal, navigate to the frontend directory, and install dependencies.
cd typeai-frontend
npm installCreate a .env file in the frontend root:
VITE_API_URL=http://localhost:3000
VITE_GOOGLE_CLIENT_ID=your_google_client_id.apps.googleusercontent.com
Start the Vite development server:
npm run dev- Type.AI utilizes a dual-deployment strategy to maximize speed and minimize costs:
- The static frontend is distributed globally via Vercel's CDN, ensuring instant load times.
- The backend runs on a Render web service, secured by strictly configured CORS policies that only accept requests from the authenticated frontend domain.
Performance after v1 deployment:
https://pagespeed.web.dev/analysis/https-typeai-nitinyadav-dev/ojedgf2qla?form_factor=desktop
- Contributions, issues, and feature requests are welcome! Feel free to check the issues page.