{"id":31755606,"url":"https://github.com/ghalex/logzai-otlp-js","last_synced_at":"2025-10-09T18:54:58.661Z","repository":{"id":316763942,"uuid":"1064757175","full_name":"ghalex/logzai-otlp-js","owner":"ghalex","description":"Official JavaScript/TypeScript client for LogzAI — send logs to the LogzAI platform using the OpenTelemetry Protocol (OTLP).","archived":false,"fork":false,"pushed_at":"2025-09-26T14:06:28.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-26T16:09:41.171Z","etag":null,"topics":["logging","logs"],"latest_commit_sha":null,"homepage":"https://logzai.com","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/ghalex.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-26T14:03:50.000Z","updated_at":"2025-09-26T14:07:12.000Z","dependencies_parsed_at":"2025-09-26T16:19:58.182Z","dependency_job_id":null,"html_url":"https://github.com/ghalex/logzai-otlp-js","commit_stats":null,"previous_names":["ghalex/logzai-otlp-js"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ghalex/logzai-otlp-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghalex%2Flogzai-otlp-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghalex%2Flogzai-otlp-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghalex%2Flogzai-otlp-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghalex%2Flogzai-otlp-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghalex","download_url":"https://codeload.github.com/ghalex/logzai-otlp-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghalex%2Flogzai-otlp-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001867,"owners_count":26083226,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["logging","logs"],"created_at":"2025-10-09T18:54:53.579Z","updated_at":"2025-10-09T18:54:58.647Z","avatar_url":"https://github.com/ghalex.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogzAI OTL\n\nOfficial JavaScript/TypeScript client for LogzAI — send logs to the LogzAI platform using the OpenTelemetry Protocol (OTLP).\n\n## Installation\n\n```bash\nnpm install logzai-otl\n```\n\n## Usage\n\n### Node.js Example\n\n```typescript\nimport logzai from 'logzai-otl';\n\n// Initialize LogzAI\nlogzai.init({\n  ingestToken: 'your-ingest-token',\n  ingestEndpoint: 'https://ingest.logzai.com',\n  serviceName: 'my-node-app',\n  environment: 'production'\n});\n\n// Send logs\nlogzai.info('Application started', { version: '1.0.0' });\nlogzai.error('Something went wrong', { error: 'details' });\n\n// Cleanup\nawait logzai.shutdown();\n```\n\n### Browser Example\n\n```html\n\u003cscript type=\"module\"\u003e\n  import logzai from 'logzai-otl/browser';\n\n  // Initialize LogzAI\n  logzai.init({\n    ingestToken: 'your-ingest-token',\n    ingestEndpoint: 'https://ingest.logzai.com',\n    serviceName: 'my-web-app',\n    environment: 'production'\n  });\n\n  // Send logs\n  logzai.info('User action', { userId: '123', action: 'click' });\n\u003c/script\u003e\n```\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the library\nnpm run build\n\n# Run in development mode\nnpm run dev\n```\n\n## Building\n\nThe library is built using Vite and outputs multiple formats:\n- ES modules (`dist/logzai-otl.es.js`)\n- CommonJS (`dist/logzai-otl.cjs.js`)\n- UMD (`dist/logzai-otl.umd.js`)\n- TypeScript declarations (`dist/index.d.ts`)\n\n## Publishing\n\n```bash\nnpm publish\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghalex%2Flogzai-otlp-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghalex%2Flogzai-otlp-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghalex%2Flogzai-otlp-js/lists"}