{"id":19299970,"url":"https://github.com/cloudogu/spotter","last_synced_at":"2026-01-11T17:05:27.856Z","repository":{"id":45544767,"uuid":"112118896","full_name":"cloudogu/spotter","owner":"cloudogu","description":"Content-Type and language recognition library","archived":false,"fork":false,"pushed_at":"2023-08-24T20:27:27.000Z","size":252,"stargazers_count":4,"open_issues_count":6,"forks_count":2,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-08-05T16:12:56.110Z","etag":null,"topics":["content-type","detection","java","language","maven","mime-type","recognition","tika"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudogu.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":"2017-11-26T21:41:10.000Z","updated_at":"2023-02-08T19:07:06.000Z","dependencies_parsed_at":"2022-07-15T16:37:40.637Z","dependency_job_id":null,"html_url":"https://github.com/cloudogu/spotter","commit_stats":null,"previous_names":["sdorra/spotter"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/cloudogu/spotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fspotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fspotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fspotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fspotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudogu","download_url":"https://codeload.github.com/cloudogu/spotter/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fspotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["content-type","detection","java","language","maven","mime-type","recognition","tika"],"created_at":"2024-11-09T23:13:18.569Z","updated_at":"2026-01-11T17:05:27.852Z","avatar_url":"https://github.com/cloudogu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotter\n\n[![Build Status](https://travis-ci.org/sdorra/spotter.svg?branch=master)](https://travis-ci.org/sdorra/spotter)\n[![Maven Central](https://img.shields.io/maven-central/v/com.cloudogu.spotter/spotter.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22spotter%22)\n[![Quality Gates](https://sonarcloud.io/api/project_badges/measure?project=com.cloudogu.spotter%3Aspotter\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=com.cloudogu.spotter%3Aspotter)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.cloudogu.spotter%3Aspotter\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=com.cloudogu.spotter%3Aspotter)\n\nSpotter is a library which is able to detect the content type of a file. \nIt is also able to detect the programming language of source files. \nSpotter uses [Apache Tika](https://tika.apache.org/) for the content type recognition and uses the [language.yml](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml) from the [Linguist project](https://github.com/github/linguist).\n\n## Usage\n\nAdd the latest stable version of to the dependency management tool of your choice.\n\nE.g. for maven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.cloudogu.spotter\u003c/groupId\u003e\n    \u003cartifactId\u003espotter-core\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUse the latest version from maven central: [![Maven Central](https://img.shields.io/maven-central/v/com.cloudogu.spotter/spotter.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22spotter%22)\n\nFor versions before 4.0.0 use the following coordinates:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.sdorra\u003c/groupId\u003e\n    \u003cartifactId\u003espotter-core\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Examples\n\nDetect the content type and the programming language of a file:\n\n```java\nContentType contentType = ContentTypes.detect(\"com/cloudogu/spotter/Language.java\");\nSystem.out.println(\"Content-Type: \" + contentType);\n\nOptional\u003cLanguage\u003e language = contentType.getLanguage();\nif (language.isPresent()) {\n    System.out.println(\"Language    : \" + language.get().getName());\n}\n```\n\n## License\n\nThis project is licensed under AGPL-3.0-only - see the [LICENSE](LICENSE.txt) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudogu%2Fspotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudogu%2Fspotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudogu%2Fspotter/lists"}