google/magika
★ 18,725 stars
Covered in week 2026-W16 · the 2026-04 report
Fast and accurate AI powered file content types detection
What magika is
Magika is a novel AI-powered file type detection tool that relies on the recent advance of deep learning to provide accurate detection. Under the hood, Magika employs a custom, highly optimized model that only weighs about a few MBs, and enables precise file identification within milliseconds, even when running on a single CPU.
From the repository README · read it on GitHub →
Transcript
Enterprise file identification tools charge thousands a year for what Google just made free. Magika is an AI-powered file type detector that identifies over two hundred content types with ninety-nine percent accuracy. It runs in five milliseconds per file on a single CPU, no GPU needed. Google already uses it to scan hundreds of billions of files every week across Gmail, Drive, and Safe Browsing. You can install it in Python, Rust, or JavaScript with one command. Sixteen thousand stars and counting. Link below. See you tomorrow.