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

@useairfoil/producer-shopify

v0.4.2

Published

This connector backfills Shopify products, customers, orders, and refunds. It gets product, cart, customer, order, and refund events at `POST /webhooks/shopify`.

Readme

Shopify producer

This connector backfills Shopify products, customers, orders, and refunds. It gets product, cart, customer, order, and refund events at POST /webhooks/shopify.

Config

| Variable | Required | Default | | ------------------------ | -------- | ------- | | SHOPIFY_SHOP_DOMAIN | yes | none | | SHOPIFY_CLIENT_ID | yes | none | | SHOPIFY_CLIENT_SECRET | yes | none | | SHOPIFY_WEBHOOK_SECRET | yes | none |

Use a Shopify app owned by the merchant. The app needs read_products, read_customers, and read_orders. Without read_all_orders, Shopify returns only the last 60 days of orders and their refunds. The webhook secret is not the app client secret.

Setup

Create a Dev Dashboard app in the same Shopify organization as the store. Add the scopes above, install the app, and use its client ID and client secret.

Request protected customer data access for name, email, phone, and address. The config check fails without it.

Create these webhooks in Shopify Admin:

  • products/create
  • products/update
  • products/delete
  • carts/create
  • carts/update
  • customers/create
  • customers/disable
  • customers/enable
  • customers/update
  • customers/delete
  • customers/purchasing_summary
  • customers_email_marketing_consent/update
  • customers_marketing_consent/update
  • customer.tags_added
  • customer.tags_removed
  • orders/create
  • orders/updated
  • orders/delete
  • refunds/create

Point them to /webhooks/shopify and use the webhook signing value as SHOPIFY_WEBHOOK_SECRET. Pick webhook API version 2026-07, the one the connector uses.

Data

  • Customers, orders, and refunds hold protected customer data such as names, emails, phones, addresses, and notes. Treat these tables as customer data.
  • Current order totals include refunds.
  • Order webhooks are mapped without refetching. If Shopify truncates line items on a very large order, the webhook row can miss lines.
  • A refund row does not mean the payment completed. Check its transaction status.
  • Refunds use processedAt for versions. A later settlement can be missed if Shopify keeps the same time.
  • After backfill, updates depend on webhooks. Missed webhook deliveries are not recovered yet.

Demo data

pnpm demo --size 128MiB writes made-up Shopify data without Shopify credentials. See the Connector Kit README for the flags and the variables it needs.

Each customer has orders, refunds, and sometimes an open cart. Orders and carts use a fixed catalog of 10 products, which doesn't grow with the size.

Local development

cd connectors/producer-shopify
pnpm sandbox

A hosted run loads connector config from AIRFOIL_CONFIG_PATH. It also needs the Wings and PostgreSQL variables from the Connector Kit README.

cd connectors/producer-shopify
pnpm start