Armed with a list of animals, and a list of adjectives I curated to be positive, I built a simple API where anyone can pass in the name of a friend or colleague, and receive a Knope-style compliment back.
Here are a few compliments you get when you pass in the name “Ann”.
The package also has the capability for multiple adjectives (anywhere from 1 to 5, and the option for a random number). In addition, there are also options for official compliments said by Leslie Knope herself, and one for alliteration.
Since I created the package, I’ve used it in a few projects. A WordPress plugin called “Hello Leslie” allows you to provide compliments to users of your WordPress installation. The plugin is almost identical to the “Hello Dolly” plugin found on all new WordPress installations by default, but replaces lyrics with compliments.
Another project was connecting it to my personal Facebook Messenger. Every day a select few of my friends get personalized compliments sent to them automatically. Here are a few example chat logs.
Since most people who would enjoy these compliments have no clue how to code or what NPM is, I decided to integrate the service into a google assistant action, and a slack integration as well. Simply ask your device to talk to “Leslie Knope Compliments” and get your own personalized compliment.
Happy coding, you faithful hippopotamuses.