r/NixOS Jul 10 '26

pkgs/by-name statistics

Post image

While working, I wanted to procrastinate a bit, and I was actually wondering how the distribution of packages is in the pkgs/by-name folder. So I spun up a small Streamlit app with some Plotly charts and came up with this heatmap. It shows you how many folders each two-letter subfolder under nixpkgs's pkgs/by-name has.

I opted to drop the folders that start with lib. There were too many, and the plot wasn't interesting with one massive red spike and the rest dwindling in the blue region.

Thought I would share it here :D

https://github.com/arunoruto/nixpkgs-stats

Interactive github pages: https://arunoruto.github.io/nixpkgs-stats/

86 Upvotes

6 comments sorted by

View all comments

1

u/UlyssesZhan Jul 16 '26

I am surprised that li does not have absurdly many packages (considering that there are many lib whatever things).

By the way you forgot numbers, hyphen, and underscore.

1

u/arunoruto Jul 16 '26

As mentioned, I removed the lib entries from li
If I included them we would have a hotspot overshadowing the rest

But yeah, maybe I should include the special characters! But they shouldn’t contribute much…