feat(cli): add self-hosted LangGraph and Vercel AI SDK backends - #968
Open
AbhinRustagi wants to merge 1 commit into
Open
feat(cli): add self-hosted LangGraph and Vercel AI SDK backends#968AbhinRustagi wants to merge 1 commit into
AbhinRustagi wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 13, 2026 11:52
b92280c to
7629484
Compare
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 13, 2026 11:57
7629484 to
d106332
Compare
AbhinRustagi
marked this pull request as ready for review
August 13, 2026 11:57
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 13, 2026 12:21
d106332 to
b31e19e
Compare
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 14, 2026 06:11
b31e19e to
72251e2
Compare
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 14, 2026 06:17
72251e2 to
78d2e0b
Compare
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 14, 2026 10:25
78d2e0b to
5826da9
Compare
Add the two backend overlays for the self-hosted template, selected with `--backend-framework`. - LangGraph: a standalone Agent Server in `src/agent/agent.ts` described by `langgraph.json`, with `/api/chat` acting as a browser-to-server proxy via `@openuidev/langchain`. `pnpm dev` runs the Agent Server and Next.js together; deploy the frontend to Vercel and point `LANGGRAPH_API_URL` at the Agent Server. - Vercel AI SDK: a `streamText()` route returning `toUIMessageStreamResponse()`, consumed by `vercelAIAdapter()`. The whole project deploys to Vercel as one Next.js app. - Both overlays drop the `openai` dependency, since the framework owns the provider client. - Add a shared `get_weather` example tool backed by Open-Meteo (no API key) so the selected framework's native multi-step tool loop is testable right after scaffolding. Migrated from PR #785 (visharad/th-2051-route-replacement). Co-Authored-By: Visharad Kashyap <154831195+vishxrad@users.noreply.github.com>
AbhinRustagi
force-pushed
the
be-framework-self-hosted
branch
from
August 14, 2026 11:17
5826da9 to
ecf3cc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the LangGraph and Vercel AI SDK backend overlays for the self-hosted template.
Changes
src/agent/agent.tsdescribed bylanggraph.json, with/api/chatproxying to it through@openuidev/langchain.pnpm devruns the Agent Server and Next.js together.streamText()route returningtoUIMessageStreamResponse(), consumed byvercelAIAdapter(). The whole project deploys to Vercel as one Next.js app.openaidependency, since the framework owns the provider client.get_weatherexample backed by Open-Meteo (no API key), so the selected framework's multi-step tool loop is testable right after scaffolding.Warning
This touches
packages/openui-cli/src/templates/, which #953 deletes in favour of theopenui-templatesrepo. Whichever stack lands second needs this redone over there.Test Plan
Built the CLI and scaffolded both variants. Confirmed the route and page land, framework dependencies merge,
openaiis dropped,langgraph.jsonandsrc/agent/agent.tsship for the LangGraph variant, andbackends/never leaks into the generated project.Checklist