Skip to content

code_loc

Counts lines per language across tracked source files in the discovered git repo (extension-based classification, vendored / generated dirs and lockfiles skipped). Text summarises totals; TextBlock / MarkdownTextBlock / Entries / Bars rank languages; Ratio exposes the primary language's share; NumberSeries sketches the distribution; Badge tiers the codebase by size. The unit option toggles raw / kloc / percent display.

KindSafetyShapes
cachedSafetext, text_block, markdown_text_block, entries, bars, ratio, number_series, badge
OptionTypeRequiredDefaultDescription
limitintegerno10Cap on rendered languages (TextBlock / MarkdownTextBlock / Entries / Bars / NumberSeries). The Text summary always reports the full count.
unitloc | kloc | percent (alias %)nolocDisplay format for counts: loc (1,234), kloc (1.2k), or percent (67.8%). Percent falls back to loc for the Text summary and kloc for Badge (where a percentage of self is meaningless). Ratio and NumberSeries ignore this option (Ratio is always 0..=1; NumberSeries renderers normalise visually).
ShapeRenderers
textanimated_boot, animated_figlet_morph, animated_postfx, animated_scanlines, animated_splitflap, animated_typewriter, animated_wave, text_ascii, text_plain
text_blockanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, list_plain
markdown_text_blocktext_markdown
entriesanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, grid_table
barsanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, chart_bar, chart_pie, list_ranking
ratioanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, gauge_battery, gauge_circle, gauge_line, gauge_segment, gauge_thermometer
number_seriesanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, chart_histogram, chart_sparkline
badgeanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, status_badge
▗█  ▟▀▙     ▟▀▙  ▟█ █▀▀     ▝█   ▀                                              
 █   ▄▛      ▄▛ ▟▘█ ▀▀▙      █  ▝█  █▀▙ ▟▀▙ ▟▀▀     ▝▀▙ ▟▀▙ ▜▟▜▖▟▀▙ ▟▀▀ ▟▀▀     
 █  ▟▘▄  ▄  ▄ █ ▀▀█▘▄ █      █   █  █ █ █▀▀ ▝▀▙     ▟▀█ █ ▄ ▐▌▝▘█ █ ▝▀▙ ▝▀▙     
▀▀▀ ▀▀▀ ▗▛  ▝▀▘  ▝▀▘▝▀▘     ▝▀▘ ▝▀▘ ▀ ▀ ▝▀▘ ▀▀▘     ▝▀▝▘▝▀▘ ▀▀  ▝▀▘ ▀▀▘ ▀▀▘     
                                                                                
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "text_ascii"
12,345 lines across 6 languages         
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "text_plain"
Rust         8,234                      
TypeScript   2,111                      
Markdown       820                      
TOML           560                      
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "list_plain"
- Rust 8,234                            
- TypeScript 2,111                      
- Markdown 820                          
- TOML 560                              
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "text_markdown"
Rust                               8,234
TypeScript                         2,111
Markdown                             820
TOML                                 560
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "grid_table"
███                                     
███                                     
███                                     
███                                     
███                                     
███ ▆▆▆                                 
███ ███ ▅▅▅ ▃▃▃                         
Rus Typ Mar TOM                         
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "chart_bar"
                                        
         ●          ■ Rust 70.2%        
    ●●●●●●●●●●●                         
   ●●●●●●●●●●●●●    ■ TypeScript 18.0%  
  ●●●●●●●●●●●●●●●                       
 ●●●●●●●●●●●●●●●●●  ■ Markdown 7.0%     
  ●●●●●●●●●●●●●●●                       
   ●●●●●●●●●●●●●    ■ TOML 4.8%         
    ●●●●●●●●●●●                         
         ●                              
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "chart_pie"
1. Rust                             8234
2. TypeScript                       2111
3. Markdown                          820
4. TOML                              560
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "list_ranking"
                                        
     ┌────────────────────────────┐     
Rust │████████████████████░░░░░░░░│▮ 70%
     └────────────────────────────┘     
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "gauge_battery"
████████████████████████████            
██████████████████Rust █████            
████████████████████████████            
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "gauge_circle"
Rust: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░ 70% 
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "gauge_line"
                                        
                                        
Rust ▰▰▰▰▱ 70%                          
                                        
                                        
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "gauge_segment"
     ╭─╮            
     │░│            
     │░│            
     │█│            
Rust │█│ 70%        
     │█│            
     │█│            
     ╰●╯            
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "gauge_thermometer"
████████                                
████████                                
████████                                
████████                                
████████▄▄▄▄▄▄▄▄                ▄▄▄▄▄▄▄▄
████████████████                ████████
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "chart_histogram"
█                                       
█                                       
█▆▂▁                                    
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "chart_sparkline"
● medium · 12k                          
[[widget]]
id = "code_loc"
fetcher = "code_loc"
render = "status_badge"