Skip to main content


Every site should have an implementation of the Konami Code. It makes things more fun!

If you're unfamiliar with it, the Konami Code is a "cheat code" that appeared in many of Konami's video games going all the way back to 1986. It was typically entered on a Nintendo controller, which looked like this:

Photo of a Nintendo Classic Controller
Photo by Ravi Palwe on Unsplash

Now it's often used on websites to reveal easter eggs to visitors when the code is "unlocked."

Konami JS includes support for gestures on smartphones, tablets and other touch-capable devices. Technically the code becomes "up, up, down, down, left, right, left, right, tap, tap," on these devices but... it's close enough!


By JavaScript standards, Konami JS is utterly ancient having started in 2009 and was created by George Mandis. To learn more about ths history of this project, you can watch George's talk at OdessaJS in 2017 or listen to his interivew on the JS Party podcast from 2019: