@mubit-ai/langgraph
v0.1.0
Published
LangGraph.js BaseStore backed by MuBit memory engine
Readme
@mubit-ai/langgraph
LangGraph.js BaseStore backed by MuBit.
This adapter now uses the canonical JS SDK transport layer internally, while preserving the LangGraph store interface and adding MuBit-specific helpers for long-running MAS and coding-agent loops.
Install
npm install @mubit-ai/langgraph @langchain/langgraph @mubit-ai/sdkBasic usage
import { MubitStore } from "@mubit-ai/langgraph";
const store = new MubitStore({
endpoint: "http://127.0.0.1:3000",
apiKey: process.env.MUBIT_API_KEY,
});
await store.put(["memories", "user-1", "session-1"], "deploy-note", {
text: "Canary before rollout.",
intent: "lesson",
source: "human",
});
const results = await store.search(["memories", "user-1"], {
query: "What rollout lesson do we have?",
limit: 5,
});Namespace mapping
| Namespace | MuBit scope |
| --- | --- |
| ["memories"] | global |
| ["memories", userId] | user-scoped |
| ["memories", userId, sessionId] | user + session scoped |
Store behavior
put()writes through MuBit control ingest withupsert_keyget()andsearch()use MuBit control query- evidence metadata is normalized from current MuBit response fields
listNamespaces()remains local cache baseddelete()remains a no-op because MuBit deletion is explicit and scope-based
MuBit extension methods
Existing MAS helpers:
checkpoint(namespace, snapshot, options)recordOutcome(namespace, referenceId, outcome, options)surfaceStrategies(namespace, options)
Current observability and coordination helpers:
getContext(namespace, options)memoryHealth(namespace, options)diagnose(namespace, options)archive(namespace, options)dereference(namespace, options)registerAgent(namespace, options)listAgents(namespace)handoff(namespace, options)feedback(namespace, options)
Config
| Option | Default | Purpose |
| --- | --- | --- |
| endpoint | http://127.0.0.1:3000 | MuBit HTTP endpoint |
| apiKey / api_key | "" | MuBit API key |
For tests or advanced embedding, you can inject mubitClient directly.
Development
cd integrations/javascript/mubit-langgraph
npm install
npm testLicense
Apache-2.0
