Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The product-labels module attaches visual badges to product cards based on rules you configure (newness window, on-sale flag, low-stock threshold) or manual selection. Labels render through <ProductCard /> automatically when this module is enabled. Source: modules/product-labels · npm: @86d-app/product-labels

Installation

86d module add product-labels

Configuration

productLabels({
  newWindowDays: "30",
  bestSellerThreshold: "100",
});

Admin endpoints

MethodPathDescription
GET/admin/product-labelsList configured labels
POST/admin/product-labelsCreate a label
PUT/admin/product-labels/:idUpdate
DELETE/admin/product-labels/:idDelete
  • Products: the catalog the labels attach to.
  • Flash sales: drives time-bound “Sale” labels.