Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@merchi/product-form

Latest version: v1.19.94

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: amtron, chengyu0316
0 Stars
0 Forks
77 Versions
11.3K Downloads
TypeScript Repo language

Scan summary

@merchi/product-form was last scanned on 1 Dec 2026 at version 1.19.94. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 77 versions; the latest 5 were published within 2 days (30 Nov and 1 Dec 2026).
  • Findings: No rules fired in version 1.19.94.
  • Downloads: 11,277 downloads.

Versions

77 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.19.94 LATEST 1 Dec 2026 No rules fired
1.19.93 1 Dec 2026 No rules fired
1.19.92 1 Dec 2026 No rules fired
1.19.91 30 Nov 2026 Not shown
1.19.90 30 Nov 2026 Not shown

No rules fired in 1.19.94

Findings

Findings for v1.19.94. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.19.94; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Merchi Product Form

npm version License: MIT

A React component library for rendering customizable e-commerce product forms for Merchi products. This package provides a seamless integration for Next.js applications, allowing for interactive product forms with various customization options.

Features

  • Interactive product form with real-time price calculations
  • Customizable styling through extensive class name props
  • Support for product variations, groups, and options
  • File upload capability for product customizations
  • Cart and quote request functionality
  • Responsive design suitable for all devices

Table of Contents

  • Installation
  • Quick Start
  • Usage Example
  • Component Props
  • CSS Class Props
  • Styling
  • Advanced Usage
  • Contributing
  • License

Installation

# Using npm
npm install @merchi/product-form

# Using yarn
yarn add @merchi/product-form

Quick Start

import MerchiProductForm from '@merchi/product-form';

function ProductPage({ product }) {
  return (
    <MerchiProductForm
      initProduct={product}
      onBuyNow={(job) => console.log(job)}
      onGetQuote={(job) => console.log(job)}
    />
  );
}

Usage Example

Here's a complete example of how to use the MerchiProductForm component in a Next.js page:

import MerchiProductForm from '@merchi/product-form';
import { notFound } from 'next/navigation';

export async function fetchProduct(id) {
  const url = `https://api.merchi.co/v6/products/${id}/`;
  try {
    const response = await fetch(url);
    if (!response.ok) {
      throw new Error(`HTTP error! Status: ${response.status}`);
    }
    const responseJson = await response.json();
    return responseJson.product;
  } catch (e) {
    throw new Error(e);
  }
}

export default async function Page({ params: { id } }) {
  const initProduct = await fetchProduct(id);
  if (!initProduct) return notFound();

  const onBuyNow = (job) => {
    // Handle buy now action
    console.log('Buy now job:', job);
  };

  const onGetQuote = (job) => {
    // Handle quote request
    console.log('Quote request job:', job);
  };

  return (
    <div className="product-container">
      <MerchiProductForm
        initProduct={initProduct}
        onBuyNow={onBuyNow}
        onGetQuote={onGetQuote}
        showCurrency={true}
      />
    </div>
  );
}

Component Props

The MerchiProductForm component accepts the following props:

Name Type Default Description
apiUrl string? 'https://api.merchi.co/v6/' The Merchi API endpoint URL
initProduct Product required The Merchi product object to use for the form
allowAddToCart boolean? false Controls if the add to cart button is shown
btnNameAddToCart string? "Add to Cart" The text on the add to cart button
currentUser User? undefined A Merchi client object to be used as the form's client
draftApproveCallback (job) => Promise<void> \| null null Async callback function that is triggered when drafts are approved
hideTitle boolean? false Hide the product title
hideCost boolean? false Hide the cost (useful for quote requests)
hideCountry boolean? false Hide the country flag
hideCalculatedPrice boolean? false Hide calculated price (useful for quote requests)
hideDomainName boolean? false Hide product domain
hideQuantityField boolean? false Hide the quantity field
hideRequestQuotationButton boolean? false Hide request quote button
hidePaymentUpfrontButton boolean? false Hide buy now button
isCartItem boolean? false Used if the product form is being used in cart item context
initJob `job | cartItem` undefined
onAddToCart (job) => void? undefined Callback function for the add to cart button
onBuyNow (job) => void? undefined Callback function for the buy now button
onGetQuote (job) => void? undefined Callback function for the get quote button
onSubmit (job) => void? undefined Callback function that returns the latest job data
productFormId string? undefined Optional ID to be applied to the product form
showCurrency boolean? false Show the currency symbol
showCurrencyCode boolean? false Show the currency code
showFeatureDeadline boolean? false Will display a countdown timer
showGroupBuyStatus boolean? false Will show the group buy status bar
showPriceMatrix boolean? true Fetch pricing-rules for ProductPriceMatrix. The default form does not render the table — place it yourself
showUnitPrice boolean? false Show the unit price to the user

