Currently I'm working on mime library for D. Dub page:
It can parse MIME database files, including binary ones, like
mime.cache. It also has algorithms for mime type detecting by
It's not fully implemented yet and does not have stable API.
Issues and goals are listed on the github page:
If someone is interested in the project, I would be glad to
discuss interface and implementation details of the library.
If you don't know what is shared MIME database and why does it
matter read this: