{"id":43903297,"url":"https://github.com/singlestore-labs/langgraph-checkpointer-singlestore","last_synced_at":"2026-02-06T19:20:42.687Z","repository":{"id":308773227,"uuid":"1028299607","full_name":"singlestore-labs/langgraph-checkpointer-singlestore","owner":"singlestore-labs","description":"SingleStoreDB implementation of LangGraph checkpointer","archived":false,"fork":false,"pushed_at":"2026-01-09T16:47:04.000Z","size":447,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-18T02:14:31.590Z","etag":null,"topics":["langgraph","singlestoredb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singlestore-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-29T10:20:05.000Z","updated_at":"2026-01-09T16:47:07.000Z","dependencies_parsed_at":"2025-08-07T21:16:49.700Z","dependency_job_id":"79dbd8ab-ade5-4b3b-84a4-aba37161710b","html_url":"https://github.com/singlestore-labs/langgraph-checkpointer-singlestore","commit_stats":null,"previous_names":["singlestore-labs/langgraph-checkpointer-singlestore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/singlestore-labs/langgraph-checkpointer-singlestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singlestore-labs%2Flanggraph-checkpointer-singlestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singlestore-labs%2Flanggraph-checkpointer-singlestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singlestore-labs%2Flanggraph-checkpointer-singlestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singlestore-labs%2Flanggraph-checkpointer-singlestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singlestore-labs","download_url":"https://codeload.github.com/singlestore-labs/langgraph-checkpointer-singlestore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singlestore-labs%2Flanggraph-checkpointer-singlestore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29173493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T16:33:35.550Z","status":"ssl_error","status_checked_at":"2026-02-06T16:33:30.716Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["langgraph","singlestoredb"],"created_at":"2026-02-06T19:20:42.074Z","updated_at":"2026-02-06T19:20:42.682Z","avatar_url":"https://github.com/singlestore-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangGraph Checkpoint SingleStore\n\nImplementation of LangGraph CheckpointSaver that uses SingleStore.\n\n## Dependencies\n\nBy default `langgraph-checkpoint-singlestore` installs `singlestoredb` package. You can install it with:\n\n```bash\npip install singlestoredb\n```\nor\n```bash\nuv add singlestoredb\n```\n\n## Usage\n\n\u003e [!IMPORTANT]\n\u003e When using SingleStore checkpointers for the first time, make sure to call `.setup()` method on them to create required tables. See example below.\n\n\u003e [!IMPORTANT]\n\u003e When manually creating SingleStore connections and passing them to `SingleStoreSaver` or `AsyncSingleStoreSaver`, make sure to include `autocommit=True` and `results_type=\"dict\"`. See example below.\n\u003e\n\u003e **Why these parameters are required:**\n\u003e - `autocommit=True`: Required for the `.setup()` method to properly commit the checkpoint tables to the database. Without this, table creation may not be persisted.\n\u003e - `results_type=\"dict\"`: Required because the SingleStoreSaver implementation accesses database rows using dictionary-style syntax (e.g., `row[\"column_name\"]`). The default tuple results only support index-based access (e.g., `row[0]`), which will cause `TypeError` exceptions when the checkpointer tries to access columns by name.\n\u003e\n\u003e **Example of incorrect usage:**\n\u003e ```python\n\u003e # ❌ This will fail with TypeError during checkpointer operations\n\u003e with singlestoredb.connect(DB_URI) as conn:  # Missing autocommit=True and results_type=\"dict\"\n\u003e     checkpointer = SingleStoreSaver(conn)\n\u003e     checkpointer.setup()  # May not persist tables properly\n\u003e     # Any operation that reads from database will fail with:\n\u003e     # TypeError: tuple indices must be integers or slices, not str\n\u003e ```\n\n```python\nfrom langgraph.checkpoint.singlestore import SingleStoreSaver\n\nwrite_config = {\"configurable\": {\"thread_id\": \"1\", \"checkpoint_ns\": \"\"}}\nread_config = {\"configurable\": {\"thread_id\": \"1\"}}\n\nDB_URI = \"admin:password@svc-host:port/database_name\"\nwith SingleStoreSaver.from_conn_string(DB_URI) as checkpointer:\n    # call .setup() the first time you're using the checkpointer\n    checkpointer.setup()\n    checkpoint = {\n        \"v\": 4,\n        \"ts\": \"2024-07-31T20:14:19.804150+00:00\",\n        \"id\": \"1ef4f797-8335-6428-8001-8a1503f9b875\",\n        \"channel_values\": {\n            \"my_key\": \"meow\",\n            \"node\": \"node\"\n        },\n        \"channel_versions\": {\n            \"__start__\": 2,\n            \"my_key\": 3,\n            \"start:node\": 3,\n            \"node\": 3\n        },\n        \"versions_seen\": {\n            \"__input__\": {},\n            \"__start__\": {\n            \"__start__\": 1\n            },\n            \"node\": {\n            \"start:node\": 2\n            }\n        },\n    }\n\n    # store checkpoint\n    checkpointer.put(write_config, checkpoint, {}, {})\n\n    # load checkpoint\n    checkpointer.get(read_config)\n\n    # list checkpoints\n    list(checkpointer.list(read_config))\n```\n\n### Async\n\n```python\nfrom langgraph.checkpoint.singlestore.aio import AsyncSingleStoreSaver\n\nasync with AsyncSingleStoreSaver.from_conn_string(DB_URI) as checkpointer:\n    checkpoint = {\n        \"v\": 4,\n        \"ts\": \"2024-07-31T20:14:19.804150+00:00\",\n        \"id\": \"1ef4f797-8335-6428-8001-8a1503f9b875\",\n        \"channel_values\": {\n            \"my_key\": \"meow\",\n            \"node\": \"node\"\n        },\n        \"channel_versions\": {\n            \"__start__\": 2,\n            \"my_key\": 3,\n            \"start:node\": 3,\n            \"node\": 3\n        },\n        \"versions_seen\": {\n            \"__input__\": {},\n            \"__start__\": {\n            \"__start__\": 1\n            },\n            \"node\": {\n            \"start:node\": 2\n            }\n        },\n    }\n\n    # store checkpoint\n    await checkpointer.aput(write_config, checkpoint, {}, {})\n\n    # load checkpoint\n    await checkpointer.aget(read_config)\n\n    # list checkpoints\n    [c async for c in checkpointer.alist(read_config)]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinglestore-labs%2Flanggraph-checkpointer-singlestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinglestore-labs%2Flanggraph-checkpointer-singlestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinglestore-labs%2Flanggraph-checkpointer-singlestore/lists"}