#85 · Primary category: LLM Application Frameworks

langchain-nextjs-template

LangChain + Next.js starter template

Project last updated:08/24/26

GitHub Stars

2.5K

Forks

561

Contributors

9

License

MIT

Why we included this project

This is the official LangChain team's starter template for running LangChain.js on Next.js, and it works as a reference for how a real app fits together. Each API route demonstrates one pattern: plain chat with streamed tokens, structured output from a single LLM call, multi-step agents built with LangGraph.js, and RAG against a vector store, both as a straightforward chain and with an agent driving it. Streaming to the browser goes through the Vercel AI SDK, and since the app targets serverless Edge functions, the template keeps bundle size tight enough to stay free-tier friendly. You can clone it, add an OpenAI API key, and be chatting with the bot within minutes. That makes it a practical base for internal chatbots, document Q&A, or agent-based tooling on the JavaScript stack.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category