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

pi-journal

v1.0.1

Published

Session journaling extension for pi-coding-agent

Readme

📖 pi-atelier 实战指南 — 从零教会你使用 pi-atelier 扩展生态,包含完整示例和最佳实践。

English | 程序中文文档

pi-journal

源码仓库 | npm

Session journaling extension for pi — automatic session logging, entry indexing, and timeline reconstruction.

Why You Need It

AI coding sessions generate valuable history — decisions made, code changed, errors fixed. But pi's native session files are raw JSONL, hard to read and search. pi-journal turns sessions into structured, searchable journals you can actually use.

Use it when: You want to review past sessions, track decisions, find recurring errors, or share session history with your team.

How It Works

Session Start → Create journal file
        │
        ▼ during session
Tool calls, edits, decisions, errors
        │
        ▼ each event
Journal entry logged (timestamp + type + summary + files)
        │
        ▼ session end
Finalize journal with summary
        │
        ▼
<project>/.pi/journal/<date>-<session-id>.json

Journal files are stored in <project>/.pi/journal/ or ~/.pi/agent/journal/ (global).

Installation

pi install git:github.com/catlain/pi-journal

Journal Format

Each journal entry includes:

| Field | Description | |-------|-------------| | Timestamp | When the event occurred | | Type | edit, command, decision, error, tool_call | | Summary | Human-readable description | | Files | List of affected file paths | | Details | Additional context (error messages, command output, etc.) |

Use Cases

| Scenario | What You Get | |----------|-------------| | Session retrospective | Read a session's journal to see everything accomplished | | Decision log | Track why certain technical decisions were made | | Error patterns | Find recurring errors across sessions | | Audit trail | See exactly what changes were made and when | | Knowledge transfer | Share session journals with team members |

Best Practices

✅ Recommended

  • Commit .pi/journal/ to git — it's valuable project history
  • Review journals after long sessions to catch things you missed
  • Use journal type filters to find specific kinds of events
  • Pair with pi-session-analyzer for deeper session insights

❌ Not Recommended

  • Don't store sensitive data in journal summaries
  • Don't manually edit journal files — they're auto-generated
  • Don't disable journaling for important projects

Limitations

| Limitation | Detail | |------------|--------| | JSONL-based storage | Not a database — search is linear scan | | No real-time streaming | Entries are flushed periodically, not per-event | | Storage growth | Journal files accumulate; consider periodic cleanup | | No cross-project view | Each project has its own journal directory |

Architecture

pi-journal/
├── index.ts       # Entry: register session hooks
├── writer.ts      # Journal file write + flush
├── entry.ts       # Entry type definitions + construction
├── reader.ts      # Journal search + filtering
└── package.json

Dependencies:

  • @earendil-works/pi-coding-agent — ExtensionAPI (peer)

License

MIT