AI Storefront Generator

A silly assortment of e-commerce storefronts created with the power of machine learning!

Built for the Gatsby Silly Site Challenge 2020

Artificial Intelligence tools, in their current form, are quite powerful.

But they can also be pretty silly.

AI Storefront Generator explores the silly side of AI by using Natural Language Processing (NLP) to analyze a text prompt, then using AI image and text generation to create a fake e-commerce storefront. Sadly, none of the products are actually for sale (at least, not yet...)

Each storefront consists of a Products page (with a list of all the entities considered a CONSUMER_GOOD based on Google's Natural Language analysis), individual product details pages (which include reviews based on the sentiment analysis of the CONSUMER_GOOD in the original text), and an About Us page with a featured image and AI-generated description of the storefront.

As you explore the storefronts, select Show Annotations from the storefront navigation menu to see a breakdown of components that have AI-generated content!

The Benefits of Gatsby

The Gatsby Node API provides a lot of neat capabilities. In addition to general manipulation of data (i.e., turning markdown prompts into pages), you can also authenticate and consume third-party API's asynchronously, which AI Storefront Generator leverages to consume the Google Natural Language and Deep AI API's at build time, while providing a purely static (and therefore fast and secure) experience for actual visitors to the site.

An interesting outcome of this functionality is that anytime a new entry prompt is added, all the storefronts will be rebuilt, with new AI-generated content. How exciting!


Entries

All of the below entries have been converted into storefronts. Click on "View Storefront" to see!

The Big Rock Candy Mountain Store

Added by:
Beau Davenport
beaudavenport

The lyrics of "Big Rock Candy Mountain" by Harry McClintock


One evening as the sun went down And the jungle fire was burning Down the track came a hobo hiking And he said, "Boys, I'm not turning" "I'm headed for a land that's far away Besides the crystal fountains So come with me, we'll go and see The Big Rock Candy Mountains" In the Big Rock Candy Mountains There's a land that's fair and bright Where the handouts grow on bushes And you sleep out every night Where the boxcars all are empty And the sun shines every day And the birds and the bees And the cigarette trees The lemonade springs Where the bluebird sings In the Big Rock Candy Mountains In the Big Rock Candy Mountains All the cops have wooden legs And the bulldogs all have rubber teeth And the hens lay soft-boiled eggs The farmers' trees are full of fruit And the barns are full of hay Oh, I'm bound to go Where there ain't no snow Where the rain don't fall The winds don't blow In the Big Rock Candy Mountains In the Big Rock Candy Mountains You never change your socks And the little streams of alcohol Come trickling down the rocks The brakemen have to tip their hats And the railway bulls are blind There's a lake of stew And of whiskey too You can paddle all around it In a big canoe In the Big Rock Candy Mountains In the Big Rock Candy Mountains The jails are made of tin And you can walk right out again As soon as you are in There ain't no short-handled shovels No axes, saws nor picks I'm goin' to stay Where you sleep all day Where they hung the jerk That invented work In the Big Rock Candy Mountains I'll see you all this coming fall In the Big Rock Candy Mountains

View Storefront

My Local Diner's Gift Shop

Added by:
Beau Davenport
beaudavenport

A 1-star review of an infamous local diner (now burned down, incidentally)


Yuck. So, I am trying to find a place to wander to after I go to my favorite bookstore for a spiffy event. My friend suggests we go to the Buttery, because it'll be open. Sure enough, it was. That is about where the good ends. You know that STANK people have in their house if they don't clean up after their cats? Ok, imagine if the cats were made of fake, theater-popcorn-like butter, and you'd owned them for 50 years, and never cleaned it up. Somewhere here you will have an idea of what this place smelled like. It was so noxious I lost my appetite. However, being the soldier that I am, I still checked out a burger (yeah, coz it's me), some fries and a chocolate shake. The chocolate shake was not blended all the way - because the ice cream had some gnarly freezer burn. The fries were hot, but neither tasty nor potato like (The best that can be said about them was the temperature - they tasted like fake butter, too). The burger was...well, I'd rather a McDonalds burger. The buns were poor quality, the meat was not even what I would actually consider to be meat, and it was sooooo greasy that even I was disgusted. And I'm a fried food and burger advocate. Well, ok, I'm a good food advocate, but grease doesn't usually scare me. The waiter was a nice guy - doing what he could. Thank GOD my friend owed me dinner so I didn't have to pay for it. I am at home now with a stomach ache. Yuck. Yuck yuck yuck.

View Storefront

Julia Child's Kitchenware

Added by:
Beau Davenport
beaudavenport

A paragraph from one of Julia Child's cookbooks.


Theoretically a good cook should be able to perform under any cir- cumstances, but cooking is much easier, pleasanter, and more efficient if you have the right tools. Good equipment which will last for years does not seem outrageously expensive when you realize that a big, enameled-iron casserole costs no more than a 6-rib roast, that a large enameled skillet can be bought for the price of a leg of lamb, and that a fine paring knife may cost less than two small lamb chops. One of the best places to shop for reasonably priced kitchen- ware is in a hotel- and restaurant-supply house where objects are sturdy, pro- fessional, and made for hard use.

View Storefront

Add your own!


You can create your own AI-generated storefront with a file-addition pull request. No cloning necessary!

Follow the link to the Github project page and select:

Add file -> Create new file

On the following screen, specify a new markdown file name for your prompt like so:

src/prompts/my-cool-prompt.md

And complete the contents of your new prompt file with name, author, github, and prompt like so:

---
name: Your Storefront Name
author: Your name
github: Your github username
tagline: A quick note about your prompt
---
Your text prompt. Max length is 2000 characters. This will be used to generate the content for your storefront!

Note: you can get a sense of the sort of content that might be created by visiting the Google Natural Language API Demo
(in particular, ensure there are a variety of CONSUMER_GOOD entities in the analysis,
as these will be converted into products for your storefront!)

Finally, fill out the propose new file commit section and submit. I'll approve as soon as I can!

Visit project on Github