7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

Sonic

Open source

A lightweight, schema-less search index server written in Rust that returns document IDs in microseconds while using only tens of megabytes of memory.

Open-source alternative to

crates.io
Sonic homepage screenshot
GitHub stars
21k
Last commit
yesterday
Repository age
7 years
Version
v1.10.1
Licence
MPL-2.0
Self-hosted
Yes

About Sonic

Sonic is a fast, lightweight search backend written in Rust. It ingests pairs of search text and identifiers and answers queries against them very quickly. Rather than storing your documents, it is an identifier index: a search returns the IDs of matching items, which you then look up in your own database.

It can normalize natural-language queries, offer auto-completion and return the most relevant results, and the author presents it as a simple alternative to heavyweight engines such as Elasticsearch for suitable use cases. The project places strong emphasis on performance and clean code, aiming to be crash-free and gentle on server resources, and its measurements report responses in the microsecond range with roughly 30 MB of RAM under load. Benchmarks are published, and the project was crafted in Nantes, France.

Sonic is licensed under MPL-2.0 and you run it yourself, typically as a small companion service next to your main database. It suits developers who need search-as-you-type or suggestion features in an app without operating a large cluster, and who are comfortable keeping the source documents elsewhere.

Key features

  • Identifier index returning document IDs
  • Schema-less ingestion of search text
  • Query normalization and auto-complete
  • Very low memory and CPU footprint
  • Microsecond-range query responses
  • Written in Rust

Good fit for

  • →Search-as-you-type for small to mid-size apps
  • →Lightweight alternative to Elasticsearch
  • →Search suggestions next to an existing database
Built with
Rust
Tags
search-engine
rust
lightweight
search-index
self-hosted
elasticsearch-alternative
autocomplete
backend

Sonic: questions and answers

What is Sonic used for?
Sonic is a lightweight, schema-less search index server written in Rust that returns document IDs in microseconds while using only tens of megabytes of memory. It is a good fit for search-as-you-type for small to mid-size apps and search suggestions next to an existing database.
Is Sonic open source?
Yes. Sonic is open source under the MPL-2.0 licence. Its source code is on GitHub at valeriansaliou/sonic and is written mainly in Rust.
Is Sonic free?
Yes. Sonic is open source, so the software itself is free to use.
Can I self-host Sonic?
Yes. Sonic can be self-hosted on your own server or infrastructure; there is no official hosted version.
What is Sonic an alternative to?
Sonic is an open-source alternative to Elastic. Other open-source alternatives to Elastic include ZincSearch, Typesense and Manticore Search.
Is Sonic actively maintained?
Yes. The most recent commit to Sonic was on 1 October 2026, and the latest release is v1.10.1, published on 25 September 2026. The project has 21k stars on GitHub.

Open-source alternatives to Sonic

See all

SaaS alternatives to Sonic

See all