33rd of 17 in RAG and search

sonic

Lightweight schema-less search index that returns object IDs, written in Rust

Stars
21.4k
License
MPL-2.0
Last commit
Oct 2026
Last release
Oct 2026
Language
Rust
Stars, last 29 weeks+304
21 Apr 2026: 21,073 stars28 Apr 2026: 21,081 stars5 May 2026: 21,090 stars12 May 2026: 21,099 stars19 May 2026: 21,110 stars26 May 2026: 21,125 stars2 Jun 2026: 21,138 stars9 Jun 2026: 21,155 stars16 Jun 2026: 21,158 stars23 Jun 2026: 21,170 stars30 Jun 2026: 21,178 stars7 Jul 2026: 21,192 stars14 Jul 2026: 21,203 stars21 Jul 2026: 21,217 stars28 Jul 2026: 21,227 stars4 Aug 2026: 21,240 stars11 Aug 2026: 21,256 stars18 Aug 2026: 21,269 stars25 Aug 2026: 21,275 stars1 Sept 2026: 21,289 stars8 Sept 2026: 21,298 stars15 Sept 2026: 21,304 stars22 Sept 2026: 21,315 stars29 Sept 2026: 21,325 stars6 Oct 2026: 21,329 stars13 Oct 2026: 21,338 stars20 Oct 2026: 21,348 stars27 Oct 2026: 21,359 stars3 Nov 2026: 21,369 stars10 Nov 2026: 21,377 stars

21,073 on 21 Apr 202621,377 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Sonic is a Rust search backend that indexes text pushed over its Sonic Channel TCP protocol and returns identifiers, which you resolve against your own database. It supports typo correction, autocomplete suggestions, and stop-word removal for 80+ languages, storing data in RocksDB and FST files. The README reports about 30MB RAM under load and sub-millisecond queries on a 1M-message benchmark.

Who it is for: Engineers needing a small full-text search index instead of Elasticsearch

Strengths

  • README benchmark: ~28MB RAM peak and ~880μs average query on 1M messages
  • Built-in typo correction and autocomplete via the suggest operation
  • Buckets within collections allow separate per-user indexes
  • Official client libraries for NodeJS, Rust and PHP, plus many community ones

Weaknesses

  • Returns only identifiers; no document storage, so an external database is needed
  • No HTTP API; access is only through the Sonic Channel TCP protocol
  • master is bug-fix only while a v2 rework is underway
  • Pre-built packages target 64-bit Debian 12 only; no semantic or vector search

What it needs

  • Rust
  • Docker

Quick answers

Is sonic open source?

Yes. Its code is on GitHub under the MPL-2.0 license.

Can you run sonic with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Head to head

Also in RAG and search

See all 17
Also in RAG and search
RankProjectScore
1xerjElasticsearch-compatible search server that auto-indexes folders for coding agents Live demo ↗ (opens in a new tab)18.8k stars+15,424 (+452%) in 30 daysApache-2.086 out of 100
2llm-appYAML-configured RAG server that keeps a vector database synced with a document folder58.7k stars+111 (+0.2%) in 30 daysMIT82 out of 100
#4qmdLocal hybrid search over markdown notes and docs, with CLI and MCP server31.1k starsMIT78 out of 100
#5paradedbPostgres extension adding BM25 full-text, vector and hybrid search9.5k starsAGPL-3.076 out of 100
#6azure-search-openai-demoRAG chat app over your documents using Azure OpenAI and Azure AI Search7.8k starsMIT69 out of 100