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

@domencai/mori

v1.2.0

Published

飞书优先的对话型个人思想伙伴,基于 pi-agent-core

Readme

mori

一个飞书优先的对话型个人思想伙伴,基于 pi-agent-core 运行时。它不是日记 App,也不是任务执行平台,而是一个很懂我、能跟我交流的厉害朋友:我把日记、想法、有意思的知识丢给它,它读懂我、回应我,并在后台沉淀出越来越准的"关于我"的长期理解。

日记只是输入源,记忆和长期上下文才是产品本体。单用户、本地优先,不做多租户、不做 SaaS。

关于这个名字

mori,日语「森」,森林。这个字本身是三棵「木」叠起来的,木 → 林 → 森,越叠越繁茂。

选它是因为森林是「涌现」最好的例子:没人设计一片森林,一粒种子、无数生命相互作用,它自己长成繁茂的样子。一个真正懂你的伙伴也一样——那种「懂」不是预先设定出来的,是你把日记、想法、在意的东西丢给它,它读你读多了,自己慢慢长出来的。它本身就是一次涌现。

还有个意外的呼应:在希伯来语里,mori 是「我的老师」,也门犹太社区用它称呼拉比(rabbi)。一个陪你想事情、偶尔点破你盲点的伙伴,叫这个名也合适。

所以它不叫 personal-agent 那种功能名。它是一片只属于你自己的、安静繁茂的森林。

能做什么

  • 日记群:把日记发到日记群,流式回复像朋友聊天,后台顺手写一条 episode。
  • 五层记忆:身份画像(慢变、受保护)/ 当前主线(跨线阶段与主题)/ storylines(正在展开的生活叙事)/ fresh episodes / 原文归档(FTS 检索),始终在场而不膨胀。
  • 每日记忆整理:每天 06:00 处理前一天的 fresh episodes,维护 storylines,并在严格节流下判断是否轻触达。
  • 周度总结:每周日 23:55 读本周 daily runs、storylines 和 episode evidence,保守更新画像与当前主线,并发周记录。

完整文档入口见 文档总览,设计历史见 Design Index

快速开始

需要 Node ≥ 22.19。普通用户不需要预装 pnpm。

一键安装

npx @domencai/mori@latest install

安装器会依次引导选择 API 协议、填写 Base URL 和 API key、选择 normal / strong 模型、扫码绑定飞书,并询问是否立即后台启动。以后需要重新配置时运行:

mori setup

本地开发(数据落在项目内 ./data,热重载):

pnpm install
# 配置 LLM:编辑 data/setting.json 选模型,在 .env 填对应的 API key
pnpm dev            # 首次会弹出二维码,用飞书 App 扫码创建/授权应用

也可以直接全局安装:

npm install --global @domencai/mori@latest
mori setup

详见 开发指南CLI 使用指南

飞书里的命令

| 命令 | 作用 | |---|---| | /help | 查看命令列表 | | /new-diary-group | 创建日记群 | | /new-clip-group | 创建唯一收藏群 | | /clip <链接或文字> | 直接收藏链接或文本;回复通知时可只发 /clip | | /new-chat <主题> | 创建持续主题群 | | /new | 重置当前会话 | | /compact | 压缩当前会话上下文 | | /save [备注] | 保存当前 session segment 内最近 60 条 user/assistant 文本 | | /think <内容> | 顺着「为什么会这样」往下钻 | | /rank <内容> | 把一个领域降到两三根生成现象的线 | | /plain <内容> | 用大白话把概念讲到能复述 | | /consolidate | 手动触发周度合并 | | /profile | 查看身份画像(配合自然语言纠错) | | /profile history | 查看画像变更历史 | | /chapter | 查看当前主线 | | /chapter history | 查看当前主线变更历史 | | /storylines | 查看 active + recent dormant 叙事线 | | /storyline <id> | 查看单条叙事线 | | /dream | 查看最近 daily_memory runs | | /schedules | 查看和开关定时任务 |

运维技能(任意 agent 可用)

.claude/skills/ 下放了两个与具体 agent 无关的 skill,用自然语言就能让 agent 代办 mori 的安装、升级和定时任务接入。SKILL.md 是开放的纯文本格式,任何支持 skills 的 agent(Claude Code、Codex、Cursor、OpenCode 等)都能加载;即便你的 agent 不支持 skills,每个 skill 的 scripts/ 都是可直接运行的纯 Node/bash 脚本(零额外依赖),手动 node .claude/skills/<技能>/scripts/<脚本>.mjs 也能跑。

| 技能 | 能做什么 | 触发示例 | |---|---|---| | deploy-mori | 安装 / 升级 / 体检 mori:全新安装(装依赖 + 全局 link + 引导飞书扫码)、源码升级(git pull → 必要时重建 → 迁移 setting.json → 按需重启)、配置体检(文件 / key / 飞书 & LLM 真实连通测试)。 | 「帮我把 mori 装起来」「升级到最新版」「检查配置对不对」 | | add-mori-schedule | 新增一个自定义定时任务:支持纯 script 抓取投递、agent inline prompt 简单提醒、agent task script 结构化选择;可询问并写入 agent 任务使用的模型档位。 | 「加个定时任务,每天 9 点抓 xxx 接口投喂」「加个 agent 调度」 |

文档

  • 文档总览 —— 当前功能文档入口和覆盖矩阵
  • 飞书命令 —— 群、会话、画像、storylines、定时任务命令
  • 记忆模型 —— 当前 profile / chapter / storylines / episodes / daily memory 语义
  • 知识库 —— vault、收藏群、/clip/save 和知识工具
  • 定时任务 —— builtin、script / agent 投喂和收藏周报
  • 配置参考 —— runtime root、配置文件、模型路由和提示词位置
  • 会话与冷却规则 —— scope、续聊、新会话、thread/topic 冷却
  • 开发指南 —— 本地怎么跑、改提示词、看日志、调试
  • CLI 使用指南 —— 安装、守护进程、配置与日志位置
  • Design Index —— dated design 目录入口和新旧优先级