Shape of the hymn
Ashtakam means a set of eight, and each of the eight verses has four lines. The first three lines paint a picture of the Lord. The fourth line is the refrain, Jagannathah Svami Nayanapathagami Bhavatu Me, which asks that Lord Jagannath, the master, may come into the path of my eyes. In other words the singer is asking for darshan, the sight of the Lord. Because the last line never changes, the hymn is easy to learn by ear and is often sung in groups.
The editions checked on this site also carry a ninth verse, the phalashruti, which says that a person who reads the hymn with a disciplined and pure mind is cleansed of sin and goes to the world of Vishnu. This is the traditional claim of the closing verse and is not a promise of any worldly result.
From Vrindavan to Puri: the verses
The first two verses recall Krishna in Vrindavan. The first places him on the bank of the Kalindi, the Yamuna, in the woods, absorbed in music and enjoying the company of the cowherd women, while Lakshmi, Shiva, Brahma, Indra and Ganesha worship his feet. The second gives the familiar picture of a flute in the left hand, a peacock feather on the head and silk cloth at the waist. The hymn says that the Lord of Puri is the same one who played in Vrindavan.
The third verse turns to Puri itself. It speaks of the shore of the great ocean and of the Blue Hill, where the Lord lives in a palace with his strong brother Balabhadra and with Subhadra between them. That image of three deities side by side is exactly what devotees see on the Ratnabedi, the jewelled platform in the sanctum. The fourth verse praises him as an ocean of mercy, beautiful like a line of rain clouds, whose deeds are sung at the crest of the Vedas.
The fifth verse recalls the Rath Yatra. It pictures the Lord riding in his chariot along the road, meeting crowds of brahmins and growing kind as he hears their praise. The sixth calls him the supreme Brahman with eyes like open lotus petals who rests with his feet on the head of Ananta. The seventh is a personal statement of what the singer does not want: no kingdom, no gold or jewels, no beautiful wife desired by everyone. The only wish is for the sight of the Lord. The eighth is a plea to remove the worthless cycle of worldly life and the long line of sins, ending with the claim that the Lord's feet are placed on the poor and the helpless.
Who composed it
The hymn is traditionally attributed to Adi Shankaracharya, and the closing line of one popular edition says so. Tradition also links Shankaracharya with Puri, because the Govardhan Matha there is held to be the eastern of the four monasteries he founded, and it is connected with the Rigveda and the teaching Prajnanam Brahma. Some sources, however, attribute the hymn differently, and the manuscript history is not settled. For that reason this site calls it a traditional hymn and does not claim certainty about its author.
Why the printed texts differ
The hymn exists in more than one recension. The edition on sanskritdocuments.org has eight verses, with a few different words from the longer edition on shlokam.org, and the Roman text on hinduismoutlook.com follows the longer one. This site follows the nine-verse edition. The differences are small and do not change the meaning of the verses. Readers should expect to see some words spelled or divided differently in books and videos.
When it is sung
The text fixes no day or count. Many families sing it in the morning or evening prayer, on Thursdays, on Ekadashi and through the month of Kartika, and in Puri it is heard around the festivals of Snana Yatra, Rath Yatra and Bahuda Yatra. Reading the meaning first makes the Sanskrit easier to follow.