Skip to content
pubscout

fuzzy

0.5.2, released 2 months ago by borges.dev

Fuzzy search in Dart, ported from Fuse.js.

WASM-ready
$ flutter pub add fuzzy
Source repository

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.

Works with

Packages commonly used together with fuzzy: ones it builds on, ones built on it, and its own family.