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

@agentuse/artifacts

v0.2.1

Published

CLI + viewer for collecting artifacts emitted by AI agents

Readme

AI agents produce useful files, but those files often end up buried in a transcript or scattered across a project. @agentuse/artifacts gives them a predictable home and gives you a fast local viewer for everything they make.

Version 0.2.0 adds project-wide discovery: the viewer can find supported artifact files across registered project directories, not only inside .agentuse/artifacts. You can turn that broader scan off in the viewer Settings sheet if you only want the dedicated artifact folder.

Install

Install the Skill for your coding agent:

npx skills add agentuse/artifacts

Install it globally if you want every project to use the same artifact behavior:

npx skills add agentuse/artifacts -g

Optionally install the CLI globally so the viewer starts instantly:

npm install -g @agentuse/artifacts

Requires Node.js 20+.

Use With Different Agents

@agentuse/artifacts is agent-agnostic. There are two ways to use it:

| Agent type | Recommended setup | | --- | --- | | Claude Code, Cursor, Codex, Windsurf, Cline, and other interactive coding agents | Install the Skill with npx skills add agentuse/artifacts, then ask the agent to save reports or dashboards as artifacts. | | AgentUse and other async/scheduled agents | Install the same Skill globally with npx skills add agentuse/artifacts -g, then tell the agent to write outputs under .agentuse/artifacts/<name>/index.md or .html. | | Custom runners, CI jobs, and shell scripts | Write supported files directly into .agentuse/artifacts or anywhere in a registered project, then open the viewer with npx @agentuse/artifacts open. | | Remote VMs or chat-based agents | Run the viewer on the machine where artifacts are written. It binds to 127.0.0.1:7878; use SSH port forwarding, Tailscale Serve, or another private tunnel to view it from your laptop. |

If the skills CLI does not know your agent yet, copy skills/agentuse-artifacts/SKILL.md into that agent's skill or instruction directory. The underlying contract is just files on disk plus the local viewer.

Use

Ask your agent to save something as an artifact:

save this report as an artifact
render this plan as a viewable HTML artifact
/agentuse-artifacts drop this to artifacts

The Skill guides the agent toward this layout:

<project>/.agentuse/artifacts/
  market-analysis/index.md
  customer-report/index.html
  customer-report/chart.png

Open the viewer from any registered project:

npx @agentuse/artifacts open

The viewer renders Markdown, AgentUse .agentuse, HTML, PNG/JPG/WebP, and PDF files. HTML artifacts are sanitized and loaded in a sandboxed iframe.

What 0.2.0 Changes

  • Project-wide artifact discovery is on by default for registered projects.
  • The Settings sheet can add/remove projects, edit ignore patterns, and disable project-wide discovery.
  • The viewer lazy-loads only the selected project's artifact inventory for better performance.
  • Markdown, AgentUse, HTML, image, and PDF previews render directly on the canvas.
  • Canvas navigation, image zoom, mobile behavior, and hot reload performance are improved.

Discovery Rules

The dedicated .agentuse/artifacts folder is always scanned. This is still the best place for generated agent output.

When project-wide discovery is enabled, the viewer also scans registered project roots for supported files:

docs/report.md
agents/daily.agentuse
screenshots/flow.png
dashboards/revenue.html

Dependency, build, cache, VCS, hidden dot paths, and configured ignore patterns are skipped. Manage these patterns in Settings.

Viewer state lives under:

~/.agentuse/artifacts/
  manifest.json
  settings.json
  preview-cache/
  .serve.pid

Set AGENTUSE_ARTIFACTS_HOME to use a different storage root.

CLI

Every command supports --json.

| Command | Description | | --- | --- | | artifacts init | Register the current directory and create .agentuse/artifacts. | | artifacts open [--port N] [--detach] [--no-browser] | Register the current project, start or reuse the viewer, and print its URL. | | artifacts serve [--port N] [--detach] [--stop] [--fail-if-running] | Manage only the local viewer server. | | artifacts list | List supported artifacts discovered in the current project. | | artifacts url [name] | Print a viewer URL for the project or a specific artifact name. | | artifacts where | Print the global storage path. | | artifacts project list / add / forget / prune | Manage registered project directories. |

Security

Stored HTML artifacts are treated as untrusted:

  • HTML is parsed and sanitized at render time.
  • Rendered HTML gets a strict CSP with connect-src 'none'.
  • HTML runs inside an iframe sandbox without allow-same-origin.

Do not relax these defaults casually. Artifacts are often generated from untrusted web pages, PRs, scraped docs, and model output.

Development

npm install
npm run build
npm test
npm run typecheck

For local development:

npm run dev:server
npm run dev:viewer

License

MIT (c) 2026 Leon Ho.