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

@hollowpoint-io/medusa-plugin-klaviyo

v0.1.0

Published

Klaviyo events, consent sync, and newsletter subscribe for Medusa v2.

Downloads

20

Readme

@hollowpoint-io/medusa-plugin-klaviyo

Klaviyo for Medusa v2: Started Checkout / Placed Order events, consent sync, and a honeypot newsletter endpoint.

Authored by Billy Mahmood. Maintained by Hollowpoint. MIT licensed.

Install

npm install @hollowpoint-io/medusa-plugin-klaviyo
// medusa-config.ts
module.exports = defineConfig({
  plugins: [
    {
      resolve: "@hollowpoint-io/medusa-plugin-klaviyo",
      options: {
        api_key: process.env.KLAVIYO_API_KEY,
        list_id: process.env.KLAVIYO_LIST_ID,
        storefront_url: process.env.STOREFRONT_URL,
        // revision: "2026-07-15",
        // source_name: "Medusa",
        // product_path: "/products/{handle}",
        // checkout_path: "/checkout",
        // order_path: "/account/orders/{order_id}",
        // rate_limit: { max: 5, window_ms: 60_000 },
      },
    },
  ],
})

No migrations. If the plugin is installed without api_key / list_id / storefront_url, subscribers no-op and the subscribe route returns 503.

Built and tested against Medusa >=2.17 <3.

What you get

  • cart.updated → Started Checkout (once the cart has metadata.checkout_started_at)
  • order.placed → Placed Order
  • Idempotency stamps on cart/order metadata (klaviyo_started_checkout_sent_at, klaviyo_placed_order_sent_at)
  • Consent bulk jobs, including Shopify shopify_email_marketing_state fallback for migrated stores
  • POST /store/klaviyo/subscribe with a honeypot company field
  • Error bodies are never logged (they can echo PII)

Options

| Option | Required | Default | Notes | |---|---|---|---| | api_key | yes* | | Klaviyo private key | | list_id | yes* | | list for subscribe/unsubscribe jobs | | storefront_url | yes* | | used to build product/checkout/order URLs | | revision | no | 2026-07-15 | Klaviyo API revision | | source_name | no | Medusa | prefix for custom_source | | product_path | no | /products/{handle} | {handle} placeholder | | checkout_path | no | /checkout | | | order_path | no | /account/orders/{order_id} | {order_id} placeholder | | rate_limit | no | off | in-memory per-IP; single-process only — prefer an edge limiter |

*Required for the plugin to actually send. Missing options degrade silently.

Subscribe

POST /store/klaviyo/subscribe
{ "email": "[email protected]", "source": "homepage", "company": "" }

source is homepage or product-unavailable. A non-empty company is treated as a bot and returns 202 without calling Klaviyo.

Rate limiting

This package does not ship a shared rate-limiter. Rate-limit at your edge, or set rate_limit for a naive in-memory cap (not safe across multiple backend instances).

Develop

npm install
npm test
npm run build
npm run dev

Need this installed and wired on a live Medusa store? Hollowpoint does Medusa migrations and plugin work.