This new pipeline identifies products meeting specific monthly sold, price, seller count, and Amazon buy box share criteria across categories. It fetches comprehensive product data from Keepa and SP-API, analyzes it using an LLM, and persists the results. A key enhancement is the introduction of a dedicated Redis cache for Keepa and SP-API responses. This reduces API token consumption and improves performance for subsequent runs by caching enriched ASIN data with a 12-hour TTL. Products are saved regardless of their sellability status to provide a complete view.
34 lines
921 B
JSON
34 lines
921 B
JSON
{
|
|
"name": "asin-check",
|
|
"module": "src/index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"bestsellers": "bun run src/bestsellers-by-category.ts",
|
|
"monthly-sold": "bun run src/top-monthly-sold-by-category.ts",
|
|
"mid-range": "bun run src/mid-range-sellers-by-category.ts",
|
|
"upc": "bun run src/upc-lookup.ts",
|
|
"upc-file": "bun run src/upc-file-analysis.ts",
|
|
"start": "bun run src/index.ts",
|
|
"start:web": "bun --hot src/server.ts",
|
|
"build:web": "bun build src/web/index.html --outdir dist",
|
|
"test": "bun test"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"dependencies": {
|
|
"amazon-sp-api": "^1.2.1",
|
|
"exceljs": "^4.4.0",
|
|
"ioredis": "^5.10.1",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"xlsx": "^0.18.5"
|
|
}
|
|
}
|