finds.dev

langchain-ai/langserve

LangServe 🦜️🏓

View on GitHub

★ 2,331JavaScriptNOASSERTIONupdated May 2026

// the take

LangServe wraps LangChain runnables/chains into FastAPI REST endpoints with automatic schema inference, streaming support, and a built-in playground UI. It's for Python developers who want to quickly expose a LangChain pipeline as an HTTP service without writing boilerplate FastAPI code. It was officially deprecated in November 2024 in favor of LangGraph Platform.

- Zero-boilerplate deployment: `add_routes(app, chain, path='/foo')` gives you invoke/batch/stream/stream_log endpoints with Pydantic validation and OpenAPI docs automatically derived from the runnable's type annotations.

- The built-in playground UI (including a chat-focused variant) is genuinely useful for testing chains during development without writing a separate frontend.

- RemoteRunnable client lets you call a deployed LangServe endpoint as if it were a local LangChain object, including async and streaming—useful for chaining multiple deployed services.

- Solid example coverage: auth patterns, configurable runnables, file handling, persistence, and agent variants all have working server+client pairs.

- Officially deprecated as of November 2024—the maintainers themselves say don't use this for new projects. Adopting it now means planning a migration to LangGraph Platform before you're even done building.

- No support for stateful/graph-based agents, which is where LangChain usage has moved. LangGraph workflows simply don't fit the Runnable interface assumptions LangServe was built around.

- Per-user auth is awkward: `per_req_config_modifier` works but breaks OpenAPI doc generation, and the examples make clear there's no clean first-class solution for multi-tenant scenarios.

- Multipart file upload is unsupported—files must be base64-encoded and sent as JSON, which is inefficient and breaks standard HTTP file upload conventions.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
2,331
Forks
273
Language
JavaScript
License
NOASSERTION
Last commit
5 May 2026

// nearby

If langserve isn't quite it.

All repos →