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

@zigai/pi-settings-ui

v1.1.0

Published

Schema-driven TUI editor for Pi extension settings.

Readme

Pi Settings UI

Edit extension-owned Pi settings through a schema-driven terminal interface. The editor discovers the generated schemas installed by @zigai/pi-extension-settings and turns them into validated, reusable controls.

  • Pi's regular settings selector as the first tab, followed by one tab per extension.
  • A compact active-tab header and searchable Ctrl+P switcher that scale to large extension sets.
  • Global and trusted-project scopes for extension-owned settings.
  • Native toggles, searchable choices, sliders, path completion, color previews, text, and number controls plus nested editors for lists, records, maps, and unions.
  • Humanized, grouped labels with aligned values, descriptions, constraints, and override state.
  • Atomic, conflict-checked saves that leave malformed settings untouched.

Pi 0.84 renderer mode and fullscreen scrollbar changes are saved from the Pi tab and take effect in the next Pi session. Pi does not currently expose live renderer switching to extensions.

Install

pi install npm:@zigai/pi-settings-ui

Schema controls

Extension schemas may use the optional x-control JSON Schema keyword to state presentation intent that ordinary types and constraints cannot express. With TypeBox, pass it as a quoted schema option:

Type.String({ "x-control": "textarea" });
Type.String({ "x-control": "path" });
Type.Integer({ minimum: 1, maximum: 20, "x-control": "slider" });
Type.String({ "x-control": "combobox", examples: ["accent", "warning"] });

| x-control | Compatible schema | TUI behavior | | --- | --- | --- | | text | string | Single-line inline input. | | textarea | string | Pi's multiline editor. | | switch | boolean | Boolean toggle. | | segmented | primitive choices | Compact choice changed with Left and Right. | | select | primitive choices | Searchable choice picker. | | slider | number or integer | Compact range bar; Left and Right step by multipleOf or the numeric default, while Enter accepts an exact value. | | numeric | number or integer | Single-line numeric input. | | color | string | Single-line color input with a live swatch for hexadecimal colors. | | path | string | Single-line path input; Tab completes files and directories relative to Pi's working directory or ~. | | combobox | string or string-only union | Searchable suggestions from string examples or finite string branches, plus a custom schema-validated value. | | json-editor | any schema | Full validated JSON editor instead of a shape-derived control. |

Configuration

Global settings are stored in ~/.pi/agent/extension-settings/pi-settings-ui.json.

| Option | Type | Default | Description | | --- | --- | --- | --- | | projectOverrides | boolean | true | Let trusted projects have their own extension settings. |

{
  "$schema": "./schemas/pi-settings-ui.schema.json",
  "projectOverrides": true
}

Development

just --justfile ../../Justfile setup
npm run build --prefix ../..
just coverage

License

MIT