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-attention-span

v0.1.0

Published

Attention Span output styles for pi — ADHD-friendly, Spartan, and Rundown modes. Port of alexgreensh/attention-span.

Readme

pi-attention-span

Port of alexgreensh/attention-span for the pi coding agent.

Output styles that change how the agent talks to you, not how it codes. Answer-first, plain English, easy to skim. Same engineering ability underneath — only the delivery changes.

Styles

| Style | Best for | |-------|----------| | attention-kind | ADHD, attention fatigue, anyone tired of walls of text | | spartan | Maximum signal, zero warmth, heads-down work | | rundown | Briefings, standups, progress updates (TL;DR + checkboxes) |

Features

  • /style — interactive picker or direct switch (/style spartan)
  • --style attention-kind — start with a style via CLI flag
  • Ctrl+Shift+A — cycle styles mid-session
  • Footer status (◐ attn, ◐ spartan, ◐ rundown)
  • Session persistence via pi.appendEntry() (survives /reload and /resume)
  • Optional default in global/project config
  • Deliverable purity is in the style prompts themselves

Install

# Quick test
pi -e /path/to/pi-experiments/attention-span/index.ts

# Auto-load (global)
mkdir -p ~/.pi/agent/extensions
cp -r /path/to/pi-experiments/attention-span ~/.pi/agent/extensions/attention-span

# Or as a package
pi install ./attention-span

Usage

pi --style attention-kind "explain the auth flow"

/style
/style spartan
/style default     # turn off

# Cycle
Ctrl+Shift+A

Priority: --style > last style in this session > config defaultStyle > off.

How it works

Each style is appended to the system prompt on before_agent_start. A marker comment prevents double-injection.

Live style is stored as a custom session entry (attention-span). That is the documented way to keep extension state across reloads.

Config

Optional default only. Write these files yourself:

~/.pi/agent/attention-span.json (global) and <cwd>/.pi/attention-span.json (project, trusted projects only):

{
  "defaultStyle": "attention-kind"
}

Project config wins over global. CLI --style wins over both.

License

AGPL-3.0 (same as upstream).