huggingface / transformers.js-examples
Unit Size

The distribution of size of units (measured in lines of code).

Intro
Learn more...
Unit Size Overall
7% | 31% | 19% | 28% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js7% | 31% | 19% | 28% | 13%
ts0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
next-server85% | 0% | 0% | 8% | 6%
next-client90% | 0% | 0% | 9% | 0%
janus-webgpu0% | 52% | 18% | 17% | 12%
janus-pro-webgpu0% | 52% | 18% | 17% | 12%
llama-3.2-reasoning-webgpu0% | 60% | 0% | 36% | 2%
smolvlm-webgpu0% | 63% | 0% | 33% | 2%
qwen3-webgpu0% | 59% | 0% | 37% | 2%
webgpu-nomic-embed0% | 93% | 0% | 0% | 6%
zyphra-zr1-webgpu0% | 57% | 0% | 39% | 2%
deepseek-r1-webgpu0% | 57% | 0% | 39% | 2%
webgpu-clip0% | 82% | 0% | 0% | 17%
depth-anything0% | 67% | 27% | 0% | 5%
tinyswallow-webgpu0% | 52% | 0% | 44% | 2%
phi-3.5-webgpu0% | 52% | 0% | 44% | 2%
smollm-webgpu0% | 53% | 0% | 44% | 3%
gemma-2-2b-jpn-webgpu0% | 52% | 0% | 45% | 3%
llama-3.2-webgpu0% | 52% | 0% | 44% | 3%
realtime-whisper-webgpu0% | 0% | 75% | 21% | 3%
segment-anything-webgpu0% | 0% | 63% | 26% | 10%
florence2-webgpu0% | 0% | 64% | 22% | 12%
semantic-image-search-web0% | 0% | 47% | 37% | 15%
speecht5-web0% | 0% | 72% | 15% | 11%
depth-estimation-video0% | 0% | 70% | 0% | 29%
conversational-webgpu0% | 0% | 31% | 40% | 28%
remove-background-web0% | 0% | 86% | 0% | 13%
semantic-audio-search0% | 0% | 40% | 50% | 9%
video-background-removal0% | 0% | 72% | 0% | 27%
video-object-detection0% | 0% | 45% | 37% | 17%
vanilla-js0% | 0% | 58% | 0% | 41%
musicgen-web0% | 0% | 48% | 33% | 17%
moonshine-web0% | 0% | 0% | 75% | 24%
omniparser-node0% | 0% | 0% | 63% | 36%
whisper-word-timestamps0% | 0% | 0% | 71% | 28%
browser-extension0% | 0% | 0% | 100% | 0%
pglite-semantic-search0% | 0% | 0% | 0% | 100%
sveltekit0% | 0% | 0% | 0% | 100%
attention-visualization0% | 0% | 0% | 0% | 100%
cross-encoder0% | 0% | 0% | 0% | 100%
adaptive-retrieval0% | 0% | 0% | 0% | 100%
zero-shot-classification0% | 0% | 0% | 0% | 100%
text-to-speech-webgpu0% | 0% | 0% | 0% | 100%
code-completion0% | 0% | 0% | 0% | 100%
node-cjs0% | 0% | 0% | 0% | 100%
webgpu-embedding-benchmark0% | 0% | 0% | 0% | 100%
remove-background-webgpu0% | 0% | 0% | 0% | 100%
the-tokenizer-playground0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
109 1 0
109 1 0
97 6 1
97 6 1
72 3 1
71 2 1
70 8 0
70 5 2
64 3 1
64 3 1
62 8 0
59 2 3
55 2 1
54 2 1
53 2 1
52 2 1
52 2 1
46 3 2
40 7 0
38 7 2
34 2 1
34 2 1
32 4 3
31 1 1
31 3 0
29 7 2
27 5 1
27 1 1
27 5 1
24 3 0
24 1 1
23 1 1
23 1 2
23 2 1
23 1 0
23 2 0
23 3 0
22 2 2
20 4 3
20 2 0
20 2 0
20 2 0
20 2 0
20 1 1
20 2 0
20 2 0
20 2 0
20 4 3
20 2 0
20 2 0