That still making the rounds? I remember in the coding bootcamp kids were going on about it, so I asked my psych about it as an alternative to adderall (always willing to explore treatments to my adhd), and she was surprised to hear people were taking it thinking it was like adderall. She said "people with narcolepsy take that, it doesn't help focus at all." This was early in days of it, looks like it's a known thing to try to use modafinil as a cognitive enhancer, though there's little data to support it actually works like that:
Modafinil, sold under the brand name Provigil among others, is a medication to treat sleepiness due to narcolepsy, shift work sleep disorder, or obstructive sleep apnea (OSA).[3][7] In OSA continuous positive airway pressure is the preferred treatment.[3] While it has seen off-label use as a purported cognitive enhancer, the research on its effectiveness for this use is not conclusive.[8][9] It is taken by mouth.[3]