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

@zmzai/agent-framework

v0.9.0

Published

PI-based agent framework — sessions, permissions, tools, runner, events (OpenCode-style).

Readme

@zmzai/agent-framework

zmzai 生态的 coding agent 内核库——sessions、permissions、tools、runner、events(OpenCode 风格事件溯源)。

自 zmzai-agent/packages/agent-framework 经 git subtree split 抽出为独立仓库,git 历史完整保留。

消费方

  • zmzai-agent(平台应用):Mongo workspace / skills / memory recall 装配
  • zmzai-harness(本地工作台):fs workspace / 多项目 / terminal / checkpoints 装配

两端均以 link:../zmzai-framework 消费;开发 framework 时跑 npx tsc -p tsconfig.build.json --watch(或 pnpm run build:watch,如已配置),两端 dev server 重载即生效。

开发

pnpm install
pnpm run typecheck   # tsc --noEmit
pnpm test            # vitest run
pnpm run build       # tsc -p tsconfig.build.json → dist/

能力地图

| 模块 | 位置 | 说明 | |---|---|---| | 会话与消息 | src/core/session/ | jsonl / SQLite(node:sqlite)双存储 | | 事件流 | src/core/events/ | 事件溯源 + seq 重放(manifest 定义 schema) | | 工具集 | src/core/tools/ | read/glob/grep/write/edit/bash/terminal/git/todo/apply_patch/web… | | 权限引擎 | src/core/permissions/ | ruleset LAST-match + approvalMode 档位 | | 压缩 | src/core/runtime/compaction.ts | 投影式 compaction(不改历史) | | 沙箱 | src/adapters/subprocess-sandbox.ts | 快照 + 产物回写(本机单用户形态) | | 模型接入 | src/adapters/openai-provider.ts | relay/OpenAI 兼容 + failover + reasoningEffort |

版本策略

changesets 管理:feature → minor,fix → patch。合入 main 前跑 pnpm changeset 提交变更集;Release workflow 自动汇总版本、开 "Version Packages" PR,合并后自动 build + npm publish + 打 tag。