This project is a web-based implementation of the Monotropism Questionnaire (MQ), a research-validated instrument designed to measure a monotropic cognitive style. It was developed by autistic scholars and is based on the theory of monotropism.
This application provides an interactive and user-friendly interface for individuals to take the questionnaire, receive a score, and understand their results in the context of recent research.
- Interactive Questionnaire: A 47-item questionnaire with a user-friendly, multi-step interface.
- Progress Tracking: Visual indicators for overall and section-specific progress.
- Detailed Results: Calculates an overall monotropism score and a profile across eight distinct factors.
- Score Interpretation: Provides context and interpretation for the scores based on the validation study (Garau et al., 2023).
- Contextual Information: Includes background on monotropism theory and important considerations for interpreting the results.
- Responsive Design: Built with Tailwind CSS for a seamless experience across different devices.
- React: A JavaScript library for building user interfaces.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
- Vite: Modern build tool and development server for faster development.
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
- Lucide React: A library of simply designed, beautiful icons.
- @vercel/analytics: Analytics integration for production deployment.
To run this project locally, follow these steps:
- Node.js: Version 18.0.0 or higher
- npm: Version 10.0.0 or higher
-
Clone the repository:
git clone <repository-url> cd monotropism_saq
-
Install dependencies:
npm install
-
Start the development server:
npm run dev # or npm startThis will start the Vite development server and open the application in your default browser at
http://localhost:3000.
npm run dev- Start the development server with hot module replacementnpm start- Alternative command to start the development servernpm run build- Build the project for production deploymentnpm run preview- Preview the production build locally
This project has been migrated from Create React App to Vite for improved performance and security:
Benefits:
- ⚡ Faster Development: Vite's development server starts in milliseconds vs seconds
- 🔒 Enhanced Security: Eliminated all npm security vulnerabilities by removing react-scripts dependencies
- 📦 Smaller Bundle: Reduced dependencies from 1,500+ to ~80 packages
- 🛠️ Better DX: Improved TypeScript support and Hot Module Replacement (HMR)
- 🏗️ Modern Tooling: Uses ESBuild for lightning-fast builds
Breaking Changes:
- Development command changed from
npm starttonpm run dev(thoughnpm startstill works) - Build output directory remains
build/for compatibility - All existing functionality preserved
The project is optimized for deployment on modern platforms:
- Vercel: Includes
@vercel/analyticsintegration - Build Output: Static files in
build/directory - Node.js Requirements: Compatible with Node.js 18+ environments
If you encounter errors about Node.js version compatibility:
-
Check your Node.js version:
node --version
-
Update to Node.js 18+ if needed:
- Using fnm:
fnm use 18orfnm install 18 - Using nvm:
nvm use 18ornvm install 18 - Download from nodejs.org
- Using fnm:
If the development server doesn't start:
-
Clear node_modules and reinstall:
rm -rf node_modules package-lock.json npm install
-
Try different ports if 3000 is busy:
npm run dev -- --port 3001
If the build fails:
-
Check for TypeScript errors:
npx tsc --noEmit
-
Clear Vite cache:
rm -rf .vite npm run build
This questionnaire is not a diagnostic tool for autism or ADHD. It is an instrument for measuring a cognitive style. The results should be interpreted as indicative of monotropic traits and not as a clinical diagnosis.
This questionnaire is based on the work of the following researchers:
Garau, V., Woods, R., Chown, N., Hallett, S., Murray, F., & Murray, D. (2023). The Monotropism Questionnaire, Open Science Framework.