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-short-links

v0.2.2

Published

Shorten long URLs and file paths in Pi assistant output so OSC 8 / click targets fit the pane width.

Readme

Pi Short Links

Join dotfield.xyz on Discord

CI Publish npm version npm downloads License: MIT Pi package Trusted Publishing

Shorten long URLs and file paths in Pi assistant output so links fit the pane and stay clickable.

What this is

Pi Short Links is a TypeScript Pi package that rewrites long bare http(s) URLs and absolute/~/ paths in assistant text into short markdown links ([host/…tail](full-url), [~/dir/…/file](file://…)). When FORCE_HYPERLINK=1 or TERM_PROGRAM=Orca, it also forces Pi TUI OSC 8 hyperlinks on. Fenced code blocks are left untouched.

Features

  • Pane-width-aware shortening for bare http(s) URLs.
  • Absolute / ~/ path shortening with file:// targets.
  • Forces OSC 8 hyperlinks when FORCE_HYPERLINK=1 or TERM_PROGRAM=Orca.
  • Skips content inside fenced code blocks.
  • Does not rewrite existing markdown links' destinations.

Install

Install the published npm package with Pi:

pi install npm:pi-short-links

Pin a specific version when you want reproducible installs:

pi install npm:[email protected]

Install into the current project instead of your user Pi settings:

pi install npm:pi-short-links -l

Or install from GitHub:

pi install git:github.com/eiei114/pi-short-links

Try it without permanently installing:

pi -e npm:pi-short-links

Quick start

Try the local checkout without permanently installing it:

FORCE_HYPERLINK=1 pi -e .

Then send a message containing a long URL or absolute file path and confirm it renders as a short clickable link.

Package contents

| Path | Purpose | |---|---| | extensions/short-links.ts | Assistant-text shortening hook and OSC 8 force | | lib/shorten.ts | URL/path shortening logic | | docs/release.md | Trusted Publishing and release flow | | README.md | GitHub and npm package entrypoint | | CHANGELOG.md | Versioned release notes | | LICENSE | MIT license |

Development

npm install
npm run ci
npm run smoke:pi
npm pack --dry-run
FORCE_HYPERLINK=1 pi -e .

npm run smoke:pi launches the locally pinned Pi SDK in an isolated temporary agent directory, verifies the actual extension over RPC, and uses a local deterministic provider response (no paid inference or global Pi settings). CI runs this smoke as part of npm run ci.

Release

This package is set up for npm Trusted Publishing, so no NPM_TOKEN is required.

npm version minor
git push

See docs/release.md for setup details.

Docs

Security

Pi packages can execute code with your local permissions. Review extensions before installing third-party packages.

For vulnerability reporting, see SECURITY.md.

Links

  • npm: https://www.npmjs.com/package/pi-short-links
  • GitHub: https://github.com/eiei114/pi-short-links
  • Issues: https://github.com/eiei114/pi-short-links/issues

License

MIT