{"id":30111187,"url":"https://github.com/zwave-js/log-analyzer","last_synced_at":"2026-01-20T16:50:58.138Z","repository":{"id":308898318,"uuid":"1034499899","full_name":"zwave-js/log-analyzer","owner":"zwave-js","description":"AI powered log analyzer for Z-Wave JS","archived":false,"fork":false,"pushed_at":"2025-08-08T13:51:39.000Z","size":107,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-08T15:33:41.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zwave-js.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-08-08T13:42:37.000Z","updated_at":"2025-08-08T13:51:43.000Z","dependencies_parsed_at":"2025-08-08T15:43:59.005Z","dependency_job_id":null,"html_url":"https://github.com/zwave-js/log-analyzer","commit_stats":null,"previous_names":["zwave-js/log-analyzer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zwave-js/log-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwave-js%2Flog-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwave-js%2Flog-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwave-js%2Flog-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwave-js%2Flog-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zwave-js","download_url":"https://codeload.github.com/zwave-js/log-analyzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwave-js%2Flog-analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269681551,"owners_count":24458596,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2025-08-10T05:30:59.743Z","updated_at":"2025-10-31T10:54:07.846Z","avatar_url":"https://github.com/zwave-js.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Z-Wave JS Log Analyzer\n\nAI powered log analyzer for Z-Wave JS. Helps you analyze Z-Wave JS logs by providing insights and suggestions, and answering your questions.\n\n## Web Interface\n\nVisit the site at [https://zwave-js.github.io/log-analyzer/](https://zwave-js.github.io/log-analyzer/) to get started with the web interface.\n\n## Command Line Interface\n\nYou can also use the log analyzer from the command line:\n\n### Usage\n\n```bash\n# Set your Gemini API key\nexport GEMINI_API_KEY=\"your-api-key-here\"\n\n# Analyze a log file\nnpx @zwave-js/log-analyzer /path/to/logfile.txt\n\n# Ask a specific question about the log\nnpx @zwave-js/log-analyzer /path/to/logfile.txt --question \"Why is node 5 not responding?\"\n```\n\n### API Key\n\n\u003e [!NOTE]\n\u003e AI-powered log analysis require very large context windows up to 1 million tokens. To be able to provide this service, we need you to bring your own Gemini API key. You can get one for free at https://aistudio.google.com/app/apikey\n\n## Library Usage\n\nYou can use this package as a library in your own Node.js applications.\n\n### Installation\n\n```bash\nnpm install -g @zwave-js/log-analyzer\n```\n\n### Usage\n\nThe `ZWaveLogAnalyzer` class provides a simple, high-level API:\n\n```typescript\nimport { ZWaveLogAnalyzer } from \"@zwave-js/log-analyzer\";\n\n// Initialize the analyzer with your API key\nconst analyzer = new ZWaveLogAnalyzer(process.env.GEMINI_API_KEY!);\n\n// Analyze a log file and stream the results\nfor await (const chunk of analyzer.analyzeLogFile(\n\t\"./logfile.txt\",\n\t\"Analyze this log file\",\n)) {\n\tprocess.stdout.write(chunk);\n}\n\n// Ask follow-up questions\nfor await (const chunk of analyzer.continueAnalysis(\n\t\"Can you explain the error in more detail?\",\n)) {\n\tprocess.stdout.write(chunk);\n}\n```\n\n## Changelog\n\n\u003c!--\n\tPlaceholder for next release:\n\t### **WORK IN PROGRESS**\n--\u003e\n\n### 0.0.2 (2025-08-14)\n\n- Fixed an issue where the package could not be imported due to a wrong field in `package.json`\n\n### 0.0.1 (2025-08-12)\n\n- Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwave-js%2Flog-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzwave-js%2Flog-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwave-js%2Flog-analyzer/lists"}