# langchain-nextjs-template

LangChain + Next.js starter template

Canonical page: https://www.reposhelf.co.uk/projects/github/langchain-ai/langchain-nextjs-template.html

- Project ID: langchain-ai/langchain-nextjs-template
- Source: GitHub
- Original project: https://github.com/langchain-ai/langchain-nextjs-template
- Description attribution: project author metadata
- Categories: AI &amp; machine learning, Templates &amp; UI components
- Technologies: React, Next.js
- Licence: MIT
- Repository availability checked: 2026-11-23T13:30:59.949Z
- Demo page loaded: 2026-11-23T16:32:52.607Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> This template scaffolds a LangChain.js + Next.js starter app. It showcases how to use and combine LangChain modules for several use cases. Specifically:

> Most of them use Vercel's AI SDK to stream tokens to the client and display the incoming messages.

> The agents use LangGraph.js, LangChain's framework for building agentic workflows. They use preconfigured helper functions to minimize boilerplate, but you can replace them with custom graphs as desired.

- Returning structured output from an LLM call
- Answering complex, multi-step questions with agents
- Retrieval augmented generation \(RAG\) with a chain and a vector store
- Retrieval augmented generation \(RAG\) with an agent and a vector store

## Author-documented requirements and audience

> This template scaffolds a LangChain.js + Next.js starter app. It showcases how to use and combine LangChain modules for several use cases. Specifically:



- External API key — Required: To start with the basic examples, you'll just need to add your OpenAI API key.
- External API key — Required: These tests do not require API keys or a live database.

Not recorded: Account, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/langchain-ai/langchain-nextjs-template/blob/main/README.md

Extraction checked: 2026-11-02T07:59:33.858Z

Last recorded source update: 2026-11-23T09:44:02.000Z

Saved release: Not recorded. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=langchain-ai%2Flangchain-nextjs-template). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
