1 view

vercel-labs/scriptc

TypeScript-to-Native Compiler

TypeScript★ 5,477+102 that day#4 on trending

Analyzed September 28, 2026 at 6aa732c (main) with jscpd 5.4.0 in 2.2s.

C57.9/100
Project health446,469 lines of code (L)
Duplication58
6.8% in typescript, c, javascript, c-header, tsx, bash, cpp, perl, python
Dead code100
0%
Complexity39
69.1%

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.32%duplicated code · 12,630 of 292,602 lines
1,246clones in code
311code files of 2,535 scanned
6.46%duplicated over all files · 2,218 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 2 generated files: packages/runtime/src/scr_island_manifest.h, packages/runtime/src/scr_text_decoder_data.h.

Largest clones in the code

7 more
Largest clones over all files, tests and data included
  • 738 lines in 2 placesc-header26,511 tokens
    4012static const uint16_t scr_td_jis0208[94 * 94] = {
    4013  0x3000, 0x3001, 0x3002, 0xff0c, 0xff0e, 0x30fb, 0xff1a, 0xff1b, 0xff1f, 0xff01, 0x309b, 0x309c,
    4014  0x00b4, 0xff40, 0x00a8, 0xff3e, 0xffe3, 0xff3f, 0x30fd, 0x30fe, 0x309d, 0x309e, 0x3003, 0x4edd,
    4015  0x3005, 0x3006, 0x3007, 0x30fc, 0x2015, 0x2010, 0xff0f, 0xff3c, 0xff5e, 0x2225, 0xff5c, 0x2026,
    4016  0x2025, 0x2018, 0x2019, 0x201c, 0x201d, 0xff08, 0xff09, 0x3014, 0x3015, 0xff3b, 0xff3d, 0xff5b,
    4017  0xff5d, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e, 0x300f, 0x3010, 0x3011, 0xff0b,
    4018  0xff0d, 0x00b1, 0x00d7, 0x00f7, 0xff1d, 0x2260, 0xff1c, 0xff1e, 0x2266, 0x2267, 0x221e, 0x2234,
    4019  0x2642, 0x2640, 0x00b0, 0x2032, 0x2033, 0x2103, 0xffe5, 0xff04, 0xffe0, 0xffe1, 0xff05, 0xff03,
    4020  0xff06, 0xff0a, 0xff20, 0x00a7, 0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1,
    4021  0x25a0, 0x25b3, 0x25b2, 0x25bd, 0x25bc, 0x203b, 0x3012, 0x2192, 0x2190, 0x2191, 0x2193, 0x3013,
    

    First 10 of 738 lines.

  • 6999 lines in 2 placestypescripttests13,997 tokens
    21 +
    31 +
    41 +
    51 +
    61 +
    71 +
    81 +
    91 +
    101 +
    111 +
    

    First 10 of 6999 lines.

  • 89 lines in 2 placesc-header3,151 tokens
    25340xe334, 0xe335, 0xe336, 0xe337, 0xe338, 0xe339, 0xe33a, 0xe33b, 0xe33c, 0xe33d, 0xe33e, 0xe33f,
    25350xe340, 0xe341, 0xe342, 0xe343, 0xe344, 0xe345, 0xe346, 0xe347, 0xe348, 0xe349, 0xe34a, 0xe34b,
    25360xe34c, 0xe34d, 0xe34e, 0xe34f, 0xe350, 0xe351, 0xe352, 0xe353, 0xe354, 0xe355, 0xe356, 0xe357,
    25370xe358, 0xe359, 0xe35a, 0xe35b, 0xe35c, 0xe35d, 0xe35e, 0xe35f, 0xe360, 0xe361, 0xe362, 0xe363,
    25380xe364, 0xe365, 0xe366, 0xe367, 0xe368, 0xe369, 0xe36a, 0xe36b, 0xe36c, 0xe36d, 0xe36e, 0xe36f,
    25390xe370, 0xe371, 0xe372, 0xe373, 0xe374, 0xe375, 0xe376, 0xe377, 0xe378, 0xe379, 0xe37a, 0xe37b,
    25400xe37c, 0xe37d, 0xe37e, 0xe37f, 0xe380, 0xe381, 0xe382, 0xe383, 0xe384, 0xe385, 0xe386, 0xe387,
    25410xe388, 0xe389, 0xe38a, 0xe38b, 0xe38c, 0xe38d, 0xe38e, 0xe38f, 0xe390, 0xe391, 0xe392, 0xe393,
    25420xe394, 0xe395, 0xe396, 0xe397, 0xe398, 0xe399, 0xe39a, 0xe39b, 0xe39c, 0xe39d, 0xe39e, 0xe39f,
    25430xe3a0, 0xe3a1, 0xe3a2, 0xe3a3, 0xe3a4, 0xe3a5, 0xe3a6, 0xe3a7, 0xe3a8, 0xe3a9, 0xe3aa, 0xe3ab,
    
    62980xe338, 0xe339, 0xe33a, 0xe33b, 0xe33c, 0xe33d, 0xe33e, 0xe33f, 0xe340, 0xe341, 0xe342, 0xe343,
    62990xe344, 0xe345, 0xe346, 0xe347, 0xe348, 0xe349, 0xe34a, 0xe34b, 0xe34c, 0xe34d, 0xe34e, 0xe34f,
    63000xe350, 0xe351, 0xe352, 0xe353, 0xe354, 0xe355, 0xe356, 0xe357, 0xe358, 0xe359, 0xe35a, 0xe35b,
    63010xe35c, 0xe35d, 0xe35e, 0xe35f, 0xe360, 0xe361, 0xe362, 0xe363, 0xe364, 0xe365, 0xe366, 0xe367,
    63020xe368, 0xe369, 0xe36a, 0xe36b, 0xe36c, 0xe36d, 0xe36e, 0xe36f, 0xe370, 0xe371, 0xe372, 0xe373,
    63030xe374, 0xe375, 0xe376, 0xe377, 0xe378, 0xe379, 0xe37a, 0xe37b, 0xe37c, 0xe37d, 0xe37e, 0xe37f,
    63040xe380, 0xe381, 0xe382, 0xe383, 0xe384, 0xe385, 0xe386, 0xe387, 0xe388, 0xe389, 0xe38a, 0xe38b,
    63050xe38c, 0xe38d, 0xe38e, 0xe38f, 0xe390, 0xe391, 0xe392, 0xe393, 0xe394, 0xe395, 0xe396, 0xe397,
    63060xe398, 0xe399, 0xe39a, 0xe39b, 0xe39c, 0xe39d, 0xe39e, 0xe39f, 0xe3a0, 0xe3a1, 0xe3a2, 0xe3a3,
    63070xe3a4, 0xe3a5, 0xe3a6, 0xe3a7, 0xe3a8, 0xe3a9, 0xe3aa, 0xe3ab, 0xe3ac, 0xe3ad, 0xe3ae, 0xe3af,
    

    First 10 of 89 lines, the second copy on the right.

  • 60 lines in 2 placesc-header2,121 tokens
  • 7 lines in 23 placestypescript70 tokens
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
typescript179193,8958378,2074.23%
c6385,6043824,1664.87%
javascript474,557232335.11%
c-header67,1434240.34%
bash11779000%
cpp4450000%
perl1174000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
typescript1,832319,2201,62323,0097.21%
c10692,5124504,9195.32%
javascript33616,768731,0216.09%
c-header814,685481,2768.69%
txt1495,899121001.7%
yaml29161012213.32%
json5116,8021100.06%
css15191101.93%
tsx151,806000%
markdown131,273000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 28, 2026#45,477 (+102)2,535471,9322,2186.46%4.32%C 57.96aa732c

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