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

@jakeryderv/pi-artifacts

v0.11.0

Published

Rich visualization artifacts for the Pi coding agent: scaffold, validate, and preview portable markdown and html bundles.

Readme

@jakeryderv/pi-artifacts

npm version CI MIT license

Rich visualization artifacts for the Pi coding agent. Scaffold, validate, preview, manage, and export portable Markdown documents and declarative HTML dashboards from a Pi session.

The package includes a live localhost viewer, a content-only HTML component runtime, artifact-local JSON feeds, Chart.js and Mermaid rendering, and portable single-file HTML export. See the changelog for release history.

Install

pi install npm:@jakeryderv/pi-artifacts

Try it for one run without changing Pi settings:

pi -e npm:@jakeryderv/pi-artifacts

Quickstart

Ask Pi to create and render an artifact:

Create a markdown artifact titled "Demo Report" with a heading, a short note callout, a task list, and a small table. Then render it.

Or create an HTML dashboard:

Create an html artifact titled "Q4 Dashboard" with a summary section and a bar chart of quarterly revenue. Then render it.

Pi scaffolds a bundle, authors its entry file, validates it, and returns a localhost preview URL. Run /viewer to open the live artifact gallery, or /artifacts-demo to explore the package-owned Markdown and HTML showcases.

Capabilities

Artifact stacks

  • Markdown: Prettier, markdownlint, strict KaTeX math, task lists, GitHub-style alerts, footnotes, syntax highlighting, and Mermaid diagrams.
  • HTML: Prettier, HTMLHint, Pico CSS, declarative components, artifact-local JSON feeds, Chart.js, Mermaid, and icons—with no authored JavaScript or build step.
  • Standalone export: one self-contained HTML file with required runtime resources and bundle assets embedded for offline use.

Tools

| Tool | Purpose | | ------------------- | -------------------------------------------------------- | | scaffold_artifact | Create an empty Markdown or HTML bundle to author into. | | render_artifact | Validate, normalize, and preview a bundle. | | export_artifact | Write a portable single-file HTML export. | | list_artifacts | List bundles by session, workspace, or across the store. | | delete_artifact | Delete one bundle and its files. | | delete_artifacts | Bulk-delete bundles by ID and/or age. |

Commands

| Command | Purpose | | ---------------------------------- | ---------------------------------------------------- | | /viewer | Open the searchable, live-updating artifact gallery. | | /artifacts-demo [markdown\|html] | Open the read-only package demo gallery or one demo. | | /viewer-mode app\|browser\|off | Choose and persist how the viewer opens. | | /viewer-auto on\|off | Control whether successful renders auto-show. | | /artifacts-clean [days] | Inspect store size or delete older artifacts. |

The included artifacts-authoring skill teaches Pi the bundle workflow and portable authoring conventions.

Storage

Artifacts are content-only bundles stored under ~/.pi/artifacts/<id>/ by default, using Pi's configured directory name rather than a hardcoded .pi. Each bundle contains manifest.json, one entry file, assets/, and optional generated exports/. Provenance metadata records the originating session and workspace.

Security

Pi packages execute with the user's system permissions, so review source before installation. Artifact previews bind only to localhost and use capability URLs, filesystem containment, restrictive Content Security Policies, and a package-owned runtime boundary. Read the security architecture and reporting policy for details.

Documentation

License

MIT