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

@webboxes/pi-session-manager-tui

v0.1.1

Published

TUI session manager for pi: fuzzy search, browse, view history, rename, fork, resume, and delete sessions.

Downloads

249

Readme

pi-session-manager-tui

A TUI session manager for pi - browse, fuzzy search, view history, rename, fork, resume, and delete sessions across every project, without leaving the terminal.

Built entirely with pi's own TUI component library (@earendil-works/pi-tui) and the extension UI surface (ctx.ui.*).

Features

  • Fuzzy search across every session - matches the display name, working directory, first message, and the full text of every message in history.
  • Browse all sessions (sorted by most recent), with message count, age, and project path.
  • View history - scroll through a session transcript with ↑↓ / PgUp / PgDn / Home / End, then exit back.
  • Rename any session with a quick input dialog.
  • Fork a session into a new one carrying the full history.
  • Resume (launch) any session.
  • Delete sessions with a confirm guard.

Install

pi install git:github.com/musichen/pi-session-manager-tui

Or try it without installing:

pi -e git:github.com/musichen/pi-session-manager-tui

Local dev:

pi -e ./src/index.ts
# or, for auto-discovery while editing:
#   ln -s "$(pwd)" ~/.pi/agent/extensions/pi-session-manager-tui

Usage

Run /pi-session-manager-tui from any session. The main view opens:

pi session manager
search › (type to fuzzy search)▌
─────────────────────────────────
❯ refactor auth flow      42 msgs · 2h ago · ~/work/app
  fix scroll state        18 msgs · 1d ago · ~/work/app
  ...
─────────────────────────────────
↑↓ navigate · type to search · enter open · esc back/exit

Selecting a session opens the actions menu:

  • Resume session - switch into it
  • View history - scrollable transcript
  • Rename - set a display name
  • Fork - start a new session from this one
  • Delete - remove the session file (with confirmation)
  • Back - return to the list

Keybindings

| Key | Action | | --- | ------ | | / | navigate | | type | fuzzy filter the list | | enter | open / choose | | esc | clear search, then go back / exit | | backspace | edit search | | PgUp / PgDn | jump history | | Home / End | start / end of history |

How it works

  • Lists sessions via SessionManager.listAll(), which reads ~/.pi/agent/sessions/.
  • Search uses pi-tui's fuzzyFilter over the concatenated session text.
  • History is rendered from the session JSONL entries (SessionManager.open(path).getEntries()).
  • Rename appends a session_info entry; fork uses SessionManager.forkFrom; resume uses ctx.switchSession.
  • UI is composed from SessionListView / ActionsView / HistoryView custom components (see src/components.ts).

Structure

src/
├── index.ts        # registers /pi-session-manager-tui + view state machine
├── components.ts   # SessionListView, ActionsView, HistoryView
└── sessions.ts     # list/search/rename/fork/delete + transcript helpers

License

MIT