[PR #2930] [MERGED] feat: frontend docs #3015

Closed
opened 2026-06-05 18:20:50 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2930
Author: @christian-bromann
Created: 3/4/2026
Status: Merged
Merged: 3/12/2026
Merged by: @christian-bromann

Base: mainHead: cb/frontend-docs


📝 Commits (10+)

📊 Changes

28 files changed (+6306 additions, -3123 deletions)

View changed files

.npmrc (+1 -0)
📝 Makefile (+3 -0)
📝 package-lock.json (+20 -1)
package.json (+9 -0)
📝 pipeline/core/builder.py (+42 -0)
📝 src/docs.json (+84 -30)
src/oss/deepagents/frontend/overview.mdx (+114 -0)
src/oss/deepagents/frontend/subagent-streaming.mdx (+504 -0)
src/oss/deepagents/frontend/todo-list.mdx (+487 -0)
📝 src/oss/deepagents/streaming.mdx (+1 -1)
src/oss/deepagents/streaming/frontend.mdx (+0 -518)
src/oss/langchain/frontend/branching-chat.mdx (+611 -0)
src/oss/langchain/frontend/generative-ui.mdx (+312 -0)
src/oss/langchain/frontend/human-in-the-loop.mdx (+466 -0)
src/oss/langchain/frontend/join-rejoin.mdx (+446 -0)
src/oss/langchain/frontend/markdown-messages.mdx (+384 -0)
src/oss/langchain/frontend/message-queues.mdx (+394 -0)
src/oss/langchain/frontend/overview.mdx (+133 -0)
src/oss/langchain/frontend/reasoning-tokens.mdx (+427 -0)
src/oss/langchain/frontend/structured-output.mdx (+410 -0)

...and 8 more files

📄 Description

Overview

Split the monolithic streaming/frontend documentation pages into individual pattern-specific pages across LangChain, LangGraph, and DeepAgents. Each page covers a single frontend pattern (tool calling, human-in-the-loop, branching chat, etc.) with an interactive playground embed powered by the @langchain/docs-sandbox npm package.

Also restructures the "Streaming" nav groups into a top-level "Streaming" page and a new "Frontend" nav group for each product.

Type of change

Type: New documentation page / Update existing documentation

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

Additional notes

New frontend pattern pages

LangChain (10 pages):
tool-calling, human-in-the-loop, branching-chat, optimistic-updates, reasoning-tokens, structured-output, async-iterator-tools, message-queues, join-rejoin, time-travel

DeepAgents (2 pages):
subagent-streaming, todo-list

LangGraph (1 page):
graph-execution

Each page includes a <PatternEmbed> component that renders an interactive playground preview from the @langchain/docs-sandbox package.

Playground embed build pipeline

The PatternEmbed component is now sourced from the @langchain/docs-sandbox npm package rather than being manually maintained in the source tree:

  • Added package.json with @langchain/docs-sandbox@0.0.3 dependency
  • Added .npmrc with legacy-peer-deps=true (needed because the package declares a peer dependency using pnpm's workspace:* protocol)
  • Updated pipeline/core/builder.py to copy node_modules/@langchain/docs-sandbox/dist/PatternEmbed.jsxbuild/snippets/pattern-embed.jsx during the build step
  • CI pipelines need to run npm install before building docs

Navigation changes (src/docs.json)

  • Collapsed Streaming sub-group (overview + frontend) into a single top-level streaming page under LangChain and DeepAgents
  • Added new Frontend nav groups for LangChain (10 pages), DeepAgents (3 pages including overview), and LangGraph (2 pages including overview)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/2930 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `cb/frontend-docs` --- ### 📝 Commits (10+) - [`d5fbd3a`](https://github.com/langchain-ai/docs/commit/d5fbd3a6efe32438f449d9ee236e6c16ce7fd180) feat: frontend docs - [`b1b02f2`](https://github.com/langchain-ai/docs/commit/b1b02f2f2b7b799fd6614134a5f79686d9e98780) fix CI - [`5b77be0`](https://github.com/langchain-ai/docs/commit/5b77be06532396542bde3edcc84a924703548ccb) install deps - [`2d7b91c`](https://github.com/langchain-ai/docs/commit/2d7b91c1f472167b2caa2eb2da015eec481b8d15) test relative paths - [`0d000cd`](https://github.com/langchain-ai/docs/commit/0d000cd05760941359e327bdfcd45b6922ed1583) try this - [`d2c9b07`](https://github.com/langchain-ai/docs/commit/d2c9b074f50a2c179b2346f4051fee3287ce576b) fix import - [`191acc5`](https://github.com/langchain-ai/docs/commit/191acc5ddc85e29a9f8f88653e3b9e700fe6141b) add new pattern for rendering basic markdown - [`b866406`](https://github.com/langchain-ai/docs/commit/b86640694399d1575b59b9dfe2029dcb244ddb3b) pass agent as generic - [`dba0644`](https://github.com/langchain-ai/docs/commit/dba06447db743046ab5cea330914abc83a5ba63b) various improvements - [`3da389b`](https://github.com/langchain-ai/docs/commit/3da389ba6a7883066fbe32618a473db172e5df87) bump playground component ### 📊 Changes **28 files changed** (+6306 additions, -3123 deletions) <details> <summary>View changed files</summary> ➕ `.npmrc` (+1 -0) 📝 `Makefile` (+3 -0) 📝 `package-lock.json` (+20 -1) ➕ `package.json` (+9 -0) 📝 `pipeline/core/builder.py` (+42 -0) 📝 `src/docs.json` (+84 -30) ➕ `src/oss/deepagents/frontend/overview.mdx` (+114 -0) ➕ `src/oss/deepagents/frontend/subagent-streaming.mdx` (+504 -0) ➕ `src/oss/deepagents/frontend/todo-list.mdx` (+487 -0) 📝 `src/oss/deepagents/streaming.mdx` (+1 -1) ➖ `src/oss/deepagents/streaming/frontend.mdx` (+0 -518) ➕ `src/oss/langchain/frontend/branching-chat.mdx` (+611 -0) ➕ `src/oss/langchain/frontend/generative-ui.mdx` (+312 -0) ➕ `src/oss/langchain/frontend/human-in-the-loop.mdx` (+466 -0) ➕ `src/oss/langchain/frontend/join-rejoin.mdx` (+446 -0) ➕ `src/oss/langchain/frontend/markdown-messages.mdx` (+384 -0) ➕ `src/oss/langchain/frontend/message-queues.mdx` (+394 -0) ➕ `src/oss/langchain/frontend/overview.mdx` (+133 -0) ➕ `src/oss/langchain/frontend/reasoning-tokens.mdx` (+427 -0) ➕ `src/oss/langchain/frontend/structured-output.mdx` (+410 -0) _...and 8 more files_ </details> ### 📄 Description ## Overview Split the monolithic streaming/frontend documentation pages into individual pattern-specific pages across LangChain, LangGraph, and DeepAgents. Each page covers a single frontend pattern (tool calling, human-in-the-loop, branching chat, etc.) with an interactive playground embed powered by the `@langchain/docs-sandbox` npm package. Also restructures the "Streaming" nav groups into a top-level "Streaming" page and a new "Frontend" nav group for each product. ## Type of change **Type:** New documentation page / Update existing documentation ## Related issues/PRs - GitHub issue: - Feature PR: - Linear issue: - Slack thread: ## Checklist - [x] I have read the [contributing guidelines](README.md) - [x] I have tested my changes locally using `docs dev` - [ ] All code examples have been tested and work correctly - [ ] I have used **root relative** paths for internal links - [ ] I have updated navigation in `src/docs.json` if needed (Internal team members only / optional): Create a preview deployment as necessary using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes ### New frontend pattern pages **LangChain** (10 pages): `tool-calling`, `human-in-the-loop`, `branching-chat`, `optimistic-updates`, `reasoning-tokens`, `structured-output`, `async-iterator-tools`, `message-queues`, `join-rejoin`, `time-travel` **DeepAgents** (2 pages): `subagent-streaming`, `todo-list` **LangGraph** (1 page): `graph-execution` Each page includes a `<PatternEmbed>` component that renders an interactive playground preview from the `@langchain/docs-sandbox` package. ### Playground embed build pipeline The `PatternEmbed` component is now sourced from the `@langchain/docs-sandbox` npm package rather than being manually maintained in the source tree: - Added `package.json` with `@langchain/docs-sandbox@0.0.3` dependency - Added `.npmrc` with `legacy-peer-deps=true` (needed because the package declares a peer dependency using pnpm's `workspace:*` protocol) - Updated `pipeline/core/builder.py` to copy `node_modules/@langchain/docs-sandbox/dist/PatternEmbed.jsx` → `build/snippets/pattern-embed.jsx` during the build step - CI pipelines need to run `npm install` before building docs ### Navigation changes (`src/docs.json`) - Collapsed `Streaming` sub-group (overview + frontend) into a single top-level `streaming` page under LangChain and DeepAgents - Added new `Frontend` nav groups for LangChain (10 pages), DeepAgents (3 pages including overview), and LangGraph (2 pages including overview) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:20:50 -04:00
yindo closed this issue 2026-06-05 18:20:50 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3015