
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
Portable, traceable long-term memory for AI applications that keeps evidence, inference, and conflicts distinct.
MemoWeft is an open-source long-term memory engine for TypeScript AI applications. It keeps what users said, what systems observed, what models inferred, and what remains conflicted as distinct records—so memory can be inspected, corrected, managed, and moved between hosts in SQLite controlled by your application.
Why · Offline demo · Quickstart · Integrations · Trust · Docs
English · 简体中文
[!IMPORTANT] MemoWeft is a library your application imports—not a chat product, hosted memory service, persona framework, vector database, or agent framework.
AI can already hold a convincing conversation. What it often lacks is reliable continuity.
Across conversations, important context can disappear. New information may quietly replace old information. A model's guess may return later as if the user had stated it. Move to another model or host, and the accumulated memory may be left behind.
MemoWeft does not ask a model to declare the truth. It preserves where information came from, when it appeared, what contradicts it, and why a memory was formed—so applications and users can inspect the path from evidence to recall.
|
Evidence stays evidence User statements, observations, tool results, and model inferences keep distinct provenance. |
Conflict stays visible Corrections retain history. Unresolved contradictions are exposed instead of silently overwritten. |
Memory stays yours Hosts can inspect, manage, export, validate, and import versioned memory bundles. |
Confidence is computed by rule rather than copied from a model's self-assessment. Transient states can age faster than durable facts and preferences. Built-in ingestion paths do not turn an assistant's own reply into user evidence simply because the assistant said it.
Explore the six memory-discipline rules · Read the architecture
With Node 24 installed:
git clone https://github.com/memoweft/memoweft.git
cd memoweft
npm ci
npm run build
node examples/no-key-demo.ts
After dependencies are installed, this deterministic demo needs no API key, makes no network calls, uses an in-memory database, and writes nothing to disk.
[limited ] conf 600/1000 The user lives in Osaka — stated memory
[conflicted] conf 480/1000 The user lives in Tokyo — conflict kept, not overwritten
[candidate ] conf 200/1000 The user probably works somewhere central — guess (low confidence)
Summary: 3 cognitions, 1 in conflict-exposed state; inference remains labeled and rule-scored separately from stated memory.
Done. (in-memory database — nothing written to disk)
This proves MemoWeft's memory rules; it is not a model-quality benchmark. For correction history and typed decay as well, run npm run demo.
Read the four-scene walkthrough · Inspect the demo source
WeftMate is a desktop product built on MemoWeft. It turns the Core memory model into a visible profile, source trail, conflict view, and user-facing controls.
The screenshots below show WeftMate's UI, not UI bundled with MemoWeft Core. MemoWeft provides the memory layer and portable data contract; product experience remains the host application's responsibility.
|
|
| Know what a memory came from. Each item can expose its type, confidence tier, and source trail. | Resolve short replies before storing them. A brief confirmation does not promote the assistant's proposal into user evidence. |
See the evidence graph · See portable-data controls · Run the reference host
Node 24+ is the simplest path:
npm install memoweft
On Node 20 or 22, also install the optional SQLite driver:
npm install better-sqlite3
Save as quickstart.mjs:
import { createMemoWeftCore } from 'memoweft';
const core = createMemoWeftCore({ dbPath: ':memory:' });
await core.ingestUserMessage({
subjectId: 'alice',
content: 'I only drink decaf after 3pm—caffeine wrecks my sleep.',
});
for (const item of core.memory.listEvidence({ subjectId: 'alice' })) {
console.log(item.sourceKind, '·', item.rawContent);
}
core.close();
Run it:
node quickstart.mjs
Storing and reading raw evidence needs no model or network. Turning evidence into a profile, separating guesses from stated facts, and recalling it into later conversations requires a chat model. Embeddings are optional; without them, Core normally uses local FTS5 keyword recall.
Continue with the five-minute guide
MemoWeft keeps the journey from source material to recalled context explicit:
user words · observations · tool results
│
▼
evidence
│ provenance retained
▼
event
│
▼
cognition ◀── corrections and conflicts
│
▼
recall
The supported application path is the createMemoWeftCore() facade. Lower-level exports exist for advanced composition and carry documented stable, experimental, or internal support tiers.
API surface and tiers · Memory surface contract
| Choose MemoWeft when you need… | Choose another layer when you need… |
|---|---|
| Long-term user memory across conversations, models, or hosts | Only short-term chat history or general document RAG |
| Provenance, correction history, conflict visibility, and controlled recall | A ready-made chat UI, persona, or consumer application |
| An embedded TypeScript library backed by SQLite | A hosted multi-tenant memory API or managed synchronization service |
| Memory the host can inspect, manage, export, and import | PostgreSQL or a replaceable production storage backend out of the box |
| Explicit controls over built-in model read paths | A library that supplies authentication, consent UI, compliance, or encryption at rest |
Your host remains responsible for product UX, authentication, authorization, consent, encryption, backups, logging policy, and deployment.
| Ecosystem | Integration surface | Current public status |
|---|---|---|
| Vercel AI SDK | Middleware recall and controlled persistence | npm 0.2.3 supports Core 0.5.1 through stable 1.x |
| Model Context Protocol | Stdio: five reads and three controlled writes | npm 0.2.3 supports Core 0.5.1 through stable 1.x |
| Claude Agent SDK | User-prompt and tool-result hooks | Source preview |
| OpenAI Agents SDK | run() wrapper and model-input filter | Source preview |
| LangChain | v1 middleware, retriever, and callback paths | Source preview |
| Mastra | Processor-based read/write integration | Source preview |
| LlamaIndex.TS | Memory block and stream tap | Legacy; upstream archived |
Published packages and repository source move on independent release schedules. Check the installed release's npm metadata and package README for its exact compatibility range. Source previews are not presented as npm-installable until released.
Vercel AI SDK recipe · MCP recipe · Integration guide
MemoWeft is local-first through inspectable boundaries—not through a promise that data can never leave the device.
allowCloudRead filters evidence for MemoWeft's built-in cloud write-model prompts. It is not access control and does not govern custom code, recall, MCP tools, adapters, exports, or logs.resetSubject for a subject-level clear, and handle external indexes, logs, and backups at the host layer.CI verifies offline regressions, API snapshots, runnable documentation snippets, builds, and Node compatibility. Published evaluation results document both their methodology and what they do not measure.
Evaluation protocol · API stability · Deployment and privacy · Security policy
MemoWeft is library-first, and Core 1.0 is the first stable release of its supported TypeScript facade and memory contract. A plain npm install memoweft follows the stable latest line.
Stable, experimental, and internal surfaces are documented separately. After 1.0, breaking a stable symbol requires a major release and prior deprecation; experimental interfaces may still change in a minor release with notice. The Python package remains an experimental parity implementation rather than a feature-complete stable SDK.
Now: maintain the Core 1.x contract, expand versioned integrations, preserve Node 20/22/24 coverage, grow reproducible evaluation artifacts, and complete portable-bundle parity across TypeScript and Python.
Roadmap · Changelog · Stability policy
Contributions are welcome beyond Core code: clearer examples, framework integrations, platform testing, reproducible evaluation cases, and reviews of provenance, conflict, deletion, and privacy boundaries.
If you believe AI memory should be traceable, correctable, and portable—not an invisible black box—star MemoWeft, run the offline demo, or tell us what kind of memory experience you are building.
MIT © 2026 MemoWeft contributors.
FAQs
Portable, traceable long-term memory for AI applications that keeps evidence, inference, and conflicts distinct.
The npm package memoweft receives a total of 26 weekly downloads. As such, memoweft popularity was classified as not popular.
We found that memoweft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.