RSK brings smart contracts to Bitcoins as a sidechain. Check rsk.co
RSK code has been open sourced long ago.
You can check its github repo:
https://github.com/RSKSmartThe test network has been alive for more than a year! working as a sidechain to the Bitcoin Testnet.
Production launch will be close to the end of the year.