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

shopify-agenium-app

v1.0.0

Published

Shopify App that turns any Shopify store into an agent:// endpoint via the Agenium protocol

Readme

Shopify Agenium App

Turn any Shopify store into an agent:// endpoint via the Agenium protocol (A2A).

Features

Core Shopify APIs

  • Products — CRUD products, variants, collections, metafields
  • Orders — list, create drafts, fulfill, cancel, refund
  • Customers — search, profiles, purchase history, segments
  • Cart/Checkout — Storefront API cart management, checkout links
  • Discounts — create/manage discount codes and automatic discounts
  • Inventory — stock levels, adjustments across locations
  • Analytics — sales summaries, top products, order stats
  • Webhooks — real-time events → agent notifications

Third-Party Integrations (auto-detected)

  • Klaviyo — email/SMS campaigns, flows, segments
  • Judge.me / Loox — product reviews management
  • ReCharge — subscription management
  • ShipStation / Shippo — shipping labels, tracking, rates

Quick Start

# Install
npm install

# Configure
cp .env.example .env
# Edit .env with your Shopify app credentials and Agenium API key

# Development
npm run dev

# Production
npm run build && npm start

Setup

1. Create a Shopify App

  1. Go to Shopify Partners
  2. Create a new app
  3. Set the redirect URL to https://your-domain.com/auth/callback
  4. Copy API key and secret to .env

2. Install on a Store

Visit: https://your-domain.com/auth?shop=your-store.myshopify.com

3. Agent Registration

The app auto-registers with Agenium DNS on startup when AGENT_DOMAIN and AGENIUM_API_KEY are set.

Agent Protocol (A2A)

Agent Card

GET /.well-known/agent.json

Send Task

POST /tasks/send
{
  "id": "optional-task-id",
  "message": {
    "role": "user",
    "parts": [
      { "type": "text", "text": "List all products" }
    ]
  }
}

Structured Actions

{
  "message": {
    "role": "user",
    "parts": [
      {
        "type": "data",
        "data": {
          "action": "products.create",
          "input": { "title": "New Widget", "productType": "Gadget" }
        }
      }
    ]
  }
}

Available Actions

| Domain | Actions | |--------|---------| | products | .list .get .create .update .delete .collections | | orders | .list .get .draft.create .fulfill .cancel .refund | | customers | .list .get .create .update .top_spenders | | cart | .create .get .add .update .remove .browse | | discounts | .list .create_code .create_automatic .delete | | inventory | .locations .levels .adjust .check_sku | | analytics | .sales_summary .top_products .order_stats .reports | | metafields | .get .set | | klaviyo | .lists .segments .campaigns .create_campaign .track_event .add_to_list .flows | | reviews | .list .summary .reply | | subscriptions | .list .get .cancel .skip .customers | | shipping | .rates .create_label .track .orders |

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | SHOPIFY_API_KEY | Yes | Shopify app API key | | SHOPIFY_API_SECRET | Yes | Shopify app secret | | SHOPIFY_SCOPES | Yes | OAuth scopes | | SHOPIFY_HOST | Yes | App public URL | | AGENIUM_API_KEY | Yes | Agenium DNS API key | | AGENT_DOMAIN | Yes | Agent domain (e.g., mystore.shop.agenium.net) | | STOREFRONT_ACCESS_TOKEN | No | For cart/checkout features | | KLAVIYO_API_KEY | No | Klaviyo integration | | RECHARGE_API_TOKEN | No | ReCharge integration | | SHIPSTATION_API_KEY | No | ShipStation integration | | SHIPPO_API_TOKEN | No | Shippo integration |

License

MIT

Bug Reporting

This project includes optional bug reporting to the Agenium monitoring server.

Configuration

Set the following environment variables to enable bug reporting:

BUG_REPORT_URL=http://130.185.123.153:3100
BUG_REPORT_TOKEN=your_token_here

Bug reporting is disabled by default — it only activates when BUG_REPORT_TOKEN is set. Reports are sent asynchronously (fire and forget) and never block the main application.