Comparison
hnswlib vs nmslib vs pynndescent
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
hnswlib
Low maintenance activity. Last release over 2 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install hnswlibNon-Metric Space Library (NMSLIB)
Low maintenance activity. Last release 13 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install nmslibNearest Neighbor Descent
Actively maintained. Last release today, commits in 12 of the last 26 weeks. A safe choice.
$
pip install pynndescentIn short
- pynndescent is the most used: 7.6M downloads a month, 11× more than hnswlib.
- pynndescent also has the best Pythie’s Index (77).
- Safe default for a new project: pynndescent.
Side by side
| Metric | hnswlib | nmslib | pynndescent |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 22 | Pythie’s Index: 26 | Pythie’s Index: 77 |
| Verdict | Low maintenance activity | Low maintenance activity | Actively maintained |
| Downloads / month | 676.1K | 121.3K | 7.6M |
| Downloads, month over month | -2% | -8% | +7% |
| GitHub stars | 5.4K | 3.6K | 981 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 133 | 24 | 103 |
| Last release | Dec 3, 2023 | Oct 23, 2025 | Dec 1, 2026 |
| Releases, 12 months | 0 | 0 | 3 |
| Weeks with commits | 1 / 26 | 0 / 26 | 12 / 26 |
| Recent contributors | 20 | 8 | 12 |
| First release | Aug 2019 | Jun 2017 | Mar 2018 |
| Python versions | – | – | 3.11 – 3.15 |
| License | Apache-2.0 | Apache-2.0 | BSD-2-Clause |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.