Rehave is a digital rehabilitation platform designed to enhance cognitive performance by integrating real-time EEG data with personalized music recommendations. By analyzing brainwave activity, the system dynamically selects music tracks to improve focus, relaxation, and overall cognitive function.
- Includes simple controls for recording EEG data, selecting music, and generating reports.
- Stores and retrieves EEG recording data using Firebase Firestore.
- Automatically manages storage by deleting old recordings.

- Vue.js with Vue Router and Vuex for state management
- ApexCharts for EEG data visualization
- WaveSurfer.js for audio waveform display
- Firebase Firestore for data storage
- Firebase Authentication for user login
- Audius API for fetching and playing music tracks
- SCSS for modular and maintainable styling
- EEG Recording: Users start a session, and real-time EEG data is displayed.
- Baseline Calculation: The system analyzes alpha, beta, and gamma waves.
- ** Music Recommendation**: Tracks are selected based on dominant brainwave activity.
- Session Report: A summary visualizes cognitive improvement post-session.

git clone https://github.com/your-username/rehave.git
cd rehave
npm install
- Create a Firebase project and configure src/firebase.js.
- Enable Firestore and Authentication in the Firebase Console.
Replace YOUR_AUDIUS_API_KEY in MusicView.vue with your actual API key.
npm run serve
We welcome contributions to improve ReHave. To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit changes with clear descriptions.
- Submit a pull request for review.



