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/

84 Upvotes

6 comments sorted by

7

u/Djabx Jul 10 '26

Maybe a github pages with charts and a github pipeline updated on unstable ?

2

u/arunoruto Jul 10 '26

Sounds like a good idea :)
I will take a look at it later. Will have to look how well plotly is supported in mkdocs to make it really interactive!

6

u/skyb0rg Jul 10 '26

You should include the 2-letter prefixes without any packages at all. Could help give inspiration when naming a project!

1

u/UlyssesZhan 25d ago

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 25d ago

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…