siftdb-cli

Crates.iosiftdb-cli
lib.rssiftdb-cli
version0.2.2
created_at2025-09-06 11:17:22.996802+00
updated_at2025-09-06 16:04:53.541228+00
descriptionCommand-line interface for SiftDB - the high-performance grep-native database
homepagehttps://github.com/siftdb/siftdb
repositoryhttps://github.com/siftdb/siftdb
max_upload_size
id1826973
size36,526
Rach (justrach)

documentation

https://docs.rs/siftdb-cli

README

siftdb-cli

Command-line interface for SiftDB, a grep-native, agent-oriented database for code and text collections.

Install

cargo install siftdb-cli

Usage

# Initialize a new collection
sift init my-project.sift

# Import code
sift import my-project.sift --from /path/to/code \
  --include "**/*.rs" --include "**/*.py" --include "**/*.js"

# Find patterns
sift find my-project.sift "async" --path-glob "**/*.rs" --limit 20

# Open file ranges
sift open my-project.sift --file src/main.rs --start-line 1 --end-line 50

# Benchmark performance
sift benchmark my-project.sift --source /path/to/code --format json

Performance

See the repository benchmarks/README.md for methodology and results. With the O(1) inverted index:

  • 24M+ queries/sec for non-existent terms (pure O(1) lookup)
  • Performance scales with number of matching files (O(k) processing)

License

MIT

Commit count: 0

cargo fmt