Files
craft2prints/package.json
T
AndymickandClaude Haiku 4.5 d596cbe836 Add automatic invoice parsing to extract purchase items
- Install pdf-parse and tesseract.js for PDF/image processing
- Create /api/admin/parse-invoice endpoint to extract line items from invoices
- Parser extracts quantity and description from invoice text
- Attempts to match extracted items to products in database
- Update PurchaseForm with "Extract items" button
- Pre-fill purchase form with parsed items (user can edit/add more)
- Supports PDF files and image scans (JPG, PNG, etc)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-16 21:14:49 +01:00

46 lines
1.1 KiB
JSON

{
"name": "personalize-studio",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"start": "next start -p 3000",
"postinstall": "prisma generate",
"db:push": "prisma db push",
"db:seed": "tsx prisma/seed.ts",
"db:studio": "prisma studio"
},
"dependencies": {
"@prisma/client": "5.16.1",
"bcryptjs": "^3.0.3",
"idb-keyval": "6.2.1",
"jose": "^6.2.3",
"konva": "9.3.14",
"next": "14.2.5",
"nodemailer": "6.9.14",
"pdf-parse": "^2.4.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-konva": "18.2.10",
"stripe": "16.2.0",
"tesseract.js": "^7.0.0",
"uuid": "9.0.1",
"zustand": "4.5.4"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/node": "20.14.9",
"@types/nodemailer": "6.4.15",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/uuid": "9.0.8",
"autoprefixer": "10.4.19",
"postcss": "8.4.39",
"prisma": "5.16.1",
"tailwindcss": "3.4.4",
"tsx": "4.16.2",
"typescript": "5.5.3"
}
}