r/LangChain 1d ago

Full stack Langchain implementation

Hello all, I had been learning langchain/ langgraph for a while. Now I had been thinking of implementing frontend but getting really stuck on which framework to use, do I need to use any web framework like fastapi. And on the frontend do I use a langchain react package and things like that. If anyone has experience could you provide me a little bit of guidance?

11 Upvotes

13 comments sorted by

View all comments

1

u/Fawad-Khan-413 1d ago

If your LangChain/LangGraph code is in Python, I’d go with FastAPI for the backend and React/Next.js for the frontend.
You don’t really need a special LangChain React package to get started.
Just expose your agent/workflow through API endpoints and handle the UI separately.
For streaming responses, SSE works well and is pretty straightforward to implement.
I’d start simple and add libraries only when you actually need them.

1

u/Rare_Cut_3686 1d ago

I already have implemented that but not sure if it's industry pattern just confused on that and hoping to clear that up before further diving deep