It’s a prescription medication used for treating narcolepsy and obstructive sleep apnoea but has a wide range of “off-label” uses.
Over the past decade, there’s been an increased interest in modafinil as a treatment for ADHD. It’s often preferred over alternatives because it’s less likely to result in tolerance and addiction.