pi-open-message-in-browser

Opens the last assistant response in a browser with GitHub styling and Mermaid support

Packages

Package details

extension

Install pi-open-message-in-browser from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-open-message-in-browser
Package
pi-open-message-in-browser
Version
0.1.3
Published
Jul 3, 2026
Downloads
682/mo · 40/wk
Author
happytomatoe
License
unknown
Types
extension
Size
114.6 KB
Dependencies
3 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "index.ts"
  ]
}

Security note

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

README

pi-open-message-in-browser

Pi extension to open the last assistant message in a browser with Github flavor markdown preview and Mermaid support.

❓ The Problem

Reading a wall of markdown text in terminal is not a great experience. Better way is to open that in a browser with markdown and mermaid support

🛠️ Installation

To install this tool using pi, run:

pi install npm:pi-open-message-in-browser

📖 Usage

/open-message-in-browser
# To change settings - browser and file path
/open-message-in-browser:settings

🏗️ How it works

graph LR
    A[pi Agent] -- trigger --> B[pi-open-message-in-browser]
    B -- fetches --> C[Last Assistant Message]
    C -- renders --> D[HTML + Markdown/Mermaid]
    D -- writes to --> E[Local File System]
    E -- opens in --> F[Web Browser]

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📜 License

This project is licensed under the MIT License.