Skip to content

Public domain example files for every mimetype (in progress).

Notifications You must be signed in to change notification settings

Jaciones/mimetype-menagerie

 
 

Repository files navigation

The Mimetype Menagerie

Goals

At least one valid, representative file for every mimetype, because examples are useful and file extensions are unreliable.

Criteria

In order of priority:

  1. Public domain or Creative Commons licensing.
  2. Correctly represents the mimetype.
  3. Stable URIs (permalinks are best).
  4. Relatively small file size (to save disk space and bandwidth).

Is that possible?

The IANA lists about 1500 registered mimetypes, some of which are deprecated. There are many more which are unofficial.

It's a big job, but not impossible. See the coverage report for details.

Example usecase

Suppose you want an example of a VRML file.

Wikipedia discusses VRML and links to examples, but finding an actual VRML file via web search is non-trivial.

A Google filetype search for .vrml files? Not helpful.

https://google.com/search?q=filetype%3Avrml

Oops, that should be .wrl files.

https://google.com/search?q=filetype%3Awrl

But most of the results still aren't relevant.

Even if you find a good link, you either have to keep track of the file or bookmark the link, which could give a 404 the next time you open it.

With a mimetype menagerie, it's as simple as a link to a directory:

media-types/model/vrml/

And finding files from scratch is a simple search with a file manager or on the commandline like this:

$ cd media-types/
$ find . -iname '*VRML*'
./model/vrml
$ ls model/vrml/
HelloWorld.wrl

Notes

Some mimetypes may not have any public domain examples, or may be patent-encumbered. These can be linked to, but will have to be omitted from the actual git repository.

Similar projects

The fuzzing programs American Fuzzy Lop (afl) has a number of testcases, such as archives and image formats:

https://github.com/loverszhaokai/AFL/tree/master/testcases

About

Public domain example files for every mimetype (in progress).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 49.5%
  • Roff 22.2%
  • Shell 17.0%
  • Python 7.1%
  • JavaScript 2.0%
  • Makefile 1.8%
  • CSS 0.4%