Skip to content

Installation

Reflex is a local-first code search engine that combines trigram indexing for full-text search with Tree-sitter parsing for symbol extraction and static analysis for dependency tracking. Unlike symbol-only tools, Reflex finds every occurrence of a pattern with deterministic, repeatable results.

Choose your preferred package manager:

Terminal window
# npm (recommended — includes prebuilt binaries)
npm install -g reflex-search
# cargo (builds from source, requires Rust toolchain)
cargo install reflex-search
Terminal window
rfx --version

You should see output like reflex-search 1.1.1.

Navigate to your project root and run:

Terminal window
rfx index

This creates a .reflex/ directory containing the search index. Add it to your .gitignore:

Terminal window
echo '.reflex/' >> .gitignore

That’s it — Reflex is ready. The index is fully local; no data leaves your machine.

FilePurpose
meta.dbSQLite metadata (file list, stats, config)
trigrams.binTrigram inverted index for fast full-text search
content.binMemory-mapped file contents for result display
config.tomlProject-level configuration
  • Node.js 18+ (for npm install) or Rust 1.75+ (for cargo install)
  • Works on Linux, macOS, and Windows
  • No external services or network access required

Head to the Quick Start to index your first project and run queries, or see Configuration to customize Reflex for your workflow.