Skip to content

lokeswaran-aj/ai-next-langgraph

Repository files navigation

Generative AI app built with Langgraph.js, Next.js and Vercel AI SDK

This is a simple app that demonstrates how to build a generative AI app with Langgraph.js, Next.js and Vercel AI SDK with streaming support.

Please leave a ⭐️ if you like the project!

Features

Chat completions with streaming and history

Try out the chat completions with history where the response is streamed to the UI

Chat generation without streaming

Try out the simple chat generation demo where the response is generated all at once

How to run locally

  1. Copy the .env.example file to .env and set the environment variables.
cp .env.example .env
  1. Install the dependencies:
pnpm install
  1. Run the development server:
pnpm dev

Future work

  • Add simple chat generation with history
  • Add chat completions with history
  • Add tool calling with streaming
  • Add Generative UI with tool calling