An interactive React application for validating and converting optical prescriptions (Eyeglasses & Contact Lenses).
Built with React + TypeScript + TailwindCSS, and powered by the backend logic from
π¦ eye-test-utils npm package.
π Try it here:
π https://elhussin.github.io/eye-test/
β
Validate optical prescriptions (SPH / CYL / AXIS / ADD / PD)
β
Automatic formatting into standard optical notation
β
Lens transposition (positive β negative cylinder format)
β
Contact lens power conversion with Vertex Distance adjustment
β
Responsive UI β works great on mobile & print
β
One-page printable output (A4 optimized)
This app uses the optical validators package:
π¦ NPM: eye-test-utils
π https://www.npmjs.com/package/eye-test-utils
π Repository: https://github.com/Elhussin/eye-test-utils
| Layer | Technology |
|---|---|
| Frontend | React (TypeScript) |
| Styling | TailwindCSS |
| Notifications | Sonner |
| Build System | Vite |
| Deployment | GitHub Pages |
Clone the repo:
git clone https://github.com/Elhussin/eye-test
cd eye-testnpm install
# or
bun installnpm run dev
# or
bun run devnpm run build
# or
bun run buildnpm run deploy
# or
bun run deployWhen switching to View Mode, the UI becomes optimized for printing. β Hidden buttons in print β Fits into a single A4 page when possible
If you have any questions, need technical support, or want to discuss features, feel free to reach out:
- Email: hasin3112@gmail.com
- GitHub Issues: Open an Issue here (The preferred way to report bugs)
This project is licensed under the MIT License.


