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

v0.3.1

Published

Comfortable input and interactive panel styling for Pi's TUI.

Downloads

108

Readme

pi-comfy-ui

Comfortable input and interactive panel styling for Pi's interactive TUI.

pi-comfy-ui preview

Install

pi install npm:pi-comfy-ui

Project-local install only:

pi install -l npm:pi-comfy-ui

Then restart Pi, or run /reload if Pi is already open.

Project-local installs apply only after Pi has loaded project extensions, so any pre-extension approval UI keeps Pi's default styling.

Configure

pi-comfy-ui only styles Pi's TUI. It does not read, set, or override Pi padding settings.

For spacing, configure Pi's native settings directly. These values usually feel best with pi-comfy-ui:

{
  "editorPaddingX": 1,
  "outputPad": 1
}

Settings locations:

  • Global/user settings: ~/.pi/agent/settings.json
  • Project/local settings: .pi/settings.json (overrides global)

Padding notes:

  • editorPaddingX is Pi's native inner input/editor padding.
  • outputPad is Pi's native horizontal padding for user messages, assistant messages, and thinking output.
  • pi-comfy-ui no longer supports contentPaddingX or PI_CONTENT_PADDING_X because Pi already provides native padding settings.
  • Outer terminal padding should be configured in your terminal emulator, for example Ghostty/WezTerm/kitty terminal padding options.

Styling notes:

  • The input/editor background is painted from the active theme token customMessageBg.
  • Interactive prompt panels, such as settings, model selection, confirms, selects, and structured questions, are painted from the active theme token userMessageBg.
  • The input/editor keeps Pi's original editor border color, but renders that border on the left and right sides only; Pi's native top/bottom editor border is hidden.
  • Interactive prompt panels keep Pi's original border line color, but replace the top/bottom border shape with left/right side rails.
  • If another extension already provides a custom editor, pi-comfy-ui keeps that editor and does not replace it.

How it works

pi-comfy-ui uses Pi's public custom editor API, ctx.ui.setEditorComponent(), and extends Pi's CustomEditor so app-level keybindings and native editorPaddingX behavior continue to work.

Pi does not currently expose a dedicated panel-rendering extension API. Interactive panel styling uses explicit known-path patches: pi-comfy-ui patches known Pi component render methods, selected InteractiveMode inline panel methods, and the ask_user_question custom UI path. Unknown components and custom UIs are left unchanged.

Supported styling is limited to exported Pi components, selected InteractiveMode chat/reload paths, and the ask_user_question custom UI path. It does not style unexported selectors such as scoped-models or Trust, intercept the root TUI or generic overlays, change render width, or add outer padding.

For transcript/output spacing, use Pi's built-in outputPad setting instead of extension-level root padding.