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

@loopengine-co/shopify

v1.0.0

Published

A loopengine ability: Shopify tools to find and read orders (items, payments, refunds, shipments with tracking) and to preview and make refunds calculated by Shopify (refunds ask first by default), plus a skill on order questions and refunds.

Readme

@loopengine-co/shopify

A loopengine ability: Shopify tools to find and read orders — items, payments, refunds so far, shipments with tracking — and to preview and make refunds, plus a skill on answering order questions and refunding the right amount. Refunds ask a person first by default.

npx loopengine add-ability @loopengine-co/shopify --agent <your-agent>

What's in it

  • Tools (Shopify's GraphQL Admin API)

    • shopify_find_orders(order_number?, email?, query?, max_results?) — newest first: number, date, customer, email, payment and fulfilment status, total.
    • shopify_get_order(order) — one order in full: customer, ship-to, items with line_item_id and refundable quantity, totals, payments, refunds so far, shipments with carrier, tracking number and link.
    • shopify_preview_refund(order, line_items? | amount?, refund_shipping?, shipping_amount?) — what a refund would return and where it goes back to, calculated by Shopify, without refunding.
    • shopify_create_refund(…same…, note?, notify_customer?) — makes the refund.

    order takes an order number ("#1042") or id. Refund amounts always come from Shopify's own calculation (suggestedRefund), with the item's discounts and tax, and can't exceed what's still refundable. A custom amount (e.g. a goodwill partial refund) is checked against the maximum refundable and goes to the order's payment method. Items are not restocked.

  • Skill — shopify-orders: answering where-is-my-order and payment questions from the order, and the preview → propose → refund steps.

  • actauth rules — finding, reading and previewing are allow; shopify_create_refund is ask.

Setup

  1. In the Shopify admin, open Settings → Apps and sales channels → Develop apps (allow custom app development if asked), and Create an app.
  2. Under Configuration → Admin API integration, give it the scopes read_orders and write_orders. (Orders older than 60 days also need read_all_orders, which Shopify grants on request.)
  3. Install app, then copy the Admin API access token (starts shpat_). Shopify shows it only once.
  4. Set the values in the agent's Environment tab in the console:

| Setting | | | --- | --- | | SHOPIFY_STORE_DOMAIN | e.g. my-store.myshopify.com | | SHOPIFY_ADMIN_TOKEN | The access token (secret) | | SHOPIFY_API_VERSION | Optional; defaults to 2025-10 |

All are shared by default; give an agent its own to work with a different store.

Permissions

| Tool | Default | Why | | --- | --- | --- | | shopify_find_orders, shopify_get_order, shopify_preview_refund | allow | Read only | | shopify_create_refund | ask | Sends real money back and can't be undone |

Change these in the agent's Permissions tab. To let small refunds through, allow shopify_create_refund with a when condition on amount rather than for everything.