Pkglinks is a command-line tool and web service that maps package relationships across registries. It helps you answer questions like:
It indexes dependency graphs from PyPI (Python), npm (Node.js), RubyGems (Ruby), and Crates.io (Rust).
# Using pip (Python)
pip install pkglinks
Why "Pkglinks" Matters More Than Ever
Before Pkglinks, developers had three unsatisfactory options for working with local or cross-project packages:
- Copy-pasting code: Leads to duplication, inconsistent updates, and technical debt.
- Publishing to a registry: Overkill for work-in-progress features.
npm publish for every small change is slow and noisy.
- Manual symlinks:
ln -s works, but it’s blind. Break a path, and your build fails silently. No version tracking, no cleanup.
Pkglinks solve these problems by offering: Pkglinks
- Zero-config local development: Link a library to an app without waiting for a registry upload.
- Atomic updates: Change the source once; all linked projects see the update (or don't, if you pin a version).
- Disk space efficiency: Avoid duplicate copies of the same package across multiple projects.
- Cross-language workflows: Link a Rust crate to a Python extension module via FFI without complex path tricks.
7. API Reference
The tool also provides a REST API when running in web mode:
| Endpoint | Method | Description |
|----------|--------|-------------|
| /api/v1/deps/ecosystem/name | GET | Forward dependencies |
| /api/v1/revdeps/ecosystem/name | GET | Reverse dependencies |
| /api/v1/search?q=... | GET | Package search |
Example:
curl "http://localhost:8080/api/v1/deps/pypi/click"
2. Vendoring Forked Dependencies
You forked a critical library (lodash-fixed) on GitHub. Instead of waiting for a PR merge:
pkglink add https://github.com/yourname/lodash-fixed.git#fix-bug --name lodash
Pkglinks remembers the commit hash, so your lockfile stays deterministic.
🎨 Developer-First Aesthetics
Choose from themes that code editors love. Dracula Dark, Solarized Light, or Monokai—your link page can finally match your terminal. "Which packages depend on this library
Sidebar: Getting Started with Pkglinks
Installation is simple. For most environments, Pkglinks is available via its own registry:
# Install globally
npm install -g pkglinks
# OR
pip install pkglinks
# Run a scan in your project directory
pkglinks scan
The output provides a clean report, highlighting valid links, warnings for redirects, and errors for dead links.
[End of Article]
Topic: Pkglinks
Tagline: The Ultimate Link-in-Bio Tool Built for Developers & Creators.
8. Use Cases