Does anyone know what the origin/root of спасибо is, like what part of speach is it formed from and stuff.

Like благодарить is obviously a verb and formed from благо and дар / дарить.

Does спасибо have anything to do with спасти?

Спасибо :P