Here there be the source of iqdb.
Danbooru fork, can run in Docker: github danbooru/iqdb
Rust version, compatible with the Danbooru fork, some additional optimizations: github iqdb-rs
Very outdated, likely difficult to compile nowsdays. Don't use it except for archaeological porpoises.
Current release: 20161008
Changelog - README - previous versions
Visit #iqdb@irc.rizon.net if you have any further questions.