An open API service indexing awesome lists of open source software.

https://github.com/levivoelz/checkpoint-redis

Langgraph Redis Checkpoint Saver
https://github.com/levivoelz/checkpoint-redis

langchain-js langgraph-js redis

Last synced: 2 days ago
JSON representation

Langgraph Redis Checkpoint Saver

Awesome Lists containing this project

README

          

# Langchain langgraph Redis Checkpoint Saver

A TypeScript implementation of a Redis-based checkpoint saver for [langgraph](https://github.com/langchain-ai/langgraphjs). Based on [How to create a custom checkpoint saver](https://langchain-ai.github.io/langgraph/how-tos/persistence_redis/) (python).

## Install
```bash
npm install checkpoint-redis
```

## Usage

```ts
import { RedisSaver } from "checkpoint-redis";
import { Redis } from "ioredis";

const redis = new Redis(process.env.REDIS_URL);
const checkpoint = new RedisSaver(redis);
```

## License

MIT