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

cortico-world-diary

v0.1.0

Published

Cortico World:把和主人的事写成一篇篇日记,按月存档,能翻能搜。

Readme

日记 · cortico-world-diary

一个 Cortico World 扩展:把 {{bot}} 和主人之间发生的事写成日记,按月存成 Markdown,能翻能搜。

作者:涛(QQ 1158418105)

它做什么

  • 数据落在部署的 dataDir 下,一个月一个文件:diary-2026-10.md。文件名以 World id 开头,不和别的 World 抢。

  • 条目形态是 Markdown 的一节,人能直接打开读:

    # 日记 · 2026-10 · 涛
    
    ## 2026-10-24 15:20 · 第一次自己装扩展
    
    正文……
  • World 不读 Memory、不读 Persona 的东西;它只管文件。写什么由 bot 在对话里决定。

工具

| 名字 | 作用 | |---|---| | diary_write | 追加一条:标题 + 正文,date 可选,默认今天 | | diary_list | 列出条目(日期、时间、标题),新的在前,可按月过滤 | | diary_read | 读某一天或某个月的全部条目 | | diary_search | 标题与正文里按关键词找,回命中的那一行 |

回执只说文件能证实的事:写进了哪天、当月第几条、命中几条。

配置

config.json 的 worlds.diary 段:

{
  "worlds": {
    "diary": { "enabled": true, "author": "涛" }
  }
}
  • enabled:默认 false,启用后工具才挂上。
  • author:写在每月文件页眉上的署名,热改。

装进实例

cd extensions && corepack pnpm add <这个包的目录或包名>

重启进程后出现在「扩展」页,再到 World 页启用,勾上 worlds.diary.enabled。

开发

corepack pnpm install
corepack pnpm check:extension .
corepack pnpm describe:extension .

契约:cortico.api = 6(world)。