solidjs/solid

A declarative, efficient, and flexible JavaScript library for building user interfaces.

TypeScript★ 36,651+40 that day#12 on trending

Analyzed November 19, 2026 at 0c031aa (main) with jscpd v5 in 4.1s.

D50/100
Project health571,521 lines of code (L)
Duplication31
14.4% in typescript, tsx, javascript, rust, jsx, bash
Dead code99
0.1%
Complexity43
61.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.

3.01%duplicated code · 4,690 of 156,018 lines
303clones in code
298code files of 2,908 scanned
14.41%duplicated over all files · 5,775 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 2 generated files: packages/h/jsx-runtime/src/jsx.d.ts, packages/web/jsx/jsx.d.ts.

Largest clones in the code

  • 137 lines in 2 placestypescript321 tokens
    38type PreloadLinkAttributes = {
    39  type?: string;
    40  crossorigin?: JSX.HTMLCrossorigin;
    41  integrity?: string;
    42  referrerpolicy?: JSX.HTMLReferrerPolicy;
    43  fetchpriority?: JSX.HTMLFetchPriority;
    44  media?: string;
    45};
    46
    47/**
    

    First 10 of 137 lines.

  • 89 lines in 2 placestypescript317 tokens
    355    IS_OBSERVE ? { name: "eval conditions", sync: true } : { sync: true }
    356  ) as unknown as SolidElement;
    357}
    358
    359export type MatchProps<T, F extends ConditionalRenderCallback<T> = ConditionalRenderCallback<T>> = {
    360  when: T | undefined | null | false;
    361  keyed?: false;
    362  children: ConditionalRenderChildren<T, F>;
    363};
    364export type KeyedMatchProps<
    

    First 10 of 89 lines.

  • 53 lines in 2 placestypescript316 tokens
    40    : `Stale read from <${name}>.`;
    41};
    42
    43/**
    44 * Creates a list of elements from a list.
    45 *
    46 * Receives a map function as its child and returns a JSX element for each
    47 * list item; if the list is empty, an optional `fallback` is rendered instead.
    48 *
    49 * The child callback shape follows the keying mode:
    
    38  fallback?: Accessor<SolidElement>;
    39};
    40
    41/**
    42 * Creates a list of elements from a list
    43 * @description https://docs.solidjs.com/reference/solid-js/components-jsx/for
    44 */
    45export function For<T extends readonly any[], U extends SolidElement>(props: {
    46  each: T | undefined | null | false;
    47  fallback?: SolidElement;
    

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

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
rust7842,2831581,7994.25%
typescript164101,4341302,6412.6%
javascript5412,257152502.04%
jsx133000%
bash111000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
typescript990308,4902,22536,61211.87%
tsx811136,9821,58819,28814.08%
javascript71385,10596424,84729.2%
markdown13790,43380013,76315.22%
rust8543,8061591,8134.14%
json623,3441936510.92%
css164,3081071916.69%
diff91,3683513.73%
jsx441,2833191.48%
yaml127792243.08%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 19, 2026#1236,651 (+40)2,908676,5825,77514.41%3.01%D 500c031aa

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