# valeriansaliou/sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.

Repository: https://github.com/valeriansaliou/sonic
Canonical: https://ross.abutalabs.com/products/valeriansaliou-sonic
Homepage: https://crates.io/crates/sonic-server
Language: Rust
License: MPL-2.0
License Family: copyleft
Topics: rust, infrastructure, search, index, graph, database, server, backend, search-server, search-engine
Last push: 2026-08-26T15:43:58+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 2745, "days_push": 7, "days_rel": 17, "gap_med": 0.0, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 21321, forks 618 (observed 2026-08-28T04:11:31.591590+00:00)

## What it is
Sonic is a fast, lightweight, schema-less search backend written in Rust that ingests search texts and identifier tuples, returning matching IDs for queries in microseconds. It serves as a minimal alternative to Elasticsearch, running on ~30MB of RAM with auto-completion and natural-language query normalization.

## Use cases
- add full-text search to my app without running elasticsearch
- lightweight search backend that runs on a small server
- autocomplete and search suggestions for my website
- index millions of records with low memory usage
- search backend that returns document ids instead of storing documents
- schema-less search server for a small project

## When to choose
- you need fast search with minimal RAM and CPU footprint
- you only need an identifier index backed by an external database
- you want simple search and autocomplete without Elasticsearch's complexity
- you're running on a small, cheap server

## When to avoid
- you need full-featured features like aggregations, faceting, or complex queries
- you need document storage and retrieval from the search engine itself
- you need distributed clustering and horizontal scaling out of the box

## Facets
- artifact type: service
- maturity: stable
- function: search-engine, http-server, database
- domain: backend, developer-tools, databases
- platform: rust, self-hosted, cross-platform
- tags: schema-less, elasticsearch-alternative, full-text-search, autocomplete, lightweight, identifier-index, search, linux, macos, docker

## Member repositories
- valeriansaliou/sonic (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:31.591590+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:58:08.582329+00:00, confidence not recorded.
  - readme: https://github.com/valeriansaliou/sonic (fetched 2026-08-28T04:11:31.591590+00:00, sha 3252ad2a5a01)
- Data as of 2026-08-30T08:39:29.467469+00:00.
