I had a quick thought to do something like this a while back, but never got around to the experimental phase. I ended up buying a new controller instead (whilst grumbling about making an adapter). Thanks for making it happen, and being kind enough to open source it. Looking forward to giving it a try later.
Yeah, I was between buying a new controller or making this too, but I figure it's a perfectly fine controller and I had the hardware lying around.
It doesn't work perfectly, as there are some HID intricacies that need to be remapped, and I don't have a second controller to see whether the intricacies are general or just specific to mine, but let me know if it works for you!