LangGraph4j is a Java library for building stateful, multi-agent workflows that integrate with LangChain4j and Spring AI. It supports persistent checkpoints, visual debugging, and modular modules; latest release is 1.8.22 as of Aug 3, 2026.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
LangGraph4j is a Java library for building stateful, multi-agent applications with LLMs. It is designed to work with LangChain4j and Spring AI.
How it works
Core concepts include StateGraph<S extends AgentState>, AgentState with a Map-based schema, Nodes (actions), Edges (flow control), and Checkpoints for persistence. Graphs are compiled into a runnable CompiledGraph. Persistence is via various saver modules (e.g., MySQL, PostgreSQL, Redis, SQLite, etc.).
Getting started
Installation
<properties>
<langgraph4j.version>1.8.22</langgraph4j.version> <!-- Check for the actual latest version -->
</properties>
<dependencies>
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core</artifactId>
</dependency>
<!-- Add other langgraph4j modules if needed, e.g., langgraph4j-langchain4j -->
</dependencies>
Example guidance
The README provides a sample demonstrating a two-node graph (greeter and responder) that updates a shared state with messages and shows how to define the state, nodes, and graph compilation. It also notes Java 17+ baseline and the presence of multiple saver modules for persistence.
Recent releases
Latest releases shown:
- v1.8.22 (2026-08-03): Features include sqllite-saver module addition to the project.
- v1.8.21 (2026-07-31): ALM bump to 1.8.21.
- v1.9.0-beta1 (2026-07-17): Beta release with What's new link.
- v1.8.20 (2026-06-27): Features include Hazelcast checkpoint saver addition.
- v1.8.19 (2026-06-16): Bug fixes for lancchain4j-agent.
Traction
Stars: 1878 Forks: 258 Open issues: 24
Behind the repo
Not provided in the README excerpt.
Caveats
MIT license is stated. Java 17+ baseline is recommended. Multiple modules exist for different storage backends (e.g., MySQL, PostgreSQL, Redis, SQLite, Hazelcast).




