Sukoonify is a solution for Muslims looking for Islamic resources to manage daily situations and emotions with the goal of maintaning a peaceful state of mind. Sukoonify your life!
See presentation for more details on the idea behind Sukoonify and a demo.
- Clone the repo.
- Go into the server folder:
cd server
- Install dependencies:
npm install
.
Then, either run the web app or the script.
To run the web app (from sukoonify/server
):
- Add a valid OpenAI API key in
index.js
. - Run
node index.js
. - Open the browser to view the webpage.
To run the server-side script (from sukoonify/server
):
- Add a valid OpenAI API key in
terminal-script.js
. - Run
node terminal-script.js
.
Example output of script:
How are you feeling?
I am stressed because I've had a long day.
>
Emotion: Stress
Islamic Content:
1. Quranic Ayah: "And He found you lost and guided [you]." (Ad-Duha, 93:7) - This ayah reminds us that Allah guides us even in times of stress and difficulty.
2. Duaa: "O Allah, I seek refuge in You from worry and grief, and I seek refuge in You from incapacity and laziness, and I seek refuge in You from cowardice and miserliness, and I seek refuge in You from being heavily in debt and from being overpowered by other men." (Sahih Muslim) - This dua can help alleviate stress and worries by seeking refuge in Allah.
3. Hadith: The Prophet Muhammad (peace be upon him) said, "If a person says 'SubhanAllah' 100 times, a thousand good deeds are recorded for him and a thousand bad deeds are wiped away." (Sahih Muslim) - This hadith emphasizes the importance of remembering Allah and seeking His forgiveness, which can help reduce stress and anxiety.
4. Name of Allah: Al-Mujeeb (The Responder to Prayer) - This name of Allah reminds us that He is always there to listen to our prayers and alleviate our stress.
5. Story of the Sahabah: The patience and reliance on Allah shown by the Sahabah in times of stress and difficulty can serve as an inspiration for us to trust in Allah's plan