Files
oxmc 13a5674ec1 Add server/: Express + SQLite backend for the library
Implements the device lookup/report API DeviceInfo talks to: search-device
(v1 deprecated but sharing v2's lookup logic internally, v2 exact-match
with optional per-unit CMF color resolution), report-device-info, and the
device-names self-update feed. Includes a migration script for anyone
coming from an older JSON-file version, plus docs/CMF_COLOR.md on why the
color-code table has to be hand-maintained.
2026-09-17 03:58:50 -07:00

20 lines
565 B
JSON

{
"name": "device-info-server",
"version": "1.0.0",
"description": "Open-source reference server for the AndroidDeviceInfo library: device name/image lookup, CMF color resolution, and a self-update feed for the bundled device-names database.",
"main": "server.js",
"type": "commonjs",
"scripts": {
"start": "node server.js",
"migrate": "node migrate-json-to-sqlite.js"
},
"license": "Apache-2.0",
"dependencies": {
"better-sqlite3": "^11.3.0",
"express": "^4.19.2"
},
"allowScripts": {
"better-sqlite3@11.10.0": true
}
}