Latest / Data & databases

hnsw

github.com · Open source · Maintained

Hierarchical navigable small-world index for vector search in C++

Visit github.com ↗Share

  • hnsw
  • hnsw cpp
  • vector search library
  • nearest neighbor index
  • embedding search c
  • approximate nearest neighbor
Stars
102
Forks
4
Open issues
0
Last commit
Releases
4
Found
20 months ago

GitHub figures as of . They are context, not a ranking.

This is a C++ implementation of the HNSW algorithm for approximate nearest-neighbor search over vector embeddings, written in about 500 lines. It suits developers who want a small, readable index they can embed in their own code.

Repository description on GitHub: “Heirarchical Navigable Small Worlds”

What it does

  • C++ HNSW index for approximate nearest-neighbor search
  • Dependency-free and made of two header files
  • SIMD distance kernels for AVX2, SSE2 and scalar selected at runtime
  • Vectors passed as std::vector of floats

Good for

  • Add approximate nearest-neighbor search to a C++ app
  • Store and query embeddings in a small in-memory index

Suits: C++ developers who want a small, readable vector index.

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw hnsw on , when dicroce posted it to Show HN. The oldest published release on GitHub is v0.0.6, dated . Its first tagged release came 418 days after it was found. 4 releases have been published in total; the latest is v0.2.3 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 73 points, 12 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 73 points, 12 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (4 in total, busiest month 2).
  1. Repository created on GitHub: dicroce/hnsw
  2. Found: dicroce posted it to Show HN. Show HN
  3. Release v0.0.6
  4. Release v0.0.7
  5. Release v0.2.1
  6. Release v0.2.3
  7. Day-7 check recorded by Kip (details)
  8. Day-30 check recorded by Kip (details)

Quick answers

When was hnsw released?
Its first tagged release on GitHub is dated 31 May 2026. Kip found it on Show HN on 8 Apr 2025.
Is hnsw open source?
Its source is public on GitHub at dicroce/hnsw under the BSD-2-Clause licence.
What does hnsw run on?
Library.
Is hnsw free?
It is open source, so the code is free to read and run; check the licence for terms.
Is hnsw still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorydicroce/hnsw
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-43623099. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Data & databases

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.