← Catalog

@jakeryderv/pi-artifacts

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

Package

Install

Install with PiG

pig install npm:@jakeryderv/pi-artifacts

Install with Pi

pi install npm:@jakeryderv/pi-artifacts
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./extensions"
  ]
}

README

Written by the package's publisher, shown as published in version 0.11.0 (README.md). PiG does not review it.

@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

ToolPurpose
scaffold_artifactCreate an empty Markdown or HTML bundle to author into.
render_artifactValidate, normalize, and preview a bundle.
export_artifactWrite a portable single-file HTML export.
list_artifactsList bundles by session, workspace, or across the store.
delete_artifactDelete one bundle and its files.
delete_artifactsBulk-delete bundles by ID and/or age.

Commands

CommandPurpose
/viewerOpen the searchable, live-updating artifact gallery.
/artifacts-demo [markdown|html]Open the read-only package demo gallery or one demo.
/viewer-mode app|browser|offChoose and persist how the viewer opens.
/viewer-auto on|offControl 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