An integration package connecting Synapse memory and LangGraph. Privacy-first checkpointing and cross-thread memory store.
Project description
langgraph-synapse
An integration package connecting Synapse memory and LangGraph.
Privacy-first checkpointing and cross-thread memory — all data stays local.
Installation
pip install langgraph-synapse
Components
SynapseCheckpointer
Persist LangGraph state across invocations:
from synapse import Synapse
from langgraph_synapse import SynapseCheckpointer
syn = Synapse("./agent_state")
checkpointer = SynapseCheckpointer(synapse=syn)
# Use with LangGraph
graph = builder.compile(checkpointer=checkpointer)
graph.invoke(
{"messages": [{"role": "user", "content": "hello"}]},
config={"configurable": {"thread_id": "thread-1"}},
)
SynapseStore
Cross-thread memory store with semantic search:
from synapse import Synapse
from langgraph_synapse import SynapseStore
syn = Synapse("./shared_memory")
store = SynapseStore(synapse=syn)
# Store shared context
store.put(("user", "preferences"), "diet", {"value": "vegetarian"})
# Retrieve across any thread
item = store.get(("user", "preferences"), "diet")
# Semantic search
results = store.search(("user",), query="food preferences")
Why Synapse?
- 🔒 Privacy-first: All state stays on your machine
- 🧠 Semantic recall: Not just key-value — find relevant state by meaning
- ⚡ Zero dependencies: Synapse is pure Python
- 📦 Portable:
.synapsefiles can be shared and federated
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langgraph_synapse-0.1.0.tar.gz.
File metadata
- Download URL: langgraph_synapse-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fc6b2bf56905ccbf183b6c2f462c70653dca725d1a8c7fb7b14cf3421c38ac5
|
|
| MD5 |
6a6a0e88a8f4d13a0ae1abeb1f4ce48f
|
|
| BLAKE2b-256 |
07f90c9099242b198309371ceb269f89a9edc171b12f8d8d06b06374acc3105c
|
File details
Details for the file langgraph_synapse-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_synapse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3127d2af129536d50135ad90a68152844b1082d31c3618ed7462bdd127ebbb
|
|
| MD5 |
757ca09357b2f5ee5024345ebfeb5418
|
|
| BLAKE2b-256 |
8d202c5258eda71a73ee131940047466d9023e5f2efc28baf759c007cac89eb3
|