Skip to content

ian030590/VisionTrainer

Repository files navigation

Vision Trainer

Vision Trainer logo

Vision Trainer is a browser-based visual training and assessment app built with React, TypeScript, Vite, jsPsych, PixiJS, Three.js, and WebGazer.

It includes visual training exercises, visual acuity assessments, screen calibration tools, user profiles, and CSV result export. This project is for training, rehab workflow prototyping, and programming practice. It is not medical advice.

Features

  • Visual training modules: Moving Card, Oculomotor Training, Gabor Patching, Reading Training (RSVP), Driving Cognitive Rehab Simulator, and Hart Chart Training.
  • Visual assessments: Landolt C, Tumbling E, Sloan Letters, Shapes, Preferential Looking (PL), and Contrast Sensitivity.
  • Calibration: screen size, viewing distance, gamma, crowding, and WebGazer webcam calibration.
  • Results: local browser records and CSV export.
  • UI languages: English and Traditional Chinese.

Tech Stack

  • React 19
  • TypeScript
  • Vite
  • React Router 7
  • jsPsych 8
  • PixiJS 8
  • Three.js
  • WebGazer.js

Project Structure

src/
  App.tsx                         App routes and layout
  main.tsx                        React entry point
  components/                     Shared UI components
  experiment/                     jsPsych timelines and plugins
  i18n/                           Translation provider and strings
  pages/
    assessment/                   Visual assessment pages and logic
    credits/                      Credit page
    home/                         Home page module definitions
    links/                        Related links page
    settings/                     Calibration and app settings
    training/                     Training pages, data, and results
  utils/                          Settings, storage, math, CSV, Pixi helpers
public/
  assets/                         Images and logos
  webgazer.js                     Local WebGazer runtime

Development

npm install
npm run dev
npm run build
npm run preview

Deployment

The Vite build writes static files to dist/.

npm run build

Deploy the dist/ directory to any static host, including GitHub Pages.

Credits

About

A web-based vision training app that helps people with diplopia, oculomotor deficits after stroke, brain injury, or some cases of Ophthalmoplegia.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors