> ## Documentation Index
> Fetch the complete documentation index at: https://86d.store/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Product labels

> Visual badges on product cards: 'New', 'Sale', 'Best seller', 'Low stock'. Rule-based and merchandiser-controlled.

<Warning>
  **Experimental.** This Module has no test or production evidence recorded yet. Read it, run it locally, and hold off on real Orders. See [maturity levels](/docs/resources/versioning).
</Warning>

The Product Labels [Module](/docs/concepts/modules) attaches badges to product cards, driven by rules you configure (newness window, on-sale flag, low-stock threshold) or by manual selection. Labels render through `<ProductCard />` automatically when the Module is enabled.

**Source:** [`modules/product-labels`](https://github.com/86d-store/86d/tree/main/modules/product-labels) · **npm:** [`@86d-store/product-labels`](https://www.npmjs.com/package/@86d-store/product-labels)

## Installation

```sh theme={null}
86d module add product-labels
```

## Configuration

```ts theme={null}
productLabels({
  newWindowDays: "30",
  bestSellerThreshold: "100",
});
```

## Admin endpoints

| Method   | Path                        | Description            |
| -------- | --------------------------- | ---------------------- |
| `GET`    | `/admin/product-labels`     | List configured labels |
| `POST`   | `/admin/product-labels`     | Create a label         |
| `PUT`    | `/admin/product-labels/:id` | Update a label         |
| `DELETE` | `/admin/product-labels/:id` | Delete a label         |

## Related pages

* [Products](/docs/modules/products)
* [Flash sales](/docs/modules/flash-sales)
* [Versioning and maturity](/docs/resources/versioning)
* [Glossary](/docs/resources/glossary)
