Ex wants to stay friends?

I feel so hurt and conflicted, my boyfriend broke up with me Monday after a year and a couple months dating and it broke my heart. We were best friends for 2 years before we started dating. I’ve been a complete mess while he seems absolutely fine posting on social media. I can’t even get out of bed yet. Well he texted me today and I feel like I’m getting dumped all over again. He wants to stay friends but i can’t handle that. Should I even reply? What should i do?