Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/miurla/gen-ui-demo

This project is a straightforward demonstration that utilizes Vercel AI SDK to implement Generative UI.
https://github.com/miurla/gen-ui-demo

Last synced: about 1 month ago
JSON representation

This project is a straightforward demonstration that utilizes Vercel AI SDK to implement Generative UI.

Awesome Lists containing this project

README

        

This project is a straightforward demonstration that utilizes [Vercel AI SDK v3.0](https://github.com/vercel/ai) to implement Generative UI.
It's developed based on the sample code provided in the [official documentation](https://sdk.vercel.ai/docs/concepts/ai-rsc).

## Getting Started

1. Clone the repository

```bash
git clone https://github.com/miurla/gen-ui-demo
```

2. Go to the project folder

```bash
cd gen-ui-demo
```

3. Install packages

```bash
pnpm install
```

4. Setup your .env.local file. And set your own OpenAI API Key.

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

5. Run the development server:

```bash
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Learn More

To learn more about Generative UI, take a look at the following resources:

- [Read the blog post](https://vercel.com/blog/ai-sdk-3-generative-ui)
- [Visit the docs](https://sdk.vercel.ai/docs/concepts/ai-rsc)
- [Generative UI Demo](https://github.com/vercel/ai/tree/main/examples/next-ai-rsc)