npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

treliq

v0.8.1

Published

AI-Powered PR & Issue Triage for Open Source Maintainers

Readme


Treliq scores, deduplicates, and ranks pull requests and issues so maintainers focus on what matters. Available as a CLI, REST server, and GitHub Action.

The Problem

Code review tools (CodeRabbit, Greptile, Copilot) review diffs. None answer the maintainer's real questions:

  • "These 5 PRs fix the same bug — which one is best?"
  • "Show me the top 10 PRs I should review today."
  • "Auto-close all the duplicate PRs and spam issues."

Code Review != PR Triage. Treliq fills the gap.

Quick Start

# Install
npm install -g treliq

# Score all open PRs (21 signals, no API key needed)
npx treliq scan -r owner/repo --no-llm

# Score PRs + issues together
npx treliq scan -r owner/repo --include-issues

# Find duplicate PR clusters
npx treliq dedup -r owner/repo

# Score a single PR with LLM (needs GEMINI_API_KEY)
npx treliq score -r owner/repo -n 123 -f markdown

# Interactive setup wizard
npx treliq init

Output Example

 #  PR                                          Score  Tier      Scored By
 1  feat: add streaming response support        92     critical  sonnet
 2  fix: resolve memory leak in scanner         87     high      sonnet
 3  refactor: extract scoring engine             71     high      haiku
 4  chore(deps): bump express to v5             45     normal    heuristic
 5  docs: update API reference                  28     low       heuristic

Duplicate Clusters:
  Cluster 1 (93% similarity): #42, #67, #89 — "fix rate limiter"
  Cluster 2 (87% similarity): #15, #31 — "add dark mode"

Spam: #99 (empty diff), #101 (AI-generated boilerplate)

Dashboard

Live Demo

Key Features

  • 21 PR Signals + 12 Issue Signals — CI status, test coverage, merge conflicts, spam detection, intent classification, contributor trust, and more (full list)
  • Cascade Pipeline — Heuristic pre-filter -> Haiku -> Sonnet. ~$13 for 4000 PRs (vs $27 Sonnet-only)
  • Dual ScoringideaScore (is the idea valuable?) + implementationScore (is the code good?) + readinessScore (is it merge-ready?)
  • Cross-type Dedup — PRs and issues in the same vector space; LLM-verified clusters
  • Auto-Actions — Close duplicates, close spam, auto-merge, auto-label by intent (dry-run by default)
  • Multi-Provider LLM — Gemini (free), OpenAI, Anthropic, OpenRouter (200+ models)
  • Server Mode — Fastify REST API, SSE real-time events, cron scheduler, Slack/Discord webhooks (API docs)
  • Zero-Cost Mode--no-llm runs 21-signal heuristic scoring with zero API calls

Architecture

CLI / GitHub Action / REST API
        |
   PR & Issue Scanner (GitHub GraphQL + REST)
        |
   21-Signal Scoring (TOPSIS) + Intent Classification
        |
   Cascade LLM Pipeline (Heuristic -> Haiku -> Sonnet)
        |
   Diff Analysis + Vision Doc Alignment
        |
   Cross-type Dedup (LanceDB embeddings + LLM verify)
        |
   Semantic Issue-PR Matching + Holistic Re-ranking
        |
   Auto-Actions (close dupes, spam, merge, label)
        |
   Output: table / JSON / markdown / dashboard / SSE

See docs/ARCHITECTURE.md for the full Mermaid diagram.

Configuration

| Variable | Required | Description | |----------|----------|-------------| | GITHUB_TOKEN | Yes | GitHub API access | | GEMINI_API_KEY | For LLM | Gemini scoring + embeddings + vision (free tier) | | OPENAI_API_KEY | For LLM | OpenAI scoring + embeddings | | ANTHROPIC_API_KEY | For LLM | Anthropic scoring (embeddings via Gemini/OpenAI fallback) | | OPENROUTER_API_KEY | For LLM | 200+ models via OpenRouter | | TRELIQ_MODEL | No | Override default model for any provider |

Auto-Actions

# Preview (dry-run, safe)
npx treliq scan -r owner/repo \
  --auto-close-dupes --auto-close-spam \
  --auto-merge --merge-threshold 90 \
  --auto-label-intent

# Execute for real
npx treliq scan -r owner/repo \
  --auto-close-dupes --auto-close-spam --auto-merge \
  --auto-label-intent --confirm

Server Mode

# Start with dashboard
npx treliq server -r owner/repo -p 4747

# With webhooks + cron + notifications
npx treliq server -r owner/repo -p 4747 \
  --webhook-secret $WEBHOOK_SECRET \
  --schedule "0 */6 * * *" \
  --slack-webhook $SLACK_URL

See docs/API.md for all endpoints and SSE events.

GitHub Action

name: Treliq PR Triage
on:
  pull_request:
    types: [opened, synchronize, reopened]

permissions:
  contents: read
  pull-requests: write
  issues: write

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm install -g treliq@latest
      - name: Score PR
        id: score
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
        run: |
          BODY=$(treliq score -r ${{ github.repository }} -n ${{ github.event.pull_request.number }} -f markdown)
          echo "body<<EOF" >> $GITHUB_OUTPUT
          echo "$BODY" >> $GITHUB_OUTPUT
          echo "EOF" >> $GITHUB_OUTPUT
      - uses: actions/github-script@v7
        env:
          SCORE_BODY: ${{ steps.score.outputs.body }}
        with:
          script: |
            await github.rest.issues.createComment({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.payload.pull_request.number,
              body: process.env.SCORE_BODY,
            });

Comparison

| Feature | Treliq | CodeRabbit | Greptile | Copilot | |---------|--------|-----------|---------|---------| | PR scoring & ranking | Yes | No | No | No | | Issue triage | Yes | No | No | No | | Duplicate detection | Yes | No | No | No | | Auto-close/merge/label | Yes | No | No | No | | Heuristic-only mode | Yes | N/A | N/A | N/A | | Multi-provider LLM | 4 providers | OpenAI | Proprietary | GitHub | | Self-hosted server | Yes | SaaS | SaaS | SaaS | | Code review | No | Yes | Yes | Yes |

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT (c) Mahsum Aktas


Docs: CHANGELOG | Signals | API | Architecture