Browser (and other non-node environment) Support #127

Closed
opened 2026-02-15 17:16:02 -05:00 by yindo · 3 comments
Owner

Originally created by @gingerhendrix on GitHub (Oct 28, 2024).

I'm using LangGraph in a browser extension, but it appears the released version requires node via this method:

https://github.com/langchain-ai/langgraphjs/blob/6657998095cece2f7d48323454474a294fee6b65/libs/langgraph/src/setup/async_local_storage.ts#L1-L8

I've simply commented out calling this function, and otherwise LangGraph seems to be fully functional.

Can we use a dynamic import or something to allow released LangGraph to work in a browser-like environment?

Originally created by @gingerhendrix on GitHub (Oct 28, 2024). I'm using LangGraph in a browser extension, but it appears the released version requires node via this method: https://github.com/langchain-ai/langgraphjs/blob/6657998095cece2f7d48323454474a294fee6b65/libs/langgraph/src/setup/async_local_storage.ts#L1-L8 I've simply commented out calling this function, and otherwise LangGraph seems to be fully functional. Can we use a dynamic import or something to allow released LangGraph to work in a browser-like environment?
yindo closed this issue 2026-02-15 17:16:02 -05:00
Author
Owner

@jacoblee93 commented on GitHub (Oct 28, 2024):

Hey @gingerhendrix, please see instructions here:

https://langchain-ai.github.io/langgraphjs/how-tos/use-in-web-environments/

A few things to watch out for around nesting and config passing but should work fine!

@jacoblee93 commented on GitHub (Oct 28, 2024): Hey @gingerhendrix, please see instructions here: https://langchain-ai.github.io/langgraphjs/how-tos/use-in-web-environments/ A few things to watch out for around nesting and config passing but should work fine!
Author
Owner

@hinthornw commented on GitHub (Oct 28, 2024):

https://langchain-ai.github.io/langgraphjs/how-tos/use-in-web-environments/?h=browser
^ does this resolve your issue?

@hinthornw commented on GitHub (Oct 28, 2024): https://langchain-ai.github.io/langgraphjs/how-tos/use-in-web-environments/?h=browser ^ does this resolve your issue?
Author
Owner

@hinthornw commented on GitHub (Oct 28, 2024):

haha jinx

@hinthornw commented on GitHub (Oct 28, 2024): haha jinx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#127