CocoaButter icon indicating copy to clipboard operation
CocoaButter copied to clipboard

Crash Reporting for Sketch Plugins.

trafficstars

Slack Status apm Twitter Follow

CocoaButter

Crash Reporting for Sketch Plugins.

Demo: https://cocoabutter.herokuapp.com

Motivation

An easy way to collect and view crash reports from real users with Sketch related details such as the current page artboards and exception message.

Integration

  1. Drop CocoaButter.js in your Plugin folder.
  2. @import 'CocoaButter.js' into your .cocoascript files.
  3. Wrap your plugin code with try catch
  4. Initialize CocoaButter instance and report()
@import 'CocoaButter.js'

var onRun = function(context) {
  try {
    ...<your plugin code>...
  }
  catch (e) {
    var cocoabutter = new CocoaButter()
    cocoabutter.baseURL = "<your cocoabutter server url (i.e http://cocoabutter.herokuapp.com)"
    cocoabutter.username = "<your cocoabutter username>"
    cocoabutter.password = "<your cocoabutter password>"
    cocoabutter.report(e, context)
  }
}

Deployment

You can deploy your own CocoaButter server for free on Heroku with a single click, no coding required.

  1. Deploy
  2. Optionally pick a name for your server:
  3. Pick a username and a password for your instance:
  4. Click

CocoaButter as a Service

If you want CococButter as a Service rather than deploying your own upvote this issue:
https://github.com/AnimaApp/CocoaButter/issues/1

Contributing

Contributions are welcome 🎉

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

License

The MIT License (MIT)

Copyright (c) 2016 Anima App

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.