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

@pithos-kit/squiggle

v0.6.0

Published

Quietly polish grammar and spelling in your Pi prompts.

Readme

squiggle

Quietly polish grammar and spelling in your pi prompts.

The extension intercepts user input, shows a squiggling... spinner while processing, corrects spelling and grammar using a configured model, shows a colored diff, and submits the corrected prompt automatically without confirmation. Named after the red squiggle from your favorite spell-checker.

Install

pi install npm:@pithos-kit/squiggle

Pin to a version:

pi install npm:@pithos-kit/squiggle@<version>

For local development from a checkout of pithos-kit:

pi install ./pithos.squiggle

Project-local install:

pi install ./pithos.squiggle -l

Temporary test run:

pi -e ./pithos.squiggle

Pithos .pithos config

pi:
  extensions:
    "@pithos-kit/squiggle": "npm:0.6.0"

Configuration

Run /squiggle config to choose an exact correction model from providers with configured authentication, just like Translate's model picker. If none are available, run /login first. The picker opens directly and saves to <cwd>/.pi/squiggle.json (honors Pi's configured project directory name). There is no session or user-level model configuration.

Model precedence is SQUIGGLE_MODEL > project > default. An environment override may still take precedence after saving, which the completion message shows. Cancelling the picker changes nothing. Existing file fields are preserved, and malformed files are not overwritten.

You can still edit .pi/squiggle.json directly:

{
  "mode": "on",
  "model": "openai-codex/gpt-5.4-mini",
  "maxInputChars": 500,
  "timeoutMs": 10000
}

Options:

  • mode: "on" or "off"
  • model: exact pi model spec in provider/model format (model IDs may contain additional slashes)
  • maxInputChars: maximum input length to send to the correction model
  • timeoutMs: correction deadline in milliseconds, from 1000 to 60000 (default: 10000)

Environment variables override the project config (except the session on/off toggle):

SQUIGGLE_MODE=off pi
SQUIGGLE_MODEL=openai-codex/gpt-5.4-mini pi
SQUIGGLE_MAX_CHARS=1000 pi
SQUIGGLE_TIMEOUT_MS=15000 pi

Commands

Inside pi:

/squiggle toggle          # switch between on/off
/squiggle config          # choose and save the correction model
/squiggle --help          # show toggle/config usage
/squiggle-status          # show status
/squiggle-status --help   # show status-command usage

-h is accepted wherever --help is shown.

The toggle state is saved in the current pi session and overrides .pi/squiggle.json and environment configuration for that session.

The default correction model is openai-codex/gpt-5.4-mini. Squiggle uses only the exact configured model, never silently substituting the active coding model. /squiggle-status shows its exact ID, configuration source, and whether it is missing from the registry. Missing models or failed authentication leave the original prompt unchanged.

If authentication or correction exceeds the configured deadline, Squiggle cancels the request, clears the spinner, and submits the original prompt unchanged. Session shutdown, reload, and an active Pi cancellation signal also cancel in-flight correction.

Notes

This package imports pi runtime packages as peer dependencies:

  • @earendil-works/pi-ai
  • @earendil-works/pi-coding-agent

Do not bundle those dependencies; pi provides them at runtime.