{"id":20507284,"url":"https://github.com/mathusanp/nyctodetect","last_synced_at":"2026-04-28T17:03:21.856Z","repository":{"id":179932271,"uuid":"662525126","full_name":"MathusanP/nyctodetect","owner":"MathusanP","description":"Image brightness detection software","archived":false,"fork":false,"pushed_at":"2023-12-18T09:20:53.000Z","size":2553,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T23:27:18.932Z","etag":null,"topics":["ai","google","javascript","machinelearning","tensorflow"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nyctodetect","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathusanP.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T10:15:42.000Z","updated_at":"2023-07-18T09:35:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"8aa70f71-c4a0-4ace-bc70-19a96a7d9698","html_url":"https://github.com/MathusanP/nyctodetect","commit_stats":null,"previous_names":["bagelwastaken/nyctodetect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MathusanP/nyctodetect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathusanP%2Fnyctodetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathusanP%2Fnyctodetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathusanP%2Fnyctodetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathusanP%2Fnyctodetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathusanP","download_url":"https://codeload.github.com/MathusanP/nyctodetect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathusanP%2Fnyctodetect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783070,"owners_count":22910301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","google","javascript","machinelearning","tensorflow"],"created_at":"2024-11-15T20:13:10.480Z","updated_at":"2026-04-28T17:03:21.851Z","avatar_url":"https://github.com/MathusanP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nyctodetect\n\nA Node.js package that detects the brightness level of an image from a URL, built using a [Teachable Machine](https://teachablemachine.withgoogle.com) model trained on dark and light images. Then provides a confidence score on how likely it is to trigger a pattern commonly known to be associated with [Nyctophobia](https://en.wikipedia.org/wiki/Fear_of_the_dark)\n\nOriginally created as part of a Google employer engagement programme in sixth form, as a cross-disciplinary project linking psychology (nyctophobia — fear of the dark) with machine learning.\n\n## Installation\n```bash\nnpm install nyctodetect\n```\n\n## Usage\n```js\nconst nyctodetect = require('nyctodetect')\n\nconst imageUrl = 'https://www.example.com/image.jpg';\nnyctodetect(imageUrl);\n```\n\n## How it works\n\nPasses an image URL through a TensorFlow.js model trained via Google's Teachable Machine to classify the image as bright or dark.\n\n## Notes\n\n- Model and weights were trained using [Google Teachable Machine](https://teachablemachine.withgoogle.com)\n\n## Status\n\nThis package is no longer actively maintained and will be deprecated soon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathusanp%2Fnyctodetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathusanp%2Fnyctodetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathusanp%2Fnyctodetect/lists"}