{"id":37022921,"url":"https://github.com/deevvicom/device-detector","last_synced_at":"2026-01-14T02:44:47.263Z","repository":{"id":57718698,"uuid":"336960223","full_name":"deevvicom/device-detector","owner":"deevvicom","description":"Java library that parses user agent to extract meaningful information.","archived":false,"fork":false,"pushed_at":"2022-02-22T06:28:06.000Z","size":7632,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T12:55:14.871Z","etag":null,"topics":["bot","device-detector","user-agent"],"latest_commit_sha":null,"homepage":"","language":"Java","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/deevvicom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-08T04:30:47.000Z","updated_at":"2025-05-28T06:41:23.000Z","dependencies_parsed_at":"2022-09-26T22:30:33.210Z","dependency_job_id":null,"html_url":"https://github.com/deevvicom/device-detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deevvicom/device-detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevvicom%2Fdevice-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevvicom%2Fdevice-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevvicom%2Fdevice-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevvicom%2Fdevice-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deevvicom","download_url":"https://codeload.github.com/deevvicom/device-detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevvicom%2Fdevice-detector/sbom","scorecard":{"id":332310,"data":{"date":"2025-08-11","repo":{"name":"github.com/deevvicom/device-detector","commit":"8b33d05e5bd91a74719ef8964143b103f8a399a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-3x8x-79m2-3w2w","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:54:50.829Z","repository_id":57718698,"created_at":"2025-08-18T03:54:50.829Z","updated_at":"2025-08-18T03:54:50.829Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","device-detector","user-agent"],"created_at":"2026-01-14T02:44:46.566Z","updated_at":"2026-01-14T02:44:47.249Z","avatar_url":"https://github.com/deevvicom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Device Detector\nThe aim of this library is to fetch as much as possible information from a user-agent string.\nIf a valid user-agent is provided, then the following information is determined:\n* Bot or not\n* For non-bots:\n  * browser or application\n  * operating system\n  * device type\n  * device brand  \n\n### Features\n* Over 200 types of bots\n* Almost 50 mobile applications\n* Almost 1000 brands\n* Almost 100 types of operating systems\n* Around 200 types of browsers\n* On average, it takes *12ms* to parse a user-agent\n\n### How to use it\nThe recommended way to use this library is through your build tool.\n\nThe device-detector artifact is published to Maven Central, using the group `com.deevvi`.\n\nLatest stable version is `1.14.0`.\n\nTherefore,it can be added to your Gradle project by adding the dependencies:\n\n```\ncompile \"com.deevvi:device-detector:1.14.0\"\n```\nand in Maven:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.deevvi\u003c/groupId\u003e\n    \u003cartifactId\u003edevice-detector\u003c/artifactId\u003e\n    \u003cversion\u003e1.14.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nCode example:\n\n```\nDeviceDetectorParser parser = DeviceDetectorParser.getClient();\nDeviceDetectorResult result = parser.parse(\"Mozilla/5.0 (Linux; Android 7.1.1; G8232 Build/41.2.A.0.235) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36\");\n\nSystem.out.println(\"Result found: \" + result.found());\nSystem.out.println(\"User-agent is mobile: \" + result.isMobileDevice());\nSystem.out.println(\"User-agent is bot: \" + result.isBot());\nSystem.out.println(\"Result as JSON: \" + result.toJSON());\n```\n\nOutput:\n```\nResult found: true\nUser-agent is mobile: true\nUser-agent is bot: false\nResult as JSON: {\"os\":{\"osFamily\":\"Android\",\"name\":\"Android\",\"shortName\":\"AND\",\"version\":\"7.1.1\",\"platform\":\"\"},\"client\":{\"deviceType\":\"browser\",\"engine\":\"Blink\",\"browserFamily\":\"Chrome\",\"name\":\"Chrome Mobile\",\"shortName\":\"CM\",\"version\":\"55.0.2883.91\"},\"device\":{\"deviceType\":\"smartphone\",\"model\":\"Xperia XZs\",\"brand\":\"Sony\"}}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevvicom%2Fdevice-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeevvicom%2Fdevice-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevvicom%2Fdevice-detector/lists"}