{"id":21700377,"url":"https://github.com/articulate/paperplane-airbrake","last_synced_at":"2025-03-20T15:42:58.815Z","repository":{"id":57318729,"uuid":"86597200","full_name":"articulate/paperplane-airbrake","owner":"articulate","description":"An airbrake wrapper for paperplane.","archived":false,"fork":false,"pushed_at":"2018-08-24T03:51:53.000Z","size":44,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":67,"default_branch":"master","last_synced_at":"2025-02-27T06:15:56.256Z","etag":null,"topics":["airbrake","paperplane"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/articulate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-29T15:11:35.000Z","updated_at":"2021-02-11T18:43:41.000Z","dependencies_parsed_at":"2022-08-25T20:41:09.518Z","dependency_job_id":null,"html_url":"https://github.com/articulate/paperplane-airbrake","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fpaperplane-airbrake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fpaperplane-airbrake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fpaperplane-airbrake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fpaperplane-airbrake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/articulate","download_url":"https://codeload.github.com/articulate/paperplane-airbrake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244644909,"owners_count":20486885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airbrake","paperplane"],"created_at":"2024-11-25T20:14:10.108Z","updated_at":"2025-03-20T15:42:58.792Z","avatar_url":"https://github.com/articulate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  paperplane-airbrake\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  An \u003ca href=\"https://github.com/airbrake/node-airbrake\"\u003e\u003ccode\u003eairbrake\u003c/code\u003e\u003c/a\u003e wrapper for \u003ca href=\"https://github.com/articulate/paperplane\"\u003e\u003ccode\u003epaperplane\u003c/code\u003e\u003c/a\u003e.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/paperplane-airbrake\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/paperplane-airbrake.svg\" alt=\"npm version\" style=\"max-width:100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/paperplane-airbrake\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/paperplane-airbrake.svg\" alt=\"npm downloads\" style=\"max-width:100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://travis-ci.org/articulate/paperplane-airbrake\"\u003e\u003cimg src=\"https://travis-ci.org/articulate/paperplane-airbrake.svg?branch=master\" alt=\"Build Status\" style=\"max-width:100%;\"\u003e\u003c/a\u003e \u003ca href='https://coveralls.io/github/articulate/paperplane-airbrake?branch=v2'\u003e\u003cimg src='https://coveralls.io/repos/github/articulate/paperplane-airbrake/badge.svg?branch=v2' alt='Coverage Status' /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\n```haskell\ncry :: Airbrake -\u003e Error -\u003e Promise Error\n```\n\nConstructs a `cry` error-handler for `paperplane` to populate the `airbrake` notification with request details, similar to the built-in `express` and `hapi` handlers for `airbrake`.\n\n```js\nconst Airbrake  = require('airbrake')\nconst http      = require('http')\nconst { mount } = require('paperplane')\n\nconst airbrake = Airbrake.createClient(\n  process.env.AIRBRAKE_PROJECT_ID,\n  process.env.AIRBRAKE_API_KEY,\n  process.env.APP_ENV\n)\n\nconst app = () =\u003e { throw new Error('uh oh') }\n\nconst cry = require('paperplane-airbrake')(airbrake)\n\nhttp.createServer(mount({ app, cry })).listen(3000)\n```\n\n**Note:** This version of `paperplane-airbrake` supports `paperplane` v2.  For `paperplane` v1, you will need [`paperplane-airbrake` v0.0.3](https://github.com/articulate/paperplane-airbrake/tree/v0.0.3).  See the [`paperplane` migration guide](https://github.com/articulate/paperplane/blob/master/docs/migration-guide.md) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fpaperplane-airbrake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farticulate%2Fpaperplane-airbrake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fpaperplane-airbrake/lists"}