A stargasm is when you see a shooting star you weren't expecting and get excited. Typically you'll gasp or make a weird sound upon seeing the shooting star.
*Couple watching stars*
Girl: "GASP!"
Dude: "Uhh what just happened?"
Girl: "Did you just see that shooting star? I think I just had a stargasm!"