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-obsidian-preview

v1.2.1

Published

Open the last Pi assistant response in Obsidian — /preview command and configurable keyboard shortcut

Downloads

87

Readme

pi-obsidian-preview

Open the last Pi assistant response in Obsidian, to preview and render Markdown, LaTex, code, diff, mermaid, and more. Inspired by pi-markdown-preview, but using obsidian's markdown rendering engine for further extensibility.

Install

Per-project (only active when pi runs from your vault):

cd ~/your-vault
pi install -l npm:pi-obsidian-preview

Global (active everywhere — set PI_OBSIDIAN_VAULT_PATH in your shell profile first):

export PI_OBSIDIAN_VAULT_PATH="$HOME/your-vault"   # add to ~/.zshrc
pi install npm:pi-obsidian-preview

Usage

| Action | How | |---|---| | Open last response in Obsidian | Type /preview in pi | | Keyboard shortcut | Ctrl+Shift+B (optional — use /preview instead if you prefer) |

The extension writes the last assistant response to pi-preview-latest.md in your vault root and opens it in Obsidian.

visual-explain skill

This package includes a skill that tells the agent it can use Obsidian's full rendering palette — Mermaid diagrams, LaTeX math, callouts, and rich formatting — to explain concepts visually. The agent produces rich responses in chat; you preview them with /preview.

| Trigger | How | |---|---| | Ask for explanation or visualization | Auto-activates on phrases like "help me visualize it", "show me", "draw a diagram", "explain how X works" | | Invoke explicitly | /skill:visual-explain |

What the agent can generate:

  • Mermaid diagrams — flowchart, sequenceDiagram, classDiagram, stateDiagram, erDiagram, gantt, pie, gitGraph, mindmap, timeline, and more
  • LaTeX math$inline$ and $$block$$ (math topics only)
  • Obsidian callouts> [!note], > [!warning], > [!tip], and 13 more types, with custom titles and foldable variants
  • Other formatting — highlight, strikethrough, task lists, footnotes, wikilinks, hidden comments, block anchors, YAML frontmatter

Prerequisites

  • Obsidian CLI on PATH — install via Homebrew: brew install obsidian
  • Per-project: run pi from your vault root (cd ~/your-vault && pi)
  • Global: set PI_OBSIDIAN_VAULT_PATH (see below)

Configuration

Both environment variables are optional. Only set what you need.

| Env var | When to set | Default | |---|---|---| | PI_OBSIDIAN_VAULT_PATH | Only for global installs (skip for per-project) | Current directory | | PI_OBSIDIAN_PREVIEW_SHORTCUT | Only to change the default shortcut | ctrl+shift+b |

Add to ~/.zshrc or equivalent:

# Required for global installs:
export PI_OBSIDIAN_VAULT_PATH="$HOME/your-vault"

# Optional — customize the shortcut:
export PI_OBSIDIAN_PREVIEW_SHORTCUT="ctrl+shift+o"

Troubleshooting

| Problem | Fix | |---|---| | /preview doesn't appear | Confirm pi is restarted after install | | "obsidian: command not found" | brew install obsidian | | "No assistant response" | Ask pi a question first, then /preview | | Obsidian opens but file is empty | The extension retries once — wait ~2 seconds |

License

MIT