Polished Perl code is available on CPAN and a bunch of incomplete or work-in-progress code is available on Github.