Crave of the Day
Check out the website!
Follow the twitter bot!
About
Crave of the day is a website and twitter bot that posts a new snack every day. It uses AI to generate the new snacks.
Tech Stack
- Next.js app router
- OpanAI GPT-3, GPT-4 and DALL·E 2
- DALL·E 2 for generating images
- Tailwind CSS for stylings
- Hosted on Vercel
- Twitter API for posting to twitter
Overview
Snack Generation
A list of snacks is generated using the `scripts/generateMonth.ts script. This script
- Generates a list of snacks using gpt-4 and OpenAI function feature
- Generates an image for each snack using DALL·E 2 and downloads it to the
public/img
folder - Generates a recipe for each snack using gpt-3
- Stores the list in
content/snacks/<Month>.json
Development
Prerequisites
Setup
- Clone the repository
- Install dependencies with
yarn install
Running the development server
yarn dev
Building for production
yarn build