New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

memoweft

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memoweft

换个模型,AI 就把用户忘光了。MemoWeft 给 AI 助手一块带得走的长期记忆——而且不把猜的当真的。Long-term memory for AI assistants: portable across models, and it keeps facts and guesses apart.

Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
29
81.25%
Maintainers
1
Weekly downloads
 
Created
Source
MemoWeft — long-term memory for AI apps, with facts and guesses kept apart

MemoWeft

Portable memory for AI apps — facts, guesses, conflicts, and stale states kept apart.

npm CI coverage runtime deps license

Why · Install · Reference host · Docs

English · 简体中文

MemoWeft reference host demo — chat, watch memory form, and open the memory graph of evidence, events, and cognitions

MemoWeft is a library you import into an AI app. It keeps portable, traceable long-term memory about a user — separating facts from guesses, exposing conflicts instead of silently overwriting them, and letting different hosts reuse the same memory.

Why not just another memory library?

  • Facts and guesses stay apart. Model inferences begin as low-confidence hypotheses, never facts — what the user actually said and what a model guessed are different kinds of record.
  • Conflicts are surfaced, not overwritten. Contradictory information is exposed and kept side by side; MemoWeft never silently picks a winner.
  • Confidence is computed by rule, not self-reported. Each cognition is scored from evidence strength and corroboration — a model never sets its own credibility.

These three, plus typed decay, traceability, and no self-corroboration, make six cognitive disciplines — all backed by numbered eval cases in tests/eval/ (npm test).

60-second install and first call

npm install memoweft   # Node 24: built-in node:sqlite. Node 20/22: also `npm i better-sqlite3`
import { createMemoWeftCore } from 'memoweft';

// No API key, no network — an in-memory db and the public API.
const core = createMemoWeftCore({ dbPath: ':memory:' });
await core.ingestUserMessage({ subjectId: 'user-42', content: 'I only drink decaf after 3pm — caffeine wrecks my sleep.' });

for (const e of core.memory.listEvidence({ subjectId: 'user-42' }))
  console.log(e.sourceKind, '·', e.rawContent); // → spoken · I only drink decaf after 3pm — caffeine wrecks my sleep.

core.close();

That stored one piece of evidence — no key needed. Turning evidence into a recalled profile (distilling facts, exposing conflicts) needs a chat model: see Getting started. No key handy? examples/no-key-demo.ts shows a conflict exposed against an offline stub in ~30 seconds.

Try the reference host

The bundled reference host is a demo, not the product. It shows how an app uses Core — chat with recall, watch memory form, and inspect the evidence → event → cognition graph. Needs Node 24+.

git clone https://github.com/memoweft/memoweft.git
cd memoweft && npm install && npm run build
npm start -w @memoweft/host    # then open http://localhost:7788

More: what the reference host is and is not.

Where to go next

Full documentation index: docs/README.md.

Project status

Pre-1.0 and library-first. Core is implemented and tested, but interfaces may still change between minor releases — stable, experimental, and internal surfaces are documented in the Memory Surface Contract. Zero runtime dependencies.

See the roadmap, contribution guide, and changelog.

License

MIT © 2026 MemoWeft contributors.

Keywords

llm

FAQs

Package last updated on 18 Jul 2026

Related posts