Inspiration

Research suggests that background music, or music that is played while the listener is primarily focused on another activity, can improve performance on cognitive tasks in older adults. One study found that playing more upbeat music led to improvements in processing speed, while both upbeat and downbeat music led to benefits in memory

What it does

It's a browser extension, where you can choose/select your mood, and on that basis, it will play a music in the background.
This might sound a small and simple thing, but music has a big impact on one's mental health as proved by researchers and studies

How we built it

This was built using mainly JavaScript and included HTML and CSS

Challenges we ran into

This was our first time building an extension so went into a lot of problems implementing that

  1. We had first planned to integrate the extension with a backend by making a fetch requests from the extension, to the server in the backend. This way, we could play the user's defined songs instead of the predefined songs which we have hardcoded in the extension. We were able to successfully make an API which returned a JSON response of the user's defined songs, but accessing it, via a fetch request from the extension, required the user's login, which we found could be achieved via web tokens/ autoO. While we were able to figure out all this, a lot of time had already passed, and we dropped the idea of integrating with a backend, and instead just hardcoded predefined songs, and put the idea of integrating with backend as a future feature.
  2. Then, we included a YouTube video's embed in the extension's html page, which played the song successfully, however stopped when the extension's window(or tab) was closed. After learning more about it, we included the song in the background.js script which runs in the background irrespective of the extensions window(or tab) being open or not.

Accomplishments that we're proud of

  1. We were able to understand about Extensions in chrome and how to develop them
  2. Apart from developing, we got to learn about the features of extensions which are/could be possible, which we were unaware of
  3. Being able to make a new thing which we learnt for the first time

What we learned

  1. Learn about how to develop extensions
  2. Additional features of extensions
  3. Making API calls from an extension to a backend server in django

What's next for Moodify

  1. Integrating it with a backend.
  2. User will be able to add their own songs which they wish to play for each mood
  3. An auto popup after a fixed interval of time so that users can choose their mood automatically

Built With

Share this project:

Updates