All work

liblens

A browser extension that shows package stats right on repository pages.

Source on GitLab MPL-2.0 · v0.7.0
The extension's layers. A repository page URL is matched by a host adapter (github, gitlab, bitbucket, sourcehut). The detect layer runs four manifest parsers (npm, python, cargo, gomod); each asks the background proxy for the repository's raw manifest and for the package registries (npm, PyPI, crates.io, Go proxy). The proxy fetches with an 8 second timeout and no cookies and returns the text. The render layer builds the Libraries panel and injects it at the host's anchor element, next to the Languages section on GitHub and GitLab. Separately, the tidy layer collapses dotfiles and lockfiles in the repository root listing. Cyan marks content-script layers, amber the background script; the boxes light up in the order a page visit reaches them. repository page _1_hosts github gitlab bitbucket sourcehut _2_detect npm python cargo gomod _3_render Libraries panel at host anchor _4_tidy collapse dotfiles and lockfiles background proxy 8 s timeout no cookies fetch registries npm, PyPI crates.io, Go _0_namespace: helpers, browser shim

liblens is a browser extension that reads a repository's manifests (package.json, pyproject.toml, Cargo.toml, go.mod) and adds a Libraries panel next to the Languages section on GitLab, and has adapters for GitHub, Bitbucket, and SourceHut, with details pulled from npm, PyPI, crates.io, or the Go proxy.

It also tidies up repository root listings by folding the dotfiles and lockfiles behind a single row. It builds for Firefox, Chrome, and Edge from one source.

The ripgrep repository on GitHub with liblens's Libraries panel under Languages, showing the published crate, its download count, and its dependencies.
The FastAPI repository on GitHub with liblens folding five dotfiles into a single "5 hidden" row at the top of the file list.