Ross ROSS = Recommend OSS · open-source software intelligence for agents

google/magika

Fast and accurate AI powered file content types detection observed · 2026-08-28

github.com/google/magika · homepage · Python · Apache-2.0 (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
google/magikamain88

For agents

markdown · JSON · MCP: product_card(name="google/magika")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem