A simple web application to test and track your reflexes, typing speed and more. This project is built with Vite, React, TypeScript, and shadcn/ui.
Eight quick browser tests for your reflexes, typing speed, aim, memory and color vision. Each run ends with a grade and a challenge link you can send to a friend.
/r/reflexes/212 with its own preview image. Opening the link shows the score to beat and starts the same test in challenge mode./p/<code>) with its own preview image.The "better than about X %" line shown for reaction time and typing is an estimate from a normal distribution built on commonly cited averages (see src/lib/tests.ts). It is not measured from this app's players.
Requires Node.js 20 or newer.
npm install
npm run dev # http://localhost:3000
| Command | What it does |
|---|---|
npm run dev | Start the development server |
npm run build | Production build |
npm start | Serve the production build |
npm test | Run the unit tests (Vitest) |
npm run typecheck | Type-check with TypeScript |
npm run lint | Lint with ESLint |
Set NEXT_PUBLIC_SITE_URL when the site is served from a domain other than https://mindful-metrics.vercel.app; it is used for canonical URLs, the sitemap and share images.
src/app — routes (one folder per test, /profile, and /r/[test]/[score] for challenge links).src/views — the test screens.src/lib/tests.ts — the registry of tests: names, grade thresholds and score formatting.src/lib/profile.ts — points per test, brain score and the share code of a profile.src/lib/daily.ts — test of the day and streak rules.src/lib/testContent.ts — search titles and the explanatory text of each test, in both languages.src/lib/testStyle.ts — signal colour and icon of each test.src/lib/i18n.tsx — locale provider and the useT hook. Each screen keeps its own { en, fr } dictionary.src/components/ResultShare.tsx — grade, share buttons and challenge banner.The look borrows from sports timing: navy ink, chalk text and stopwatch yellow, with a condensed signage face (Big Shoulders) for scores and headings and Hanken Grotesk for text. Colours are tokens in src/app/globals.css; each test also has its own signal colour. The landing page opens on a playable start-light reaction test.
Pages are server-rendered in English and switch to French in the browser, so search engines index the English text only.
Next.js (App Router), React, TypeScript, Tailwind CSS, shadcn/ui, Serwist and Vitest.
fix test memory
https://github.com/D-Seonay/mindful-metrics/issues/64
Labels: None
[i18n] Standardize Language and Internationalization
https://github.com/D-Seonay/mindful-metrics/issues/63
Labels: None
[UX] Enhanced Post-Game Analytics Dashboard
https://github.com/D-Seonay/mindful-metrics/issues/62
Labels: None
[Feature] Implement the 'Stroop Effect' Cognitive Test
https://github.com/D-Seonay/mindful-metrics/issues/61
Labels: None
[Refactor] Migrate all Color Tests to OKLCH
https://github.com/D-Seonay/mindful-metrics/issues/60
Labels: None
[UI/UX] Unify the 'Stealth Technical' Aesthetic
https://github.com/D-Seonay/mindful-metrics/issues/59
Labels: None
Edit the logic of daily activities
https://github.com/D-Seonay/mindful-metrics/issues/37
Labels: bug
Improve SEO for the project
https://github.com/D-Seonay/mindful-metrics/issues/24
Labels: enhancement
Add statistics & data visualization (average scores)
https://github.com/D-Seonay/mindful-metrics/issues/23
Labels: enhancement
No CONTRIBUTING document was found. Please check the README and open issues.