Comparison
hnswlib vs nmslib vs pynndescent vs usearch
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 13 of the last 26 weeks. A safe choice.
pip install pynndescentSmaller & Faster Single-File Vector Search Engine from Unum
Actively maintained. Last release 5 weeks ago, commits in 18 of the last 26 weeks. A safe choice.
pip install usearchIn short
- pynndescent is the most used: 7.6M downloads a month, 8.3× more than usearch.
- Maintenance is comparable: usearch 85, pynndescent 79, nmslib 26, hnswlib 22 on Pythie’s Index.
- usearch is growing fastest: downloads +21% over the last month.
- Safe default for a new project: pynndescent.
Side by side
| Metric | hnswlib | nmslib | pynndescent | usearch |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 22 | Pythie’s Index: 26 | Pythie’s Index: 79 | Pythie’s Index: 85 |
| Verdict | Low maintenance activity | Low maintenance activity | Actively maintained | Actively maintained |
| Downloads / month | 676.1K | 121.3K | 7.6M | 907.9K |
| Downloads, month over month | -2% | -8% | +7% | +21% |
| GitHub stars | 5.4K | 3.6K | 981 | 4.4K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 133 | 24 | 103 | 58 |
| Last release | Dec 3, 2023 | Oct 23, 2025 | Dec 1, 2026 | Oct 25, 2026 |
| Releases, 12 months | 0 | 0 | 3 | 12 |
| Weeks with commits | 1 / 26 | 0 / 26 | 13 / 26 | 18 / 26 |
| Recent contributors | 20 | 8 | 12 | 12 |
| First release | Aug 2019 | Jun 2017 | Mar 2018 | May 2023 |
| Python versions | – | – | 3.11 – 3.15 | – |
| License | Apache-2.0 | Apache-2.0 | BSD-2-Clause | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.