{"data":{"slug":"pors-langchain-chat-websockets","name":"langchain-chat-websockets","tagline":"LangChain LLM chat with streaming response over websockets","github_url":"https://github.com/pors/langchain-chat-websockets","owner":"pors","repo":"langchain-chat-websockets","owner_avatar_url":"https://avatars.githubusercontent.com/u/1078320?v=4","primary_language":"HTML","stars":96,"forks":8,"topics":["async","fastapi","langchain","langchain-python","llm","openai","openai-api","openai-chatgpt","websockets"],"archived":false,"github_pushed_at":"2023-11-30T07:25:04+00:00","maintenance_label":"Dormant","stars_delta_30d":-1,"url":"https://www.graphcanon.com/tools/pors-langchain-chat-websockets","markdown_url":"https://www.graphcanon.com/tools/pors-langchain-chat-websockets.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/pors-langchain-chat-websockets","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=pors-langchain-chat-websockets","description":"LangChain LLM chat with streaming response over websockets","homepage_url":null,"license":"Apache-2.0","open_issues":3,"watchers":2,"ai_summary":"A repository that provides an implementation of LangChain for facilitating asynchronous live chat responses via websocket connections, leveraging the FastAPI framework and OpenAI's API.","readme_excerpt":"### Run with Docker Compose\n\nTo run the LangChain chat application using Docker Compose, follow these steps:\n\n1. Make sure you have [Docker](https://www.docker.com/) installed on your machine.\n\n2. Create a file named `.env` file \n\n3. Open the newly created `.env` file in a text editor and add your OpenAI API key:\n\n   ```dotenv\n   OPENAI_API_KEY=your_openai_api_key_here\n   ```\n\n   Replace `your_openai_api_key_here` with your actual OpenAI API key.\n\n4. Run the following command to build the Docker image and start the FastAPI application inside a Docker container:\n\n   ```bash\n   docker-compose up --build\n   ```\n\n5. Access the application at [http://localhost:8000](http://localhost:8000).\n\n\nThanks to [@hwchase17](https://github.com/hwchase17) for showing the way in [chat-langchain](https://github.com/hwchase17/chat-langchain/tree/master)","github_created_at":"2023-05-02T12:32:18+00:00","created_at":"2026-07-11T10:50:32.568518+00:00","updated_at":"2026-08-15T06:01:06.600476+00:00","categories":[{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"async","name":"async"},{"slug":"fastapi","name":"fastapi"},{"slug":"langchain","name":"langchain"},{"slug":"openai-api","name":"openai-api"},{"slug":"websockets","name":"websockets"}],"trust":{"provenance":{"is_fork":false,"github_id":635312335,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-15T06:01:05.847Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":988,"last_release_at":null,"stars_delta_30d":-1,"open_issues_delta_30d":0},"security_summary":{"status":"findings","scanner":"osv@v1","low_count":50,"high_count":0,"last_scan_at":"2026-07-11T10:50:33.996Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-15T06:01:06.317Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-08-15T06:01:06.317Z","managed_saas":false},"languages":{"value":["html"],"source":"github.language","observed_at":"2026-08-15T06:01:06.317Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-08-15T06:01:06.317Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-08-15T06:01:06.317Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["Need async, real-time chat response functionality integrated via websocket connections.","Using Docker for deployment simplifies setup across different environments."],"when_not_to_use":["Project doesn't require asynchronous interaction or streaming responses over websockets.","Prefer alternatives that allow customization beyond FastAPI and OpenAI integration."],"source":"enrich:decision_facts","observed_at":"2026-07-12T12:15:04.808Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Async live chat with streaming responses over websockets using FastAPI and OpenAI API."}]}}