AI Product Content Generator
A Node library that writes product titles, descriptions, and meta copy for a whole catalog.
The problem
A catalog of a few thousand products needs a title, a description, keywords, and a meta description for every one of them. Writing that by hand takes weeks. Writing a script for it takes an afternoon, and then you write the same script again on the next project.
What I built
So I packaged it properly. The library calls Qwen 2.5-14B-Instruct through Hugging Face, runs a prompt pipeline that scores each response for quality, validates input with Zod, retries with exponential backoff when the API misbehaves, and keeps a history of what it produced. A small Vite demo app shows it running, and the Jest suite covers the pieces that matter.
- Generates SEO titles, descriptions, keywords, and meta descriptions
- Prompt pipeline with response quality scoring
- Zod validation, exponential-backoff retries, and generation history
- Vite demo app and a full Jest unit test suite
How it turned out
It works as a drop-in for product SEO across projects instead of another one-off script, which was the entire point of building it as a library.