@calesennett/pi-hn

Hacker News front-page reader extension for pi

Packages

Package details

extension

Install @calesennett/pi-hn from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@calesennett/pi-hn
Package
@calesennett/pi-hn
Version
0.1.5
Published
May 24, 2026
Downloads
399/mo · 14/wk
Author
calesennett
License
MIT
Types
extension
Size
584.5 KB
Dependencies
2 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/hn.ts"
  ],
  "image": "https://raw.githubusercontent.com/calesennett/pi-hn/main/assets/pi-hn.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-hn

A simple Hacker News front-page reader extension for pi.

pi-hn screenshot

Features

  • /hn command opens a selectable front-page list
  • j/k (and arrow keys) navigate the list
  • a or Enter opens the article URL
  • x fetches and parses the selected article (via Readability) and adds it to session context for follow-up prompts
  • c opens comments in browser
  • Read tracking is stored in a local JSON file at ~/.pi/agent/data/pi-hn/db.json (or $PI_CODING_AGENT_DIR/data/pi-hn/db.json)

Install

pi install npm:@calesennett/pi-hn

Local development

In this repo, load the extension directly:

pi -e ./extensions/hn.ts