Bug Deduplication with AI (Node.js + OpenRouter)

QA teams often face the same problem: duplicate bug reports. Different test cases fail, but the root cause is actually the same. To cut through the noise, I built a Proof of Concept (PoC) using Node.js + OpenRouter AI to automatically cluster similar f…


This content originally appeared on DEV Community and was authored by Faris Kurnia

QA teams often face the same problem: duplicate bug reports. Different test cases fail, but the root cause is actually the same. To cut through the noise, I built a Proof of Concept (PoC) using Node.js + OpenRouter AI to automatically cluster similar failures and suggest root causes

Why?

🚫 Less time wasted triaging duplicate bugs
🔍 Faster root cause analysis
🤖 AI-driven clustering & summarization

Tech Stack

  • Node.js
  • ml-kmeans for clustering
  • OpenRouter API (chat model for semantic grouping)

Setup
Install dependencies:
npm install node-fetch ml-kmeans dotenv

Add your API key to .env:
OPENROUTER_API_KEY=your_api_key_here
CHAT_MODEL=google/gemma-3n-e2b-it:free

Example snippet:

Example result:

Takeaways

✅ AI reduces noise from duplicate bugs
✅ Saves QA team time during triage
✅ Extensible to native CI/CD logs

This is just a PoC, but it shows how AI can make QA workflows smarter. What do you think of this POC? If you have any suggestions, leave a comment

Or if you want to read the full version, you can click here


This content originally appeared on DEV Community and was authored by Faris Kurnia


Print Share Comment Cite Upload Translate Updates
APA

Faris Kurnia | Sciencx (2025-09-24T16:52:04+00:00) Bug Deduplication with AI (Node.js + OpenRouter). Retrieved from https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/

MLA
" » Bug Deduplication with AI (Node.js + OpenRouter)." Faris Kurnia | Sciencx - Wednesday September 24, 2025, https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/
HARVARD
Faris Kurnia | Sciencx Wednesday September 24, 2025 » Bug Deduplication with AI (Node.js + OpenRouter)., viewed ,<https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/>
VANCOUVER
Faris Kurnia | Sciencx - » Bug Deduplication with AI (Node.js + OpenRouter). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/
CHICAGO
" » Bug Deduplication with AI (Node.js + OpenRouter)." Faris Kurnia | Sciencx - Accessed . https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/
IEEE
" » Bug Deduplication with AI (Node.js + OpenRouter)." Faris Kurnia | Sciencx [Online]. Available: https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/. [Accessed: ]
rf:citation
» Bug Deduplication with AI (Node.js + OpenRouter) | Faris Kurnia | Sciencx | https://www.scien.cx/2025/09/24/bug-deduplication-with-ai-node-js-openrouter/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.