Latest / Security & privacy

Magika

github.com · Package · Active

Detects file content types using a deep learning model

Visit github.com ↗Share

  • file type detection
  • mime type
  • filetype
  • keras classification models
  • keras models
  • file type
  • mime detection
Stars
18.9k
Forks
1.2k
Open issues
121
Last commit
Releases
16
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

Magika is a file type detector that uses a deep learning model to identify what a file contains, based on its content rather than only its name. It is published as a Rust crate, with Python, npm and Go packages, which suits developers and security tools that need file type detection.

Repository description on GitHub: “Fast and accurate AI powered file content types detection ”

What it does

  • Identifies file types from their content with an AI model
  • Rust crate, Python package and npm package
  • Go module for Go projects
  • Uses ONNX model files

Good for

  • Check the real type of uploaded files before processing them.
  • Classify files in a pipeline when file extensions cannot be trusted.

Suits: Developers and security engineers who need content-based file type checks.

What you can try

Available on crates.io as a Rust crate, and as Python and npm packages.

Install

cargo install magika
pipx install magika
brew install magika

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Magika on , when it was first published on crates.io. The oldest published release on GitHub is python-v0.6.1-rc1, dated . Its first tagged release came 349 days after it was found. 16 releases have been published in total; the latest is cli/v2.0.0-rc.0 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (16 in total, busiest month 3).
  1. Repository created on GitHub: google/magika
  2. Found: it was first published on crates.io. crates.io
  3. Release python-v0.6.1-rc1 (pre-release)
  4. Release python-v1.0.1
  5. Release cli/v1.0.2
  6. Release python-v1.0.2
  7. Release cli/v1.1.0
  8. Release cli-latest
  9. Release cli/v2.0.0-rc.0 (pre-release)
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 16 releases. All releases on GitHub

Quick answers

When was Magika released?
Its first tagged release on GitHub is dated 4 Feb 2025. Kip found it on crates.io on 21 Feb 2024.
Is Magika open source?
Its source is public on GitHub at google/magika under the Apache-2.0 licence.
What does Magika run on?
Library.
Is Magika free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Magika still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
crates.iolisting
official API record
GitHub repositorygoogle/magika
REST API record
GitHub Releasesrelease list
REST API record

Stable ID crates-magika. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Security & privacy

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.