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

@tomsun28/pizza

v0.1.4

Published

Pizza - Pizza is an event-driven agent. Every conversation, tool call, and file edit is an event in an immutable log. Your UI, the LLM context, and the session tree are all projections of that log.

Readme

Pizza

Pizza 是一个事件驱动的 agent。你的每一次对话、工具调用和文件修改,都是不可变日志里的一条事件。UI、LLM 上下文和会话树,都只是这条日志的投影。

English

关于它

Pizza 的表壳来源于 Pi -> Pizza, 感谢 Pi 的开源。

  • Reactor 驱动的 turn 循环 区别于 Pi, Claude Code, Codex,Pizza 没有用一个脆弱的 while true 循环来跑 agent 主循环。每一次 turn 都是一张事件-处理器表驱动的状态机。结果是:中断、重试、并行工具调用、turn 内失败都能被可靠处理。

  • 日志是唯一事实来源 每一条消息、每一次模型调用、每一个工具结果、每一次文件变更,都会被写入不可变的 EventStore(SQLite)。UI、LLM 上下文、会话树都是这条日志的实时投影。状态不再藏在可变对象里 —— 它可以被重建、审计、回放,因为日志就是唯一的事实来源。

  • 只有一个执行工具 - CLI JSON 在 API 层对程序处理友好但对模型可不是,Pizza 激进的只提供给模型一个工具 - CLI Tool, 模型通过其来调用 readwriteedit 和其它命令行命令,出乎意料的是,它表现的更好更稳。

  • 为什么要 New Session 在 Pizza 中你不需要手工去新建会话,把它看作你可以持续聊十年的朋友的长程任务,朋友自己会去管理好自己的上下文。

  • 所有界面共享同一个运行时 交互式 TUI、JSON-RPC 服务、单次打印模式都消费同一个 SessionFacade 的事件流。你可以脚本化它、嵌入它,或者直接在终端聊天 —— 它是同一个 agent。

  • Git Log 一样的分支树记忆 会话可以从任意一条历史消息分叉。回退、分支、对比。随时随地重开人生。

快速开始

npm install -g @tomsun28/pizza
export ZAI_API_KEY=your_zai_api_key
pizza