UNPKG

webgazer-v2

Version:

WebGazer.js is an eye tracking library that uses common webcams to infer the eye-gaze locations of web visitors on a page in real time. The eye tracking model it contains self-calibrates by watching web visitors interact with the web page and trains a map

60 lines (59 loc) 1.79 kB
{ "name": "webgazer-v2", "version": "3.0.2", "repository": { "type": "git", "url": "https://github.com/adapterdigital/webgazer-v2.git" }, "license": "GPL-3.0-or-later", "main": "dist/webgazer.js", "module": "src/index.mjs", "scripts": { "clean": "rimraf dist", "prebuild": "npm run clean", "test": "./test/run_tests_and_server.sh", "dev": "webpack --progress --colors --config webpack.config.js --mode=development", "build": "webpack --progress --colors --config webpack.config.js --mode=production && cp dist/webgazer.js www/. && cp dist/webgazer.js www/data/src/. && cp dist/webgazer.js.map www/. && cp dist/webgazer.js.map www/data/src/.", "gen_docs": "jsdoc -c jsdoc.conf.json src/*", "release": "./script/release.sh" }, "files": [ "/dist", "/src" ], "husky": { "hooks": { "pre-commit": "npm run build", "post-checkout": "yarnhook && npm --prefix ./www install ./www/ && npm run build", "post-merge": "yarnhook && npm --prefix ./www install ./www/ && npm run build", "post-rewrite": "yarnhook && npm --prefix ./www install ./www/ && npm run build" } }, "keywords": [ "webgazer", "eyetracking", "webcam" ], "dependencies": { "@tensorflow-models/face-landmarks-detection": "0.0.3", "@tensorflow/tfjs": "^3.15.0", "localforage": "1.7.3", "numeric": "1.2.6", "regression": "2.0.1" }, "devDependencies": { "browser-sync": "^2.26.14", "chai": "^4.2.0", "file-loader": "^6.0.0", "husky": "^4.2.5", "jsdoc": "^3.6.5", "mocha": "^8.1.1", "ndb": "^1.1.5", "parallel-webpack": "2.6.0", "puppeteer": "^13.0.0", "rimraf": "2.6.3", "webpack": "4.44.1", "webpack-cli": "3.3.12", "yarnhook": "^0.4.3" } }