Project

arcana

0.0
The project is in a healthy, maintained state
file/libmagic based mime sniffing in pure Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

Arcana 🧙‍♂️

This project is an attempt to write a pure Ruby MIME type/file type sniffer using the same magic rule database as used by file and libmagic.

Current Status

Not yet production ready

It somewhat works, but has missed implementing quite a few rules. Not yet safe to be run against arbitrary user input (can be made to infinite loop).

License

Similarly to file, Arcana is licensed under a 2-Clause BSD License

Similar libraries

  • Marcel Pure Ruby MIME type detection using a database derived from Apache Tika
  • ruby-magic libmagic C bindings for Ruby