All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 1m2s
Barcode scanning - Scan barcode in the food sheet reads UPC-A/E and EAN-13/8 live from the camera with ZXing WebAssembly (bundled, precached, CSP allows wasm), with photo and typed-digit fallbacks - Lookups check saved foods first (offline), then local copies of USDA FoodData Central Branded Foods and Open Food Facts, then the live Open Food Facts API; API answers and misses are cached - Server imports refresh in a low-priority child process: USDA when a new archive is published, Open Food Facts weekly by streaming its CSV export; each import builds a new table and swaps it in atomically - Every available nutrient is kept: foods and entries gain optional barcode (GTIN-14) and extra nutrients, shown under More nutrients and included in JSON exports - Settings shows the size, date and any error for each product copy Label scanning - Scan label sends a downscaled photo to the server, read with PaddleOCR PP-OCRv5 (server detection, English recognition) on ONNX Runtime CPU, about 1.3 s median - Parser handles US/Canadian, linear, Spanish and EU per-100 g panels, tilted photos, OCR misspellings and %DV cross-checks - Models are pinned and checksum-verified at image build time Container - Runtime moves to Debian slim for ONNX Runtime's glibc build; other platforms' binaries are pruned - Smoke tests now read a fixture label inside the container - README and Unraid docs cover disk use, network access and refresh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "calio",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite --host 127.0.0.1",
|
|
"dev:server": "node --watch server/index.js",
|
|
"build": "tsc -b && vite build && node scripts/build-sw.js",
|
|
"start": "node server/index.js",
|
|
"test": "node --test tests/*.test.js",
|
|
"password": "node scripts/password.js"
|
|
},
|
|
"dependencies": {
|
|
"barcode-detector": "^3.2.3",
|
|
"express": "^5.1.0",
|
|
"express-rate-limit": "^8.1.0",
|
|
"helmet": "^8.1.0",
|
|
"idb": "^8.0.3",
|
|
"lucide-react": "^0.468.0",
|
|
"matter-js": "^0.20.0",
|
|
"onnxruntime-node": "^1.30.0",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"sharp": "^0.35.5",
|
|
"yauzl": "^3.4.0",
|
|
"zod": "^4.1.12",
|
|
"zxing-wasm": "^3.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/matter-js": "^0.20.2",
|
|
"@types/node": "^24.0.0",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@vitejs/plugin-react": "^5.0.0",
|
|
"fake-indexeddb": "^6.2.6",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.1.12"
|
|
}
|
|
}
|