{"id":18824412,"url":"https://github.com/tiagogm/micro-trackjs","last_synced_at":"2026-01-20T04:30:17.059Z","repository":{"id":41741051,"uuid":"230447212","full_name":"tiagogm/micro-trackjs","owner":"tiagogm","description":"A tiny middleware to send errors to trackjs from zeit's micro framework","archived":false,"fork":false,"pushed_at":"2022-12-10T13:16:27.000Z","size":1456,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T21:30:09.326Z","etag":null,"topics":["logging","micro","trackjs"],"latest_commit_sha":null,"homepage":null,"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/tiagogm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-27T13:16:36.000Z","updated_at":"2019-12-27T15:56:26.000Z","dependencies_parsed_at":"2023-01-26T06:01:42.944Z","dependency_job_id":null,"html_url":"https://github.com/tiagogm/micro-trackjs","commit_stats":null,"previous_names":["tgmorais/micro-trackjs"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagogm%2Fmicro-trackjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagogm%2Fmicro-trackjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagogm%2Fmicro-trackjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagogm%2Fmicro-trackjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiagogm","download_url":"https://codeload.github.com/tiagogm/micro-trackjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763324,"owners_count":19692783,"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":["logging","micro","trackjs"],"created_at":"2024-11-08T00:56:26.601Z","updated_at":"2026-01-20T04:30:14.991Z","avatar_url":"https://github.com/tiagogm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro-trackjs\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/tiagogm/micro-trackjs/actions?query=workflow%3Abuild\" alt=\"build\"\u003e\n        \u003cimg src=\"https://github.com/tgmorais/micro-trackjs/workflows/build/badge.svg\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://github.com/tiagogm/micro-trackjs/actions?query=workflow%3Apublish\" alt=\"publish\"\u003e\n        \u003cimg src=\"https://github.com/tgmorais/micro-trackjs/workflows/publish/badge.svg\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://www.npmjs.com/package/micro-trackjs\" alt=\"npm package link\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/v/micro-trackjs/latest?label=micro-trackjs\u0026style=flat-square\" /\u003e\u003c/a\u003e\n        \n\u003c/p\u003e\n\n`micro-trackjs` allows you to send [`micro`](https://github.com/zeit/micro) errors to [TrackJS](https://trackjs.com).\n\nThis little library was inspired it's \"siblings\" here:\n\nhttps://github.com/amio/awesome-micro#loggers-errors--reporting\n\n## Usage\n\n```sh\nnpm i micro-trackjs\n```\n\n## Basic Example\n\n```js\nconst trackjs = require(\"micro-trackjs\");\nconst token = \"your trackjs app token\";\n\nmodule.exports = trackjs(token)(async (req, res) =\u003e {\n  throw Error(\"hello micro-trackjs\");\n});\n```\n\n## Example with options\n\nSee docs for full options:  \nhttps://docs.trackjs.com/node-agent/sdk-reference/agent-options/\n\n```javascript\nconst trackjs = require(\"micro-trackjs\");\nconst token = \"your trackjs app token\";\n\nmodule.exports = trackjs(key, { application: \"my-application\" })(\n  async (req, res) =\u003e {\n    throw Error(\"hellow micro-trackjs\");\n  }\n);\n```\n\n## Development\n\n```\ngit clone git@github.com:pauldariye/micro-trackjs.git\ncd micro-trackjs \u0026\u0026 yarn # or npm install\nyarn test\n```\n\n## Acknowledgements\n\n- [micro-notify](https://github.com/pauldariye/micro-notify)\n- [micro-sentry](https://github.com/tanmulabs/micro-sentry)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagogm%2Fmicro-trackjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiagogm%2Fmicro-trackjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagogm%2Fmicro-trackjs/lists"}