@devx-commerce/bundle

0.0.3 • Public • Published

Medusa logo

Medusa Bundle Plugin

A Medusa plugin for creating and managing product bundles

PRs welcome! Discord Chat Follow @medusajs

Overview

This plugin extends Medusa's functionality by adding product bundle capabilities. It allows merchants to create, manage, and sell product bundles in their Medusa-powered commerce applications.

Features

  • Create product bundles from existing products and collections
  • Manage bundle pricing and inventory
  • Custom workflows for bundle creation and management
  • Admin UI extensions for bundle management
  • API endpoints for bundle operations

Compatibility

This plugin is compatible with versions >= 2.4.0 of @medusajs/medusa.

Installation

npm install @devx-commerce/bundle
# or
yarn add @devx-commerce/bundle

Configuration

Add the plugin to your medusa-config.js:

const plugins = [
  // ...
  {
    resolve: '@devx-commerce/bundle',
    options: {
      // plugin options
    },
  },
]

Usage

Creating Bundles

Bundles can be created through the admin dashboard or programmatically using the provided API endpoints.

Bundle Workflows

The plugin includes predefined workflows for bundle operations:

import { createBundleWorkflow } from '@devx-commerce/bundle/workflows'

// Execute the workflow
const { result } = await createBundleWorkflow(container).run({
  input: {
    collection_id: 'col_123',
    // other bundle parameters
  },
})

Development

Prerequisites

  • Node.js version 20 or later
  • Yarn

Setup

  1. Clone the repository
  2. Install dependencies:
    yarn install
  3. Start development server:
    yarn dev

Building

yarn build

Testing

yarn test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Resources

Package Sidebar

Install

npm i @devx-commerce/bundle

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

97 kB

Total Files

35

Last publish

Collaborators

  • brijeshagarwal
  • vasuchapadia
  • brijesh_at_devx
  • chirag12345