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

medusa-plugin-nforce

v0.1.5

Published

Real-time product sync from Medusa to nForce knowledge bases.

Readme

medusa-plugin-nforce

npm version License: MIT

Real-time product sync from a Medusa v2 store to an NForce knowledge base.

When products are created, updated, or deleted in your Medusa store, the plugin serializes the full product graph (variants, prices, options, categories, collection, tags, custom modules) and pushes it to a configured NForce knowledge source. The NForce side chunks, embeds, and indexes the document so AI agents can answer customer questions about your catalog.

Install

yarn add medusa-plugin-nforce

Add it to your medusa-config.ts:

module.exports = defineConfig({
  // ...
  plugins: [
    {
      resolve: "medusa-plugin-nforce",
      options: {},
    },
  ],
})

Run migrations:

npx medusa db:migrate

Setup

1. Configure the plugin (Medusa admin)

Open your Medusa admin and navigate to NForce in the sidebar. The setup wizard has three tabs:

  • General — Enter your storefront URL (e.g. https://yourstore.com). Product links will be generated as {storefront_url}/products/{handle}.
  • Categories — Choose which product categories to sync. All categories are included by default; toggle off to exclude specific ones.
  • Fields — Select which product fields, relations, and custom modules to include in the knowledge base. Custom modules linked to products (e.g. Brand, Supplier, custom pricing data) are auto-discovered and can be enabled individually.

Click Save when done.

2. Connect from NForce

In the NForce platform:

  1. Go to Settings → Connections and create a Medusa Commerce connection with your store URL and admin API key (sk_...).
  2. Go to a Knowledge Base and add a Medusa Commerce source, selecting your connection.
  3. NForce validates the plugin is installed and configured, then triggers an initial sync.

That's it. The plugin starts receiving real-time product events immediately.

3. Agent toolkit (optional)

For live customer and order lookups, activate the Medusa Commerce toolkit on your NForce agent. This gives the agent three tools:

  • Search Customers — find customers by name, email, or phone
  • Get Customer Orders — retrieve order history for a customer
  • Get Order — full order details including items, payment status, fulfillment, and shipping

The toolkit uses the same Medusa connection and works independently of the knowledge sync.

Security

All NForce requests to your Medusa store go through the plugin's /admin/nforce/* routes — no direct access to the standard Admin API is needed.

If your store is behind a firewall or CDN with IP restrictions, whitelist NForce's egress IP for:

/admin/nforce/*

Contact [email protected] to get the IP address(es) for your NForce instance.

How it works

Medusa admin → NForce sidebar → configure fields/categories
                    ↓
NForce adds Medusa source → validates plugin → calls POST /admin/nforce/setup
                    ↓
NForce pulls all products via Admin API → serializes with field mask → stores in KB
                    ↓
Plugin receives config, starts subscribing to product events
                    ↓
On product.created/updated/deleted:
  → plugin fetches product via query.graph() (respects field mask + categories)
  → serializes with storefront URL, custom module data
  → POSTs to NForce webhook with X-Plugin-Token header
                    ↓
NForce: chunk → contextual enrichment → embed → store
  → agents can search the catalog immediately

Plugin admin page

After setup, the NForce page in your Medusa admin shows:

  • Status — connection state, document count, sync status with live indicator
  • AI Agents — NForce agents using your product catalog, with channel info (chat widget snippet, email address, WhatsApp/phone number) and links to configure them in NForce
  • Settings — reconfigure field mask, categories, or storefront URL at any time

License

MIT