A composer is the artist who writes or "composes" the music for an opera. The word "librettist" is what we call the artist responsible for the text, the words or "libretto" of an opera. "Libretto" is Italian meaning "little book".