google/magika
Fast and accurate AI powered file content types detection observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 98
- Release rhythm 81
- Longevity 79
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 20
- age_days: 1107
- days_rel: 131
- days_push: 12
- n_releases_24m: 12
Adoption not part of the score
17971 stars · 1120 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Magika is an AI-powered file content type detection tool that uses a small, highly optimized deep learning model to identify 200+ file types within milliseconds on a single CPU. It is available as a Rust-based CLI, a Python package, and bindings for JavaScript/TypeScript, Rust, and Go.
Use cases
- detect the content type of a file
- identify mime type of uploaded files
- detect file type from bytes instead of extension
- scan directories to classify thousands of files
- route files to security scanners based on content type
- detect file types in the browser or nodejs
When to choose
- you need fast, accurate file type detection beyond simple extension or magic-byte checks
- you need to process large volumes of files at scale
- you need bindings across Python, Rust, JavaScript, or Go
- you need accurate detection of textual content types like source code
When to avoid
- you need to detect obscure file types outside its 200+ supported content types
- you cannot tolerate a small ML model dependency in a minimal environment
- you only need basic magic-number checks that libmagic already covers
Facets
cli-tool · maturity stable
machine-learning deep-learning developer-tools security security machine-learning developer-tools files cross-platform cli python rust browser wasm file-type-detection mime-type onnx content-type file-identification nodejs
7 sources
- readme: https://github.com/google/magika · fetched 2026-08-28 · 041077b127ff
- homepage: https://securityresearch.google/magika/ · fetched 2026-08-29 · ec15d30f9bd5
- site_page: https://securityresearch.google/magika/getting-started/installation · fetched 2026-08-29 · 19af51b62f71
- site_page: https://securityresearch.google/magika/getting-started/quick-start · fetched 2026-08-29 · 0b720bd7d2ac
- registry_pypi: https://pypi.org/pypi/magika/json · fetched 2026-08-29 · 1860273316e6
- site_page: https://securityresearch.google/magika/additional-resources/faq · fetched 2026-08-29 · 31f6373ff4e3
- site_page: https://securityresearch.google/magika/additional-resources/changelog · fetched 2026-08-29 · 03a7d6528fb4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/magika | main | 88 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem