{"id":26678119,"url":"https://github.com/telexintegrations/reactjs-apm","last_synced_at":"2026-02-26T17:05:25.526Z","repository":{"id":278486263,"uuid":"934354853","full_name":"telexintegrations/reactjs-apm","owner":"telexintegrations","description":"🚀 Lightweight APM for React – Capture errors, logs, and performance metrics seamlessly","archived":false,"fork":false,"pushed_at":"2025-02-20T08:24:52.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T23:16:29.899Z","etag":null,"topics":["error-reporting","logging","reactjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/telex-reactjs-apm","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telexintegrations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-02-17T17:31:58.000Z","updated_at":"2025-02-21T16:38:16.000Z","dependencies_parsed_at":"2025-04-12T10:31:49.317Z","dependency_job_id":"0f9955da-1a89-47f4-b517-7c387bd37d4f","html_url":"https://github.com/telexintegrations/reactjs-apm","commit_stats":null,"previous_names":["telexintegrations/reactjs-apm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/telexintegrations/reactjs-apm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Freactjs-apm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Freactjs-apm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Freactjs-apm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Freactjs-apm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/reactjs-apm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Freactjs-apm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29865438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T16:38:37.846Z","status":"ssl_error","status_checked_at":"2026-02-26T16:37:58.932Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["error-reporting","logging","reactjs"],"created_at":"2025-03-26T05:14:57.010Z","updated_at":"2026-02-26T17:05:25.507Z","avatar_url":"https://github.com/telexintegrations.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telex ReactJs APM 📊\n\n[![npm version](https://img.shields.io/npm/v/telex-reactjs-apm)](https://www.npmjs.com/package/telex-reactjs-apm)\n\nA lightweight **Application Performance Monitoring (APM) tool** for React apps. It captures errors, logs important events, and sends them to a remote server without blocking the main thread.\n\n## 🚀 Features\n\n- Captures **Uncaught exceptions and unhandled promise rejections** globally.\n- Logs **custom events** like user actions.\n- **Non-blocking architecture** using async tasks.\n- Simple **React Provider API** for easy integration.\n\n---\n\n## 📦 Installation\n\nInstall the package using **npm** or **yarn**:\n\n```sh\nnpm install telex-reactjs-apm\n# or\nyarn add telex-reactjs-apm\n```\n\n## 🛠️ Setup\n\nWrap your application with the APMProvider in index.(jsx|tsx) or App.(jsx|tsx).\n\n```jsx\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { APMProvider } from \"telex-reactjs-apm\";\nimport App from \"./App\";\n\nReactDOM.createRoot(document.getElementById(\"root\")!).render(\n  \u003cAPMProvider\n    config={{\n        endpoint: \"https://yourtelexchannelwebhook.com\";\n        projectName: \"Channel chat sender name\"\n    }}\n  \u003e\n    \u003cApp /\u003e\n  \u003c/APMProvider\u003e\n);\n```\n\n## 📝 Logging Custom Events\n\nUse useAPM() inside any component to log custom events.\n\n```jsx\nimport { useAPM } from 'telex-reactjs-apm';\n\nconst MyComponent = () =\u003e {\n  const { log } = useAPM();\n\n  const handleClick = () =\u003e {\n    log({\n      endpoint: 'webhook to optionally send to a different channel',\n      eventName: 'button_click',\n      message: 'User clicked the button',\n      status: 'error' | 'success',\n    });\n  };\n\n  return \u003cbutton onClick={handleClick}\u003eLog Event\u003c/button\u003e;\n};\n\nexport default MyComponent;\n```\n\n## Demo\n\n\u003chttps://github.com/user-attachments/assets/ffc60a7a-9272-45c8-af1f-07bc5a0dd90c\u003e\n\n## Testing\n\n- Clone the repository\n\n```bash\ngit clone https://github.com/telexintegrations/reactjs-apm.git\n```\n\n- Run yarn install\n\n```bash\nyarn install\n```\n\n- Run tests locally\n\n```bash\nyarn test\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Freactjs-apm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Freactjs-apm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Freactjs-apm/lists"}