local_spam_guard 0.1.0 copy "local_spam_guard: ^0.1.0" to clipboard
local_spam_guard: ^0.1.0 copied to clipboard

Offline chat spam detection for Dart and Flutter with flooding, repetition, link, and formatting protection.

example/local_spam_guard_example.dart

import 'package:local_spam_guard/local_spam_guard.dart';

void main() {
  final guard = LocalSpamGuard();
  final result = guard.check(senderId: 'peer-public-key', text: 'Hello!');

  switch (result.action) {
    case SpamAction.allow:
      print('Display message');
    case SpamAction.filter:
      print('Message filtered: ${result.reasons}');
    case SpamAction.suspend:
      print('Peer temporarily suspended locally');
  }

  guard.strength = SpamFilterStrength.intense;
}
0
likes
150
points
81
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Offline chat spam detection for Dart and Flutter with flooding, repetition, link, and formatting protection.

Repository (GitHub)
View/report issues
Contributing

Topics

#spam-detection #moderation #chat #offline #privacy

Funding

Consider supporting this project:

github.com

License

unknown (license)

More

Packages that depend on local_spam_guard