Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diedemiguel/product-description-with-ai

Link to Project
https://github.com/diedemiguel/product-description-with-ai

ai aisdk llm openai streaming vercel

Last synced: 2 days ago
JSON representation

Link to Project

Awesome Lists containing this project

README

        

https://github.com/user-attachments/assets/d23f2874-8922-4c06-b18c-67c00e34c573

# Product Description Genie

## Generate Product Descriptions with AI on a WYSIWYG Text Editor



Live Site

### Main Features

- **Live feedback through stream**: Content is streamed directly into the UI.
- **Tailored Content Generation**: User can prompt any product and get a description.
- **Multilanguage**: Content will be generated in the prompted language.
- **Automatic Product Tags:** Tags are generated automatically.
- **Image description**: This features allows the user to upload an image and get a photo description

### Installation:

- We'll use pnpm

```sh
pnpm install
```

- Setup your environment variables

```bash
cp .env.example .env.development.local
```

- Then, open the `.env.development.local` file and fill in the required environment variables.

- You'll also need an `OPENAI_API_KEY` to access the OpenAI API.

- You'll need all the `POSTGRES_*` variables from the Vercel dashboard to access the Vercel Postgres API. The Vercel Postgres API is used to store the current backgrounds and their status.

- You'll need a `BLOB_READ_WRITE_TOKEN` from the Vercel dashboard to access the Vercel Blob API. The Vercel Blob API is used to store the uploaded images.

- You can get all the Vercel variables by using the Vercel CLI by running `vercel link`

- Initialize your DB

```
psql "" -f src/db/schema.psql
```

- Run the development server

```
pnpm dev
```