JSPM

ai-product-description

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 131
  • Score
    100M100P100Q76738F
  • License Apache-2.0

## ๐Ÿ“– Description

Package Exports

  • ai-product-description
  • ai-product-description/dist/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ai-product-description) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AI Product Description

๐Ÿ“– Description

A backend package that manages product descriptions using OpenAI GPT models.
It can be used with any sales platform โ€” Shopify, WooCommerce, custom storefronts, or other e-commerce solutions.

  • Generates AI-powered product descriptions.
  • Stores descriptions per store in Firestore.
  • Enforces daily usage limits per store.

โš™๏ธ Installation

npm install openai-product-description

Environment Variables Create a .env file in your project root:

OPENAI_API_KEY=your_openai_key

๐Ÿš€ Usage


import { descriptionModel } from "openai-product-description";

const promptSettings = {
title: "Camera",
description: "A compact and powerful DSLR camera",
customRequest: "Make it sound luxurious",
};

const storeID = "my_store_123";

const description = await descriptionModel.getProductDescription(
promptSettings,
storeID
);

console.log(description);

๐Ÿงช Features

Generates AI-powered product descriptions.

Stores and retrieves descriptions from Firebase Firestore.

Enforces daily usage limits per store.

Works with any sales platform or frontend.

๐Ÿ“ Notes

This is backend only; users must provide their own frontend.

Make sure Firebase and OpenAI credentials are configured correctly.