https://github.com/lokeswaran-aj/next-langgraph-example
This is an example Gen AI app built with Langgraph.js, Next.js and Vercel's AI SDK
https://github.com/lokeswaran-aj/next-langgraph-example
langchain langgraph langgraph-js nextjs vercel-ai-sdk
Last synced: 7 months ago
JSON representation
This is an example Gen AI app built with Langgraph.js, Next.js and Vercel's AI SDK
- Host: GitHub
- URL: https://github.com/lokeswaran-aj/next-langgraph-example
- Owner: lokeswaran-aj
- License: mit
- Created: 2024-11-16T03:56:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T01:38:23.000Z (11 months ago)
- Last Synced: 2025-01-22T20:51:50.590Z (9 months ago)
- Topics: langchain, langgraph, langgraph-js, nextjs, vercel-ai-sdk
- Language: TypeScript
- Homepage: https://next-langgraph-example.vercel.app
- Size: 1.86 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generative AI app built with Langgraph.js and Next.js
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 history
Try out the chat completions with history demo at [https://next-langgraph-example.vercel.app/chat](https://next-langgraph-example.vercel.app/chat)
### Simple chat completions
Try out the simple chat completion demo at [https://next-langgraph-example.vercel.app/completion](https://next-langgraph-example.vercel.app/completion)
## How to run locally
1. Copy the `.env.example` file to `.env` and set the environment variables.
```bash
cp .env.example .env
```2. Run the development server:
```bash
npm run dev
```## Future work
- [x] Add simple chat completion
- [x] Add chat completions with history
- [ ] Add tool calling
- [ ] Add Generative UI with tool calling