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

@maxpaulus/pi-linear

v0.3.2

Published

Linear OAuth and issue tools for Pi

Readme

pi-linear

A Pi package that connects Pi to Linear through OAuth and exposes tools for:

  • reading an issue and its comments (linear_get_issue)
  • searching issues by text, assignee email, team, state, project, label, or priority (linear_search_issues)
  • posting a comment (linear_comment_issue)

linear_get_issue includes up to 50 comments and 50 attachment links with their metadata. Tool output is compact by default in Pi’s TUI; expand a tool row to inspect its full JSON result.

Install

From a checkout:

pi install /path/to/pi-linear

For one run:

pi -e /path/to/pi-linear

Personal API key (recommended for local use)

Create a personal API key in Linear under Settings → Security & Access → Personal API keys, then start Pi with it:

export LINEAR_API_KEY="lin_api_..."
pi

The key is used directly by the Linear SDK and is never written to disk. It takes precedence over a stored OAuth token.

OAuth setup

Use OAuth when you can create a Linear OAuth application. Register a local callback, for example http://localhost:3000/oauth/callback. 2. Start Pi with its credentials in the environment:

export LINEAR_CLIENT_ID="..."
export LINEAR_CLIENT_SECRET="..." # optional for public OAuth applications
export LINEAR_REDIRECT_URI="http://localhost:3000/oauth/callback"
pi
  1. Run /linear-login. Pi starts a temporary callback server, opens Linear in the browser, validates OAuth state, and uses PKCE (S256) when exchanging the authorization code.

The access token is stored only at ~/.pi/agent/linear.json with owner-only permissions. Set PI_LINEAR_CONFIG_PATH to use a different location. Run /linear-logout to remove it.

LINEAR_REDIRECT_URI must exactly match the application redirect URI and must be an http://localhost, http://127.0.0.1, or http://[::1] URL so the extension can safely receive the callback.

Development

npm install
npm run typecheck
npm test

To enable changelogger functionality, run:

npx changelogger install