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

eleventy-plugin-shotpipe

v0.2.0

Published

Dynamic Open Graph images for Eleventy via Shotpipe — zero build-time cost, zero-signup setup. URLs are signed locally at build time and rendered lazily on first crawler hit.

Readme

eleventy-plugin-shotpipe

Open Graph images for Eleventy with zero build-time cost.

An og:image plugin for 11ty that signs image URLs locally at build time (one HMAC, microseconds per page) and renders the actual image lazily on the first social-crawler hit, via Shotpipe. No headless Chrome in your build. Nothing new in CI. A thousand-page site adds nothing measurable to the build.

<meta property="og:image" content="{% ogImageUrl title, author, tag %}">

Why not render at build time?

Most Eleventy og-image plugins run Satori or headless Chrome inside your build. That works, until it's the slowest thing in your deploy.

| | Build-time plugins (Satori / Puppeteer) | eleventy-plugin-shotpipe | |---|---|---| | Build cost per page | ~100ms–seconds, every page, every build | one HMAC (microseconds) | | CI requirements | Chromium install, or font files for Satori | none, node:crypto only | | CSS support | Satori: subset, no real CSS; Puppeteer: full | full (real Chrome, server-side) | | Fonts & emoji | your problem | maintained server-side | | Pages nobody shares | rendered and paid for anyway | never rendered at all | | Renderer down during deploy | build fails | build unaffected, URLs sign offline | | Dependencies | Satori/sharp/Puppeteer trees | zero |

The trade: images render on Shotpipe's servers, so you need an API key (free tier, no card). URLs are HMAC-signed, so nobody can render on your key.

Quick start

npm i eleventy-plugin-shotpipe
npx shotpipe-init          # free key, no signup — writes it to .env

shotpipe-init provisions a free key and writes SHOTPIPE_KEY / SHOTPIPE_SECRET to your .env. No account, no email required (pass one — npx shotpipe-init [email protected] — only if you want to attach the key for recovery and upgrades). Make sure your build loads .env (via dotenv, or node --env-file=.env).

// .eleventy.js
module.exports = (eleventyConfig) => {
  eleventyConfig.addPlugin(require('eleventy-plugin-shotpipe'), {
    key: process.env.SHOTPIPE_KEY,
    secret: process.env.SHOTPIPE_SECRET,
  })
}
{# in your base layout #}
<meta property="og:image" content="{% ogImageUrl title, 'Your Name', 'blog' %}">

That's it. Every page gets a social card; none of them render until someone shares the page.

Using this in a starter kit

Safe to drop into a template repo. A missing key never breaks the build — if SHOTPIPE_KEY / SHOTPIPE_SECRET aren't set, the ogImageUrl shortcode returns an empty string and the plugin prints a one-line hint. Whoever clones the kit runs npx shotpipe-init when they want OG images turned on, and nothing before that fails.

Templates

Hosted server-side, parameterized by query string. These previews are live renders from the API:

| | | |---|---| | terminal | gradient | | minimal | default |

Every template takes title, author, tag, an accent color, and an optional logo.

Options

eleventyConfig.addPlugin(require('eleventy-plugin-shotpipe'), {
  key: process.env.SHOTPIPE_KEY,       // required. get one at shotpipe.io/signup
  secret: process.env.SHOTPIPE_SECRET, // required
  template: 'terminal',                // default template for all pages
  accent: '#0ea5a4',                   // brand color, recolors every template
  logo: './src/assets/logo.png',       // see "Your logo" below
  baseUrl: 'https://shotpipe.io',      // only for self-hosted instances
})

Any option can be overridden per page by passing an object to the shortcode or to signedOgUrl:

{% ogImageUrl title %}
{% ogImageUrl title, author, tag %}
// in a JS shortcode / computed data, full control
const { signedOgUrl } = require('eleventy-plugin-shotpipe')
signedOgUrl({ title, author, tag, template: 'terminal', accent: '#ff6600', w: 1200, h: 630 }, opts)

Your logo

Point the plugin at a local PNG/JPG (see options above), then upload it once, and again only when it changes:

SHOTPIPE_KEY=... SHOTPIPE_SECRET=... npx shotpipe-upload-logo ./src/assets/logo.png

The plugin references the logo by its content hash, computed locally (builds stay network-free), and the server embeds it at render time (never fetched). The logo is per-site, so one key can back many sites, each with its own.

How it works

  1. At build time the plugin HMAC-signs the template parameters into a URL. No network call.
  2. The URL sits in your <meta og:image> tag doing nothing.
  3. The first time a crawler (Twitter, Slack, Discord…) fetches it, Shotpipe renders the template and caches the PNG.
  4. Every fetch after that is a cache hit served from the edge.

Unsigned or tampered URLs are rejected, so nobody can render on your key. If the API is unreachable during your build, nothing happens; the build never talks to it.

Links

License

MIT