1.0.15 • Published 6 months ago

@oak-digital/product-feed v1.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Features

  • Exposes a GET /feed/products API endpoint.
  • Generates a product feed containing detailed product and variant information.
  • Includes calculated prices based on region and currency code (supports ?currency=<CURRENCY_CODE> query parameter).
  • Fetches and includes inventory availability per sales channel.
  • Maps product data (title, description, handle, image, material, type) and variant data (SKU, options, price, sale price) to a feed-friendly format.
  • Efficiently handles large product catalogs using batch processing.

Compatibility

This plugin is compatible with Medusa V2, specifically versions >= 2.4.0 of @medusajs/medusa.

Prerequisites

  • A working Medusa V2 backend.

How to Install

  1. Install the plugin in your Medusa project:

    yarn add @oak-digital/product-feed

    (Replace @oak-digital/product-feed with the actual published package name)

  2. Add the plugin to your medusa-config.js:

   plugins: [
    {
      resolve: "@oak-digital/product-feed",
      options: {},
    },
  ],
    ```

## Test the Plugin

1.  Start your Medusa backend:
    ```bash
    medusa develop
    ```
    or if you have a custom start script:
    ```bash
    yarn start
    ```

2.  Access the feed endpoint in your browser or using a tool like `curl`:
    `http://localhost:9000/feed/products`

3.  To get the feed for a specific currency (if regions are configured), append the currency code:
    `http://localhost:9000/feed/products?currency=USD`
1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.9

6 months ago

1.0.8

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.0.1

7 months ago