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

shary-artifacts

v0.2.1

Published

CLI for publishing self-contained artifacts to Shary.

Readme

shary-artifacts

Publish anything your AI agent builds as a shareable URL.

shary-artifacts is the public command-line interface for Shary. It lets any AI agent — Claude Code, Codex, Cursor, Kimi Code, Aider, or anything else that can run a shell command — turn a self-contained HTML or Markdown file into a clean public link.

No copying code out of chat. No forcing your audience to sign up for Claude, OpenAI, or any other platform. Build in the agent you already use, share like it's a finished product.


Why Shary exists

AI agents are great at producing interactive output — dashboards, reports, prototypes, presentations, walkthroughs — but getting that output in front of someone else is harder than it should be:

  • Vendor lock-in. Claude Code Artifacts live on claude.ai; Codex Sites live inside OpenAI. Recipients need accounts or workspace access.
  • No public sharing. First-party artifact tools keep links inside their ecosystems.
  • Manual copy/paste. Generic HTML hosts break the agent workflow and force users to export, switch apps, and re-upload.
  • Fragmented tooling. Every agent invents its own way to publish, and none of them talk to each other.

Shary solves this by giving every agent the same small command. The result is a public URL that opens in any browser, on any device, with no login required.


What the CLI does

shary-artifacts is the public CLI that agents and end users run locally to:

  • Inline local images, fonts, and CSS into a single self-contained file.
  • Publish that file to Shary and receive a public URL.
  • Upgrade an existing artifact in place, keeping the same slug and URL.

Everything travels disk → Shary. The multi-megabyte payload never has to be typed into the conversation, so it does not eat your context window.


Quick start

No install required — run with npx to publish a self-contained artifact:

npx shary-artifacts publish path/to/artifact.html --title "My Artifact"

The CLI prints the public URL:

https://shary.cc/a/my-artifact-7x2k

Authentication

The CLI resolves the Shary API key automatically, in this order:

  1. SHARY_API_KEY environment variable.
  2. ~/.shary/api-key cache file.

Set the environment variable once:

export SHARY_API_KEY=ask_...

Or save a key to ~/.shary/api-key after provisioning it through the Shary API.


Commands

publish

Inline local assets and upload a self-contained artifact in one step.

npx shary-artifacts publish path/to/artifact.html --title "My Artifact"

On success, the public URL is printed:

https://shary.cc/a/slug

upgrade

Replace the content of an existing artifact while keeping the same slug and URL.

npx shary-artifacts upgrade existing-slug path/to/artifact.html

Add --title to change the stored title:

npx shary-artifacts upgrade existing-slug path/to/artifact.html --title "Updated Title"

inline

Preview the self-contained version without uploading. Useful for debugging missing assets, external references, or size issues.

npx shary-artifacts inline path/to/artifact.html --output path/to/artifact-inlined.html

Self-contained requirements

Shary artifacts must have no external network dependencies:

  • Images must be inlined as base64 data: URIs.
  • CSS and JavaScript must be embedded, not linked externally.
  • Fonts must use @font-face with base64 data URIs.
  • File size must be ≤ 16 MiB.

The publish and inline commands automatically resolve relative local references and inline them. External HTTP(S) references are left in place and reported as warnings, and the server will reject the file if they remain.


Updating the CLI

The CLI checks npm once per day and prints a warning when a newer version is available. To update immediately:

npx shary-artifacts@latest --version

Or, if installed globally:

npm install -g shary-artifacts@latest

Support

For help using the CLI, visit https://shary.cc.