does this project help? https://github.com/mozilla/cheesecake