{"adoption": {"forks": 190, "observed_at": "2026-08-28T04:06:35.252841+00:00", "stars": 2297}, "canonical_url": "https://ross.abutalabs.com/products/filetype", "card": {"archived": false, "artifact_type": "library", "description": "Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature", "domain": ["files", "developer-tools"], "enriched": true, "function": ["parser", "developer-tools"], "health_score": 74, "homepage": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc", "language": "Go", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["h2non/filetype"], "name": "h2non/filetype", "platform": ["go", "cross-platform"], "pushed_at": "2026-07-01T21:07:54+00:00", "repo": "h2non/filetype", "stars": 2297, "tags": ["magic-numbers", "mime-type", "file-type-detection", "file-validation"], "topics": ["magic-numbers", "filetype", "mime", "mime-types", "discovery", "lookup", "magic-number", "extension", "validation", "binary", "golang"], "urls": [], "use_cases": ["detect the real file type of an uploaded file regardless of its extension", "get the MIME type from a binary file header in Go", "check if a file is an image, video, or audio by its content", "validate that uploaded files match their claimed extension", "identify file types from just the first bytes of a stream"], "what_it_is": "A small, dependency-free Go library that infers file and MIME types by checking binary magic number signatures. It supports a wide range of file types, requires only the first 262 bytes of a file, and allows pluggable custom matchers.", "when_to_avoid": ["you need to detect text-based formats like SVG (use go-is-svg instead)", "you need deep content inspection beyond the file header", "you are not working in Go"], "when_to_choose": ["you need fast, dependency-free file type detection in Go", "you only have access to a file header or byte slice, not the full file", "you want to validate uploads by content rather than trusting extensions or client-supplied MIME types"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/filetype", "repo": "h2non/filetype", "role": "main", "score": 63}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:35.252841+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:40:18.326096+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c8b06de5cf778c1e34c1a42ef5980c25162679ac7a934e0d8ea9362a35a661f8", "fetched_at": "2026-08-28T04:06:35.252841+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/filetype"}, {"content_hash": "2528be53c30810719deae6885a40b13157a67928379433c37d06130fde2ddf46", "fetched_at": "2026-08-29T10:20:33.965341+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/filetype?tab=doc"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:20:33.974654+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:20:33.976800+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 90, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3996, "days_push": 63, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 63, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}