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-ui-minimal

v1.1.1

Published

Minimal UI extension for Pi that hides footer info and removes dashed borders around the user input for a cleaner TUI experience.

Readme

Pi UI Minimal Extension

A minimal UI extension for Pi coding agent that provides a cleaner TUI experience by:

  1. Hiding the footer - Removes the default footer information (context size, model, tokens, cost)
  2. Removing dashed borders - Eliminates the horizontal dashed lines above and below the user input area

Installation

Place this extension in your Pi extensions directory:

cp -r /path/to/pi-ui-minimal ~/.pi/agent/extensions/

Usage

Once installed, the extension will automatically activate on session start. No additional configuration is required.

What It Does

Hides Footer

The extension replaces the default footer with an empty one, giving you more vertical space for content.

Removes Editor Borders

The default editor component renders with dashed lines:

──────────────
User input here
──────────────

This extension removes those borders:

User input here

Prompt Variables

The editor shows a bold prompt with customizable variables:

[main 14:30:45] my-app > Type your message here

Available variables: | Variable | Description | Example | |----------|-------------|----------| | %d | Directory basename | my-app | | %D | Full directory path | /Users/me/Projects/my-app | | %cf% | Context fill percentage | 45% | | %gb% | Git branch name | main | | %gs% | Git status indicators | *+~ | | %td% | Time (HH:MM:SS) | 14:30:45 | | %% | Literal percent sign | % |

Git status indicators:

  • * - Modified files (unstaged)
  • + - Staged changes
  • ~ - Untracked files

Configuration

Environment Variable (PI_PS1)

Set the PI_PS1 environment variable to customize the prompt format:

export PI_PS1="%d > "           # Directory: "my-app > "
export PI_PS1="[%gb% %td%] %d > "  # Branch + time: "[main 14:30:45] my-app > "
export PI_PS1="%cf% %d > "       # Context %: "45% my-app > "
export PI_PS1="> "               # Simple prompt

Command (/prompt-prefix)

Use the /prompt-prefix command to set the prompt dynamically:

/prompt-prefix "%d > "
/prompt-prefix "%cf% %gb% > "
/prompt-prefix

Run /prompt-prefix without arguments to see the current prefix and all available variables.

Priority

  1. If PI_PS1 is set, it takes precedence
  2. Otherwise, uses saved prefix from ~/.config/pi-ui-minimal/config.json
  3. /prompt-prefix saves to config and persists across sessions

How It Works

The extension is split into two concerns:

FooterManager (extensions/FooterManager.ts)

  • createEmptyFooter() - creates an empty footer component
  • hideFooter() - installs the empty footer via ctx.ui.setFooter()

MinimalEditor (extensions/MinimalEditor.ts)

  • Extends CustomEditor to preserve all editor functionality
  • Overrides render() to strip the first and last lines (borders)
  • Maintains full autocomplete, history, and input handling

The entry point (extensions/index.ts) combines both modules on session_start.

Benefits

  • Cleaner interface - Less visual noise, more focus on content
  • More space - Extra vertical space without the footer and borders
  • Preserved functionality - All editor features remain intact
  • Minimal overhead - Simple implementation with no performance impact

Technical Details

  • Built with TypeScript for type safety
  • Extends the official CustomEditor class from @mariozechner/pi-coding-agent
  • Compatible with all Pi themes and configurations
  • Zero configuration required

License

MIT