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
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| Rank | Project | Score |
|---|---|---|
| 1 | xerjElasticsearch-compatible search server that auto-indexes folders for coding agents | 86 out of 100 |
| 2 | llm-appYAML-configured RAG server that keeps a vector database synced with a document folder | 82 out of 100 |
| #4 | qmdLocal hybrid search over markdown notes and docs, with CLI and MCP server | 78 out of 100 |
| #5 | paradedbPostgres extension adding BM25 full-text, vector and hybrid search | 76 out of 100 |
| #6 | azure-search-openai-demoRAG chat app over your documents using Azure OpenAI and Azure AI Search | 69 out of 100 |