Skip to content

feat: frontend docs#2930

Merged
Christian Bromann (christian-bromann) merged 43 commits intomainfrom
cb/frontend-docs
Mar 12, 2026
Merged

feat: frontend docs#2930
Christian Bromann (christian-bromann) merged 43 commits intomainfrom
cb/frontend-docs

Conversation

@christian-bromann
Copy link
Copy Markdown
Member

@christian-bromann Christian Bromann (christian-bromann) commented Mar 4, 2026

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)

@github-actions github-actions Bot added internal ci deepagents For docs changes to Deep Agents docs-infra langchain For docs changes to LangChain langgraph For docs changes to LangGraph oss python For content related to the Python version of LangChain projects tests labels Mar 4, 2026
@christian-bromann Christian Bromann (christian-bromann) force-pushed the cb/frontend-docs branch 2 times, most recently from 88acf64 to a4bc21c Compare March 9, 2026 17:44
@christian-bromann Christian Bromann (christian-bromann) marked this pull request as ready for review March 9, 2026 17:44
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-cbfron-1773328705-7cadb12

@christian-bromann Christian Bromann (christian-bromann) merged commit c0ac46f into main Mar 12, 2026
18 checks passed
@christian-bromann Christian Bromann (christian-bromann) deleted the cb/frontend-docs branch March 12, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci deepagents For docs changes to Deep Agents docs-infra internal langchain For docs changes to LangChain langgraph For docs changes to LangGraph oss python For content related to the Python version of LangChain projects tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants