Modafinil is a prescription drug. I'm not sure why you're recommending it as if it were advil.
It's fairly well tolerated and widely prescribed for narcolepsy, and used off label as a 'nootropic', or cognitive enhancer.
Ironically enough, the rate of adverse effects might actually be comparable to Advil, and modafinil has a noticeably lower median lethal dose.