{"id":13554957,"url":"https://github.com/TrackJs/TrackJS-Node","last_synced_at":"2025-04-03T07:33:20.301Z","repository":{"id":54430529,"uuid":"191653466","full_name":"TrackJs/TrackJS-Node","owner":"TrackJs","description":"TrackJS Error Monitoring agent for NodeJS","archived":false,"fork":false,"pushed_at":"2025-02-21T19:07:59.000Z","size":396,"stargazers_count":34,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T20:50:08.006Z","etag":null,"topics":["debugger","debugging","debugging-tool","error","error-handling","error-monitoring","error-reporting","javascript","logging","nodejs","trackjs","trackjs-agent","trackjs-node"],"latest_commit_sha":null,"homepage":"https://trackjs.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TrackJs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-12T22:32:27.000Z","updated_at":"2025-03-24T02:43:56.000Z","dependencies_parsed_at":"2022-08-13T15:30:41.815Z","dependency_job_id":"4dcfbcb0-0435-4a15-be2f-46e9787db773","html_url":"https://github.com/TrackJs/TrackJS-Node","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackJs%2FTrackJS-Node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackJs%2FTrackJS-Node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackJs%2FTrackJS-Node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackJs%2FTrackJS-Node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrackJs","download_url":"https://codeload.github.com/TrackJs/TrackJS-Node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246957131,"owners_count":20860565,"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":["debugger","debugging","debugging-tool","error","error-handling","error-monitoring","error-reporting","javascript","logging","nodejs","trackjs","trackjs-agent","trackjs-node"],"created_at":"2024-08-01T12:02:58.539Z","updated_at":"2025-04-03T07:33:19.807Z","avatar_url":"https://github.com/TrackJs.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://trackjs.com/\" target=\"_blank\" align=\"center\"\u003e\n    \u003cimg src=\"https://trackjs.com/assets/external/github_readme.svg\" width=\"280\"\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n# TrackJS Agent for NodeJS\n\n## Reference\n\n\u003c!-- - [TrackJS for NodeJS](https://trackjs.com/for/nodejs) --\u003e\n- [TrackJS NodeJS Documentation](https://docs.trackjs.com/node-agent/installation/)\n\n## Usage\n\nTo use the Agent, call `TrackJS.install(options)` as soon as possible in your code. It will install the monitors into the environment.\n\n```javascript\n// ES5\nconst TrackJS = require(\"trackjs-node\").TrackJS;\n// ES6\nimport { TrackJS } from \"trackjs-node\";\n\nTrackJS.install({\n  token: \"YOUR_TOKEN\"\n  /* other options */\n});\n```\n\nTo add more context to your errors, add context and metadata through the agent.\n\n```javascript\nTrackJS.configure({\n  sessionId: \"session\",\n  version: \"1.0.0\",\n  userId: \"frank@gmail.com\"\n});\n\n// or add arbitrary keys for whatever you think is important\nTrackJS.addMetadata({\n  foo: \"bar\"\n});\n```\n\nTrackJS will automatically gather Telemetry and send errors. If you want to trigger these events yourself, you can.\n\n```javascript\nTrackJS.addLogTelemetry(\"warn\", [\n  \"a warning message\",\n  {\n    /*state object*/\n  }\n]);\n\nTrackJS.track(new Error(\"everything has gone wrong!\"));\n```\n\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrackJs%2FTrackJS-Node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTrackJs%2FTrackJS-Node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrackJs%2FTrackJS-Node/lists"}