CSS Class Props

The component provides extensive CSS class customization options:

Name Type Default Description
classNameAlertSellerEditable string? 'alert alert-light' Class for the seller editable alert element
classNameButtonSubmit string? 'btn btn-primary w-100 merchi-embed-form_button-submit' Class for the Submit button element
classNameButtonGroupAdd string? 'btn btn-white' Class for the add group button element
classNameButtonGroupRemove string? 'btn btn-danger' Class for the delete group button element
classNameButtonsSubmitContainer string? 'merchi-product-buttons-submit-container' Class for the container of the submit buttons
classNameButtonApproveDrafts string? 'btn btn-success' Class for the approve drafts button element
classNameButtonCloseDrafts string? 'btn btn-secondary' Class for the close drafts button element
classNameFileUploadContainer string? 'merchi-input-file-container' Class for the input file container
classNameFileUpload string? 'merchi-embed-form_dropzone' Class for the dropzone container
classNameFilePreviewContainer string? 'uploaded-variation-file' Class for the file variation upload element
classNameFileUploadTextContainer string? 'merchi-embed-form_dropzone-text-container' Class for the dropzone text element
classNameFilePreviewIconWrapper string? 'uploaded-variation-file-icon-wrapper' Class for the upload variation icon wrapper
classNameFileUploadButton string? 'btn btn-sm btn-link ml-auto' Class for the file upload button element
classNameFileUploadIcon string? 'merchi-embed-form_dropzone-icon' Class for the form dropzone icon element
classNameFileUploadIconSecond string? 'merchi-embed-form_dropzone-icon-plus' Class for the form dropzone plus icon element
classNameFileUploadIconContainer string? 'merchi-embed-form_dropzone-icon-container' Class for the form dropzone icon container
classNameFileListItem string? 'list-group-item no-z-index-hover' Class for file list item element
classNameFileButtonDownload string? 'btn btn-sm btn-secondary' Class for the file download button element
classNameFileButtonDelete string? 'btn btn-sm btn-danger ml-2' Class for the file delete button element
classNameFileListItemContainer string? 'list-group' Class for the file item list
classNameGroupsContainer string? 'merchi-embed-form_product-group-container' Class for the product variation group container
classNameGroupPriceContainer string? 'merchi-embed-form_product-group-total-cost' Class for the variation group total cost
classNameInput string? 'form-control' Class for form inputs
classNameInventoryStatus string? 'flex-fill' Class for the inventory status element
classNameInputContainer string? 'merchi-embed-form_product-group-input-qty-container' Class for the input container
classNameOptionContainer string? 'merchi-embed-form_checkbox_radio-item' Class for the radio/checkbox container
classNameOptionInput string? 'merchi-embed-form_checkbox_radio-input' Class for the radio input
classNameOptionLabel string? 'merchi-embed-form_checkbox_radio-label' Class for the radio label
classNameOptionSuper string? 'merchi-embed-form_checkbox_radio-super' Class for the checkbox radio super
classNameOptionsCheckboxRadioContainer string? '' Class for the option checkbox/radio container
classNameOptionImage string? 'merchi-embed-form_image-select-option-item-img' Class for the variation image select element
classNameOptionImageContainer string? 'merchi-embed-form_image-select-option-item-container' Class for the variation image container element
classNameOptionColour string? 'merchi-embed-form_color-select-option' Class for the variation colour element
classNameOptionColourContainer string? 'merchi-embed-form_color-select-item' Class for the variation colour container element
classNameProductTitle string? 'merchi-product-title' Class for the product title element
classNameProductOriginTitle string? 'merchi-product-origin-title' Class for the product origin title element
classNameProductTotalContainer string? 'merchi-embed-form_summary-product-cost-container' Class for the product total cost container element
classNameProductTotal string? 'merchi-embed-form_summary-product-cost' Class for the product total cost element
classNameQuantityLabelContainer string? 'merchi-embed-form_quantity-label-container' Class for the product quantity label element
classNameUnitPrice string? undefined Class for the unit price element
classNamePriceMatrix string? 'merchi-price-matrix' Class for the bulk price table container

Styling

The component provides extensive customization options through class name props. Here are some of the most commonly used styling props:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @merchi/product-form

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229