SellCraft AI: Local-First Product Listings for Independent Sellers
SellCraft AI: Local-First Product Listings for Independent Sellers
SellCraft AI 使用量化 ONNX 格式的開放權重 SmolLM2 360M Instruct,在本機協助獨立賣家生成可編輯的商品標題、描述、特色、關鍵字及社交媒體文案,無須使用付費雲端 AI API。完成初次安裝及模型設定後,毋須連接互聯網即可生成內容和開啟本機儲存的商品資料。生成內容只供初稿使用,賣家須核實每項聲稱。
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle.
What I Built
SellCraft AI is a local-first product listing studio for independent sellers.
It turns confirmed product details into editable:
- Titles
- Descriptions
- Features
- Keywords and tags
- Social captions
- FAQs
- Markdown, text, and CSV exports
It is designed for sellers who want help writing listings without sending product information to a paid cloud AI API.
SellCraft can help someone selling handmade goods, clothing, electronics, collectibles, or other products create a stronger first draft faster. The seller remains responsible for reviewing every claim before publishing.
Demo
SellCraft runs locally:
npm ci
npm run dev
Open:
http://127.0.0.1:5173
The model can be downloaded from the Settings page or installed with:
npm run setup:model
After setup, generation works without an internet connection as long as the local SellCraft service remains running.
Code
Public repository: View SellCraft AI on GitHub
The project is organized around a small local Node service and a React frontend.
Important areas include:
-
App.tsxfor the listing workflow and editor -
listingsfor prompts and output normalization -
model-managerfor model setup and verification -
model-store.tsfor project-local model storage -
engine.tsfor local inference -
storagefor IndexedDB persistence -
listing.tsfor warnings and exports
The model files are stored inside the project’s models directory and are not committed to Git.
How I Built It
SellCraft uses the open-weight SmolLM2 360M Instruct model in quantized ONNX format.
The model runs locally through:
- Transformers.js
- ONNX Runtime
- A Node.js worker thread
- A loopback HTTP service
- A React and Vite frontend
The application does not use Ollama, a cloud generation fallback, a global model cache, or a paid AI API.
The model is downloaded only when explicitly requested. Every model artifact has a pinned size and SHA-256 checksum. Invalid or incomplete files are rejected.
The application asks the model to generate one listing section at a time. This keeps the response format simple and allows individual sections to be regenerated without replacing the rest of the listing.
Generated output is normalized before it reaches the editor. For example, feature responses wrapped in JSON are converted into plain editable feature lines.
Measured Results
The project was tested on Windows with Node.js 24.14.0 and Google Chrome.
- Model setup passed using the existing verified local files.
- Unit tests:
15/15passed. - End-to-end tests:
9/9passed. - Production build passed.
- Model load time: approximately
2.12 seconds. - Sample generation time: approximately
13.0–22.9 secondsper listing section set. - Section-only regeneration preserved unrelated listing sections.
- Saved listings remained available with external network requests blocked.
- Markdown, plain text, and CSV exports were tested.
The compact model is useful for creating first drafts, but it is not perfect. Real model evaluation showed that it can sometimes repeat text, produce prompt-like filler, omit FAQs, or invent unsupported compatibility and benefit claims.
SellCraft treats AI output as a draft rather than a source of truth. Sellers must verify every generated claim.
Offline Behavior
Initial installation and model setup require internet access.
After that:
- Start the local service with
npm run devornpm start. - Keep the local service running.
- Disconnect from the internet if desired.
- Continue generating listings and opening saved products locally.
Saved listings are stored in browser IndexedDB. They are not synchronized or encrypted, so important work should also be exported.
Photos remain local references. The text model does not analyze or upload them.
Why Does Open Innovation Matter?
Open innovation made it possible to build a private, local workflow without depending on a paid AI provider.
Using an open-weight model means:
- Product details stay on the seller’s device.
- There is no per-request API fee.
- The model can be inspected, replaced, or customized.
- The application can continue working without internet after setup.
- The project does not depend on a single commercial AI platform.
The trade-off is that local inference requires CPU, memory, disk space, and human review. A small open model can be practical, but it cannot replace seller knowledge or factual verification.
Final Thoughts
SellCraft AI is built around a simple idea: AI should help sellers get past the blank page without taking control of their product data.
The model writes the first draft. The seller decides what is true.
來源:DEV Community · dev.to