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

@o2s/integrations.medusajs

v1.12.2

Published

MedusaJS integration for O2S, providing ecommerce functionality including products, orders, and carts.

Readme

@o2s/integrations.medusajs

MedusaJS integration for O2S, providing ecommerce functionality including products, orders, and carts.

The Medusa.js integration connects O2S to Medusa's e-commerce platform via Store API (products, carts, checkout, fulfillment) and Admin API (e.g. related products). It implements Orders, Resources (assets, service instances), Products, Carts, Customers, Payments, and Checkout. Supports SSO JWT for authenticated store requests. Optional Medusa plugin adds assets and service instances for B2B and post-purchase scenarios.

  • Store API – Products, carts, checkout, fulfillment; SSO JWT
  • Admin API – Related products and custom endpoints
  • Orders, Products, Carts – Full cart lifecycle and order placement
  • Resources – Assets and service instances (with plugin)

Content editors manage products in Medusa Admin. Developers configure MEDUSAJS_BASE_URL, MEDUSAJS_PUBLISHABLE_API_KEY, and optionally MEDUSAJS_ADMIN_API_KEY.

Installation

npm install @o2s/integrations.medusajs

Configuration

Configure the integration via @o2s/configs.integrations in your AppConfig:

import { Products, Orders, Carts, Customers, Payments, Checkout } from '@o2s/configs.integrations';
import { MedusaConfig } from '@o2s/integrations.medusajs/integration';

export const AppConfig: ApiConfig = {
    integrations: {
        products: MedusaConfig.products,
        orders: MedusaConfig.orders,
        carts: MedusaConfig.carts,
        customers: MedusaConfig.customers,
        payments: MedusaConfig.payments,
        checkout: MedusaConfig.checkout,
    },
};

Or use the pre-configured integration from @o2s/configs.integrations:

import { Products, Orders, Carts, Customers, Payments, Checkout } from '@o2s/configs.integrations';

export const AppConfig: ApiConfig = {
    integrations: {
        products: Products.ProductsIntegrationConfig,
        orders: Orders.OrdersIntegrationConfig,
        carts: Carts.CartsIntegrationConfig,
        customers: Customers.CustomersIntegrationConfig,
        payments: Payments.PaymentsIntegrationConfig,
        checkout: Checkout.CheckoutIntegrationConfig,
    },
};

Environment Variables

Required

  • MEDUSAJS_BASE_URL - Your Medusa backend URL (e.g., https://api.your-medusa.com)
  • MEDUSAJS_PUBLISHABLE_API_KEY - Medusa publishable API key for Store API

Optional

  • MEDUSAJS_ADMIN_API_KEY - Medusa admin API key for Admin API endpoints

Example .env

MEDUSAJS_BASE_URL=https://api.your-medusa.com
MEDUSAJS_PUBLISHABLE_API_KEY=your-publishable-key
MEDUSAJS_ADMIN_API_KEY=your-admin-key

Features

  • Product catalog management
  • Order processing and management
  • Shopping cart functionality
  • Customer management
  • Payment processing
  • Checkout flow

Related Packages

  • @o2s/blocks.product-list - Display products
  • @o2s/blocks.order-list - Display orders
  • @o2s/configs.integrations - Integration configuration

About Integrations in O2S

Integrations are adapters that connect O2S to external backend services. They handle API communication and normalize data from various backend services into an API-agnostic format. The frontend app communicates only with the API Harmonization server, never directly with backend services, enabling you to swap integrations without breaking the frontend.

Documentation: Medusa.js

About O2S

Part of Open Self Service (O2S) - an open-source framework for building composable customer self-service portals. O2S simplifies integration of multiple headless APIs into a scalable frontend, providing an API-agnostic architecture with a normalization layer.