bencode (as detailed on the wiki page) is the file format used by torrent files to store the tracking and piece data in a compact binary format.
This simple library lets you process torrent those torrent files, and present the information in JSON very simply.
The library is worth your attention because:
Drag and drop a torrent (or other bencode'd) file here:
Or click for the live bencode demo.
The full source to bencode is available on Github!