npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@deltamind/core

v1.0.1

Published

Typed deltas, state model, reconciliation, and provenance for active context compaction

Downloads

216

Readme


这是什么?

@deltamind/core 是 DeltaMind 的运行时引擎,DeltaMind 是一种系统,它用 状态作为记忆 来替代传统的“转录作为记忆”的方式,用于人工智能代理。

与重新阅读旧消息不同,代理会发出带有类型信息的增量数据(目标集、决策、约束、任务、修订等),这些增量数据会被整合到一个规范的状态中。该状态可以被导出为带有令牌限制的上下文块,供任何下游应用使用。

安装

npm install @deltamind/core

快速开始

import { createSession } from '@deltamind/core';

const session = createSession();

session.ingest({
  role: 'user',
  content: 'Build a REST API for the inventory service'
});

const result = session.process();
// result.accepted → deltas that passed reconciliation
// result.rejected → deltas that violated invariants

const context = session.exportContext({ maxChars: 4000 });
// Token-budgeted state block ready for any LLM

关键概念

  • 增量数据 (Deltas) — 带有类型信息的状态变化(11种类型:目标集、决策、约束、任务、修订、偏好、上下文锚点、开放式问题、洞察、假设、依赖关系)
  • 整合 (Reconciliation) — 强制执行 7 条不变性规则(例如:不允许重复、不允许矛盾、仅允许修订等)
  • 溯源 (Provenance) — 完整事件日志,记录了哪些内容被接受、被拒绝以及原因。
  • 语义 ID (Semantic IDs) — 基于内容的内容寻址身份,用于在对话过程中进行去重。
  • 上下文导出 (Context export) — 按照优先级排序、考虑预算的状态呈现。

链接

许可证

MIT