@duarteocarmo/pi-preview

Preview the latest Pi response as HTML.

Packages

Package details

extension

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

$ pi install npm:@duarteocarmo/pi-preview
Package
@duarteocarmo/pi-preview
Version
0.1.9
Published
Aug 28, 2026
Downloads
1,616/mo · 29/wk
Author
duarteocarmo
License
unknown
Types
extension
Size
1.4 MB
Dependencies
2 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ],
  "video": "https://github.com/user-attachments/assets/e20266b6-7ab8-4812-9846-26be5f2d53a4",
  "image": "https://raw.githubusercontent.com/duarteocarmo/pi-tools/master/packages/pi-preview/preview.png"
}

Security note

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

README

pi-preview

npm package Pi package

Pi Preview opens the latest assistant response as an HTML page in your browser. Use /preview when you want to read the response outside the terminal.

Pi Preview

Demo

Install

Install only Pi Preview from npm:

pi install npm:@duarteocarmo/pi-preview

Install every Pi package in this repository from Git:

pi install git:github.com/duarteocarmo/pi-tools

Part of pi-tools.