Is it spelled libary or library?

It's spelled library.

l - i - b - r - a - r - y

not libary,

and not liberry.