1 view

superdesigndev/treg

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

Python★ 3,217+468 that day#10 on trending

Analyzed September 25, 2026 at 9d9d7f6 (main) with jscpd 5.4.0 in 2.1s. Code duplication went from 1.54% on Sep 23 to 1.48% on Sep 25.

C63.5/100
Project health165,643 lines of code (L)
Duplication85
1.9% in python, javascript, vue, bash, typescript, perl, sql
Dead code79
2.5%
Complexity38
70.3%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

1.48%duplicated code · 1,450 of 97,882 lines
84clones in code
410code files of 3,005 scanned
15%duplicated over all files · 3,974 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: src/treg/alembic/versions/0001_baseline_current_schema.py.

Largest clones in the code

  • 547 lines in 2 placesjavascript2,925 tokens
    12(function () {
    13  const PERSONAS = {
    14    tom:   { label: "Tom · owner",        cls: "tom"   },
    15    bob:   { label: "Bob · member→admin", cls: "bob"   },
    16    alice: { label: "Alice · viewer",     cls: "alice" },
    17    sys:   { label: "setup",              cls: "sys"   },
    18    ops:   { label: "platform operator",  cls: "ops"   },
    19    you:   { label: "you · member",       cls: "you"   },
    20    sam:   { label: "Sam · restricted member", cls: "sam" },
    21  };
    

    First 10 of 547 lines.

  • 88 lines in 2 placesjavascript891 tokens
    2(function(global){
    3  const agents=[
    4    {id:'openclaw',name:'OpenClaw',icon:'openclaw-color'},
    5    {id:'grokbot',name:'Grok Bot',icon:'/logos/agents/grokbot.png',plugin:'https://x.ai/bot/plugin/55647425'},
    6    {id:'hermes',name:'Hermes Agent',icon:'hermesagent'},
    7    {id:'claudeai',name:'Claude.ai',icon:'claude-color'},
    8    {id:'claude-code',name:'Claude Code',icon:'claudecode-color'},
    9    {id:'codex',name:'Codex',icon:'codex-color'},
    10  ];
    11  const moreAgents=[
    

    First 10 of 88 lines.

  • 78 lines in 2 placesjavascript602 tokens
    4(function () {
    5  window.TREG_TOUR = {
    6    personas: { tom:"Tom · owner", bob:"Bob · member→admin", alice:"Alice · viewer", sys:"sign-in" },
    7    colors: ["--accent","--green","--amber","--teal","--red"],  // one mat colour per Part, cycled
    8    steps: [
    9      { part:"Sign in", who:"sys", img:"01-signin.webp", title:"Three ways in",
    10        explain:"The sign-in screen offers three separate doors — pick <b>one</b>: <b>Continue with GitHub</b> (real OAuth), <b>Email me a sign-in code</b> (wo…
    11        notice:"This tour uses the email-code door. In production the code is <b>emailed</b> to you (via Resend); the screenshots here were captured in dev mod…
    12      { part:"Sign in", who:"sys", img:"02-email-code.webp", title:"The email code",
    13        explain:"Type your email and click <b>Email me a sign-in code</b>. <b>Check your inbox</b> for the 6-digit code, paste it into the field, and <b>Sign i…
    

    First 10 of 78 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python23383,103766990.84%
html401,8975382%
javascript677,15737139.96%
vue403,615000%
bash171,295000%
typescript6330000%
css5198000%
perl1174000%
sql1113000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
yaml195115,8682,71737,78532.61%
json1,821154,88969429,03118.74%
python414151,9882982,7521.81%
markup16120,9331782,15110.28%
markdown13736,543632,6047.13%
bash492,138731914.92%
html401,8975382%
javascript748,55147198.41%
css153,5894260.72%
text3257246811.89%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 25, 2026#103,217 (+468)3,005503,1203,97415%1.48%C 63.59d9d7f6
Sep 24, 2026#92,816 (+506)2,983497,0523,95415.14%1.52%C 63.587a49eb
Sep 23, 2026#62,317 (+230)2,960494,1473,95015.22%1.54%C 63.995bdc8d

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.