fuzzy
0.5.2, released 2 months ago by borges.dev
Fuzzy search in Dart, ported from Fuse.js.
What it does
Performs fuzzy searching on lists of strings or objects in Dart. It supports weighted searches via predefined getters and string normalization.
AI-written summary of version 0.5.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to implement fuzzy searching over lists of data in Dart or Flutter
- You want a Dart port inspired by Fuse.js
Skip it when
- You need full-text database search indexing for massive server-side datasets
Strengths
- Supports generic types and weighted searches
- Includes string normalization and tokenization options
Weaknesses
- Limited documentation outside of README and basic options
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:fuzzy/fuzzy.dart';
void main() {
final fuse = Fuzzy(['apple', 'banana', 'orange']);
final result = fuse.search('ran');
result.map((r) => r.output.first.value).forEach(print);
}Alternatives
Packages that do the same job and could replace fuzzy.
- fuzzy_bolt
High-performance fuzzy search algorithm with typo tolerance and Porter stemming.
51Compare - fling_units
Dependency-free, type-safe Dart library for unit conversion.
47Compare - http_status_code
A Dart library providing constants and helpers for HTTP status codes.
39Compare - woozy_search
Lightweight client‑side fuzzy search using Levenshtein distance
43Compare
Works with
Packages commonly used together with fuzzy: ones it builds on, ones built on it, and its own family.