how do i cope with living a life of mediocrity?

Mediocre to who? Just do what makes you content. It's all for nothing anyways regardless what you do, difference is determined by what you choose to waste your time on.
 
Stop comparing yourself to others

Remember that the universe is huge, the sun will explode someday, and many (but not all) people who "accomplish things" are often shitty and feared/disliked by those closest to them...also, they are often more disgruntled about their lives than you are

Study buddhism, stoicism, shit like that

Edit: also, I've noticed all but the shittiest/most disturbed people chill out with age, so take comfort that you will grow more content with time if you live a life of integrity (or something approximate) and don't chase after things that don't make sense to you.
 
Back