Froyo, aka Android 2.2, is open source and available for developers to download as of today. Google announced it today at the Droid X event.

You can go get Android 2.2 at Google's Developer Site for Android. If coding isn't your thing but looking over APIs with starry eyes is, check out the details here