This is a simple Sinatra app that's deployable to Heroku and can act as a logging bridge for Papertrail. It uses sinatra-cross_origin to support CORS. For the most up-to-date version, use papertrail/js-log-bridge-app.