https://github.com/nurbxfit/js-langgraph-chat
A simple little chat app built with Langraph + Langchain + Bun. Console-based, JSON persistent memory
https://github.com/nurbxfit/js-langgraph-chat
bun langchain langchain-js langgraph langgraph-js ollama typescript
Last synced: 2 months ago
JSON representation
A simple little chat app built with Langraph + Langchain + Bun. Console-based, JSON persistent memory
- Host: GitHub
- URL: https://github.com/nurbxfit/js-langgraph-chat
- Owner: nurbxfit
- Created: 2025-07-29T09:34:01.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T10:02:29.000Z (2 months ago)
- Last Synced: 2025-07-29T11:53:52.402Z (2 months ago)
- Topics: bun, langchain, langchain-js, langgraph, langgraph-js, ollama, typescript
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
_ ____ _ ____ _ _
| | __ _ _ __ __ _ / ___|_ __ __ _ _ __ | |__ / ___| |__ __ _| |_
| | / _` | '_ \ / _` | | _| '__/ _` | '_ \| '_ \ | | | '_ \ / _` | __|
| |__| (_| | | | | (_| | |_| | | | (_| | |_) | | | | | |___| | | | (_| | |_
|_____\__,_|_| |_|\__, |\____|_| \__,_| .__/|_| |_|___\____|_| |_|\__,_|\__|
|___/ |_| |_____|
```# langraph chat π
This is a simple chat app I built using Langraph and Langchain.
Right now, itβs just a basic console-based interface where you can chat with a model.It saves your chat history using JSON files, so even if you restart the app, you can continue the convo like nothing happened.
I built this mostly for fun (and learning), and I plan to add more stuff later, maybe a web interface, maybe more features, who knows.
Most of the demos I found online use Python, so I wanted to show how to do it with JavaScript/TypeScript using Bun instead.
---
[](https://bun.sh/)
[](https://www.typescriptlang.org/)
[](https://langchain.com/)---
## Requirements
- [Bun](https://bun.sh/) β Fast JavaScript runtime
- [Langraph](https://langraph.com/) β Framework for building AI apps
- [Langchain](https://langchain.com/) β Framework for LLM-powered stuff
- [Node.js](https://nodejs.org/) β Needed for Bun
- [TypeScript](https://www.typescriptlang.org/) β Because types are cool
- [ollama deepseek-r1 local model](https://ollama.com/library/deepseek-r1) β For the chat model## Installation
```bash
bun install
```## Usage
```bash
bun run dev
```Type `/exit` in the chat console to quit.
---
## Known Issues
- Chat history is saved in a single JSON file (can get messy).
- JSON format isn't ideal for chat history, but works for now.
- File may get corrupted if the app crashes.
- If corrupted, delete the file and start over.---
## Up Next
- Improve chat history management
- Switch to a better storage (e.g., database)
- Add a web interface
- Integrate tools (search, etc.)---
## Notes
This is a demo app, built for fun and learning how to use Langraph and Langchain with Bun.