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

@rawdash/connector-shopify

v0.29.2

Published

Rawdash connector for Shopify — orders, customers, products, and refund events

Readme

@rawdash/connector-shopify

npm version license

Sync orders, customers, products, and refund events from a Shopify store via the Admin GraphQL API.

Install

npm install @rawdash/connector-shopify

Authentication

A Custom App Admin API access token authenticates every GraphQL request. The token scopes the sync to the store it was created in and the read scopes granted to the app.

  1. In the Shopify admin, open Settings -> Apps and sales channels -> Develop apps.
  2. Create a new app (or open an existing custom app) and open the Configuration tab.
  3. Under Admin API integration, grant the read_orders, read_customers, and read_products scopes and save.
  4. Open the API credentials tab and install the app to reveal the Admin API access token (starts with shpat_).
  5. Store the token as a secret and reference it from the connector config as accessToken: secret("SHOPIFY_ACCESS_TOKEN"), and set shopDomain to your yourshop.myshopify.com domain.

Configuration

| Field | Type | Required | Description | | ------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | shopDomain | string | Yes | Your store myshopify.com domain, without protocol, e.g. yourshop.myshopify.com. | | accessToken | secret | Yes | Custom App Admin API access token with read_orders, read_customers, and read_products scopes. | | resources | array | No | Which Shopify resources to sync. Omit to sync all resources. The orders phase also emits a refund event for each refund attached to an order. |

Resources

  • shopify_product (entity) - Store products with their title, vendor, status, and total inventory.
    • Endpoint: GraphQL query: products { nodes { ... } }
  • shopify_customer (entity) - Store customers with their email, lifetime order count, and total amount spent.
    • Endpoint: GraphQL query: customers { nodes { ... } }
  • shopify_order (entity) - Orders with their total price, currency, financial and fulfillment status, customer, and lifecycle timestamps.
    • Endpoint: GraphQL query: orders { nodes { ... } }
  • shopify_refund (event) - Refund events derived from each order, carrying the refunded amount and currency.
    • Endpoint: GraphQL query: orders { nodes { refunds { ... } } }
    • Derived from the refunds list on each synced order. Each refund becomes one append-only event keyed by its refund id; refunds attached to orders outside the current incremental window are not revisited.

Example

import {
  defineConfig,
  defineDashboard,
  defineMetric,
  secret,
} from '@rawdash/core';

const shopify = {
  name: 'shopify',
  connectorId: 'shopify',
  config: {
    shopDomain: 'yourshop.myshopify.com',
    accessToken: secret('SHOPIFY_ACCESS_TOKEN'),
  },
};

export default defineConfig({
  connectors: [shopify],
  dashboards: {
    sales: defineDashboard({
      widgets: {
        paid_orders: {
          kind: 'stat',
          title: 'Paid orders',
          metric: defineMetric({
            connector: shopify,
            shape: 'entity',
            entityType: 'shopify_order',
            fn: 'count',
            filter: [{ field: 'financialStatus', op: 'eq', value: 'PAID' }],
          }),
        },
      },
    }),
  },
});

Rate limits

The Admin GraphQL API uses a cost-based leaky-bucket limit per access token; this connector pages 250 records at a time and relies on standard HTTP 429 retry/backoff.

Limitations

  • Custom App access token auth only (OAuth app distribution not supported).
  • Order status-transition history and inventory-level resources are out of scope; refund events are derived from each order.

Links

License

Apache-2.0