semantic-graph finds duplicate and related tests in your test suite. It scans Playwright-style test files written with test() and test.describe(), embeds each test, groups similar tests with DBSCAN clustering and names each cluster with an LLM. The results open in a local web UI with a folder tree and a 2D similarity graph laid out with UMAP, so overlapping tests are easy to spot.

It is for developers and QA engineers who want to keep a growing suite lean and find tests that cover the same ground. Run it with npx @testchimp/semantic-graph visualize --tests-dir ./tests and an OpenAI API key, or use Anthropic Claude together with Voyage embeddings. No database is needed, since embeddings are computed in memory on each run. Maintained by TestChimp (https://testchimp.io), the QA platform for coding agents.

Features

  • Scans .spec and .test files (TypeScript and JavaScript) in Playwright-style syntax
  • Embeds each test and measures cosine similarity between tests
  • DBSCAN clustering to group duplicate and related tests
  • LLM-generated cluster names
  • 2D UMAP graph and folder tree in a local browser UI
  • Works with OpenAI, or Anthropic Claude plus Voyage embeddings
  • Configurable embedding and LLM models through environment variables
  • No database: everything runs in memory on each run
  • One command via npx; reusable core library published as @testchimp/semantic-graph-core
  • Open source under the MIT License

Project Activity

See All Activity >

License

MIT License

Follow semantic-graph

semantic-graph Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of semantic-graph!

Additional Project Details

Intended Audience

Developers, Quality Engineers

User Interface

Command-line, Web-based

Programming Language

JavaScript, TypeScript

Related Categories

JavaScript Software Testing Tool, JavaScript QA Automation Software, TypeScript Software Testing Tool, TypeScript QA Automation Software

Registered

26 minutes ago