10 views

xerj-org/xerj

XERJ is the new way for AI to search data. Its autoindex capability activates agents to know your data without the token waste of grep (1974 tool). One command indexes code, docs, logs and PDFs for search, RAG, security audits and agent memory, using 40x fewer tokens than grep. It’s durable and can replace ElasticSearch saving you x10 infra costs.

Rust★ 7,956+1,160 that day#6 on trending

Analyzed October 18, 2026 at f37328b (main) with jscpd v5 in 5.6s. Code duplication went from 4.7% on Oct 16 to 4.63% on Oct 18.

D40.3/100
Project health539,090 lines of code (L)
Duplication60
6.2% in rust, javascript, python, bash, java, perl, powershell, c, php, sql, c-header
Dead code8
28.4%
Complexity35
75.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.

4.63%duplicated code · 18,732 of 404,286 lines
1,424clones in code
577code files of 3,096 scanned
15.04%duplicated over all files · 6,855 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 5 generated files: .github/scripts/prev_tag.sh, engine/crates/xerj-engine/src/secret_hash.rs, landing/chart-data.js, landing/playground/src/data/feedback-citations.js, xerj-ux/src/data/feedback-citations.js.

Largest clones in the code

  • 342 lines in 2 placesjavascript3,050 tokens
    10import { esc, fmt } from './text.js';
    11
    12const minMax = (xs) => {
    13  let mn = Infinity, mx = -Infinity;
    14  for (const x of xs) { if (x < mn) mn = x; if (x > mx) mx = x; }
    15  return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];
    16};
    17
    18// Andrew's monotone chain — O(n log n) convex hull.
    19function convexHull(points) {
    

    First 10 of 342 lines.

  • 343 lines in 2 placesjavascript2,597 tokens
    14import { Num, fmt }               from './text.js';
    15import { Spark, Series, Dist, Heatmap, Multiples } from './charts.js';
    16import { VBar, Hist, Gauge, Scatter, Stacked, Treemap } from './charts-ext.js';
    17import { EmbedSpace, Ribbon3D, ChordArcs, ParallelCoords, AttentionMap, FlowBand } from './charts-ai.js';
    18import { Table, Markdown }        from './tables.js';
    19import { TopN, Events }           from './layout.js';
    20
    21// ---------- demo data (deterministic) ---------------------
    22const demoSeries = Array.from({ length: 48 }, (_, i) =>
    23  50 + Math.sin(i / 5.5) * 22 + Math.cos(i / 3.2) * 9 + ((i * 37) % 7)
    

    First 10 of 343 lines.

  • 332 lines in 2 placesjavascript2,317 tokens
    748const secA = e.target.closest('[data-section]');
    749if (secA) {
    750  e.preventDefault();
    751  const sid = secA.getAttribute('data-section');
    752  if (sid === 'dashboards') {
    753    location.hash = '#/dashboards';
    754  } else {
    755    location.hash = '#/' + sid;
    756  }
    757  return;
    

    First 10 of 332 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
rust321344,5491,27612,5123.63%
javascript10529,1371075,85120.08%
python9623,192322731.18%
bash537,0829961.36%
perl1168000%
powershell1158000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
markup20286,3872,54660,33669.84%
rust562440,7852,24124,1505.48%
yaml33260,70460312,43520.48%
log349,5223206,14064.48%
markdown719133,91629513,48110.07%
javascript15649,1282888,10416.5%
json271108,98021914,66313.45%
text21910,5511283,82436.24%
python18838,066761,2973.41%
css77,310671,97827.06%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 18, 2026#67,956 (+1,160)3,096977,8726,85515.04%4.63%D 40.3f37328b
Oct 17, 2026#67,096 (+1,648)3,066968,6566,80315.12%4.68%D 40.2928e004
Oct 16, 2026#35,902 (+715)3,046964,0976,78115.18%4.7%D 40.24556557

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