Sonic

Open source

Sonic is a lightweight, schema-less search backend written in Rust that indexes words against identifiers rather than storing documents.

Open-source alternative to

crates.io
Sonic homepage screenshot
GitHub stars
21k
Last 30 days
+20(+0%)
Last commit
3 days ago
Repository age
7 years
Version
v1.10.2
Licence
MPL-2.0
Self-hosted
Yes

About Sonic

Sonic takes search text together with identifier tuples and answers queries against them, with responses measured in microseconds. It is an identifier index, not a document index: a query returns IDs, which you then resolve against a database of your own. It does not keep the original text in its index, only a word graph used for auto-completion and typo correction.

Data is organised in collections and buckets, so a single bucket or one bucket per user on your platform can be used. Entries can be pushed and popped while the server runs, and a background tasker consolidates the index. Sonic normalises natural-language queries, removes stop words after guessing the language and covers more than 80 languages with full Unicode support.

The author positions it as a simple alternative to Elasticsearch for some use cases, with the measured load figure of about 30MB of RAM. Applications talk to it through the Sonic Channel protocol or client libraries. It is installed from releases, cargo install, source or Debian packages, and is used inside Crisp's search products.

Key features

  • Returns identifiers to resolve in an external database
  • Corrects typos when exact matches are scarce
  • Real-time auto-complete through a suggest operation
  • Unicode support across 80+ languages with stop-word removal
  • Index changes can be made while the server runs
  • Simple text protocol plus client libraries
  • Collections and buckets separate indexes, e.g. per user

Good fit for

  • Searching messages and contacts
  • Helpdesk article search with suggestions
  • Per-user search indexes
Built with
Rust tools
Tags
search
rust
search-engine
indexing
backend
autocomplete
lightweight

Sonic: questions and answers

What is Sonic used for?
Sonic is a lightweight, schema-less search backend written in Rust that indexes words against identifiers rather than storing documents. It is a good fit for searching messages and contacts, helpdesk article search with suggestions, and per-user search indexes.
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.
What is Sonic an alternative to?
Sonic is an open-source alternative to Elastic. Other open-source alternatives to Elastic include XERJ, ZincSearch and Lnx.
Is Sonic actively maintained?
Yes. The most recent commit to Sonic was on 10 November 2026, and the latest release is v1.10.2, published on 5 October 2026. The project has 21k stars on GitHub, with 20 added in the last 30 days.

Open-source alternatives to Sonic

See all

SaaS alternatives to Sonic

See all