Package Links for GitHub
Ссылки на пакеты для GitHub
Select an import, a dependency or an install command on GitHub to get links to npm, PyPI, Go and more. Unofficial; no network.
What it does
Select a dependency line, an import, or an install command on GitHub, and a small panel next to it links to the package pages: npm, PyPI, pkg.go.dev, crates.io, RubyGems, Packagist, Maven Central. Not affiliated with GitHub.
It works in the file view, including GitHub’s new code view, on Raw files at raw.githubusercontent.com, in pull request and commit diffs, and in READMEs, issues, and pull request conversations: code blocks and inline code. In a diff the file name comes from the diff header.
In package.json and composer.json, only lines inside dependencies, devDependencies, require, and similar sections become links. name, version, scripts, and engines never do. An npm:package alias links the real package. file: and workspace: are skipped. In requirements.txt, pyproject.toml, and Pipfile, names are normalized the way PyPI does: Foo_Bar becomes foo-bar, and “requests[socks]>=2.31” becomes requests. In go.mod, go.sum, and Go imports, the full module path is used, with its /v2 suffix and without the version. Cargo.toml, Gemfile and .gemspec, pom.xml, build.gradle, and libs.versions.toml are read too.
JavaScript and TypeScript imports, including @scope/pkg and subpaths such as lodash/fp, link to the package. Node.js built-ins such as fs and node:path link to the Node.js docs, not to placeholder packages of the same name on npm. Python imports: standard-library modules link to the Python docs, and well-known name mismatches are handled (yaml → PyYAML, cv2 → opencv-python, PIL → Pillow, sklearn → scikit-learn). Relative imports and the repository’s own folders are skipped. Commands: pip, uv, poetry, pipx, npm, npx, npm create, yarn, pnpm, bun, go get and go install, cargo add and install, gem install, bundle add, composer require, with $ or >>> prompts and \ line continuations. Selecting the name is enough: the whole line around the selection is used. “requests” in an ordinary sentence stays a word.
A keyboard selection works too. While the panel is open, Tab moves to the links, the arrows move between them, Enter opens one, and Esc closes the panel and returns to the code with the same selection. Keys in the panel do not trigger GitHub’s shortcuts.
Nothing is downloaded or checked: the links are built from the selected text on the page. No GitHub token and no server of its own. A package name reaches a registry only when you open its link, and the GitHub page address is not sent along. No analytics, ads, or storage. Access is limited to github.com and raw.githubusercontent.com. Links are not inserted into the code: the new code view puts an invisible field over the lines, so the panel appears on selection. Whether a package exists is not checked. For Python imports the module name is not always the package name; apart from the known cases, the module name is used. Gist, GitHub Enterprise, and github.dev are not supported. English and Russian, GitHub’s light and dark themes.
What it looks like
Screenshots from the store materials.




Questions and answers
How do I jump from a dependency on GitHub to its npm or PyPI page?
Select a dependency line, an import, or an install command: a panel appears with links to npm, PyPI, pkg.go.dev, crates.io, RubyGems, Packagist, or Maven Central.
Does it need a GitHub token?
No. Links come from the selected text; no server, analytics, or storage. Access only to github.com and raw.githubusercontent.com.
Which browsers does it support, and what does it cost?
Free, with no ads or subscription. Firefox: https://addons.mozilla.org/firefox/addon/package-links-for-github/. Not published in the Chrome Web Store.
Related extensions
Permissions and technical details
Facts
| Firefox | package-links-for-github |
|---|---|
| Firefox id | github-packages@dmitryq |
| Permissions | none |
| Optional | none |
| Sites | none |
| Optional sites | none |
| Runs on |
|
| Firefox data collection | no data collected |