#semantic #finder #file #file-search #search #document

app snapfind

Fast, memory-efficient file search utility with predictable resource usage

1 stable release

Uses new Rust 2024

new 1.0.0 Mar 27, 2025

#185 in Filesystem

Download history 87/week @ 2025-03-23

87 downloads per month

MIT license

58KB
1.5K SLoC

SnapFind

Fast, memory-efficient file search utility with predictable resource usage.

Features

  • Content-aware search with relevance scoring
  • Fixed memory bounds (no dynamic allocations after initialization)
  • Text type detection (plain text, markdown, source code, config files)
  • Glob pattern matching
  • Fast indexing with bounded resource usage

Install

cargo install snapfind

Usage

Index a directory:

snap index [DIR]

Search for files:

snap search "your query" [DIR]

Limitations

  • Maximum number of files: 1,000
  • Maximum directory depth: 1,000
  • Maximum file size: 10MB
  • Maximum indexed content: 1,000 bytes per file
  • Maximum query length: 50 bytes
  • Only handles text files (binary files are excluded)

Examples

Search by content:

# Find code
snap search "fn main" ~/code

# Find documentation
snap search "# Introduction" ~/docs

# Use glob patterns
snap search "*.txt" ~/documents

License

MIT License

Dependencies

~4.5–6MB
~111K SLoC