alien_signals 1.0.1 copy "alien_signals: ^1.0.1" to clipboard
alien_signals: ^1.0.1 copied to clipboard

Alien Signals is a reactive state management library that brings the power of signals to Dart and Flutter applications.


Alien Signals on pub.flutter-io.cn testing status Ask DeepWiki

🎊 Get Started Today! #

// Your reactive journey starts here
import 'package:alien_signals/alien_signals.dart';

final welcome = signal('πŸŽ‰ Welcome to Alien Signals 1.0!');
effect(() => print(welcome()));

🌟 What is Alien Signals? #

Alien Signals is a reactive state management library that brings the power of signals to Dart and Flutter applications. Originally inspired by StackBlitz's alien-signals, our Dart implementation provides:

  • ⚑ Exceptional Performance: Proven fastest signal library in dart-reactivity-benchmark
  • πŸͺΆ Ultra Lightweight: Minimal overhead, maximum efficiency
  • 🎯 Simple API: Intuitive signal(), computed(), and effect() functions
  • πŸ”§ Production Ready: Battle-tested through comprehensive beta releases

πŸš€ Key Features #

Core Reactive Primitives #

import 'package:alien_signals/alien_signals.dart';

void main() {
  // Create reactive state
  final count = signal(0);

  // Create derived state
  final doubled = computed((_) => count() * 2);

  // Create side effects
  effect(() {
    print('Count: ${count()}, Doubled: ${doubled()}');
  });

  // Update state - triggers all dependencies
  count(1); // Output: Count: 1, Doubled: 2
}

Advanced Features #

  • Effect Scopes: Group and manage effects together
  • Batch Operations: Control when reactivity updates occur
  • Flexible API: Both high-level presets and low-level system access

πŸ“Š Performance Highlights #

Based on dart-reactivity-benchmark results:

  • πŸ† #1 Performance: Fastest among all Dart signal libraries
  • ⚑ Optimized Updates: Cycle-based dependency tracking
  • 🎯 Minimal Overhead: Efficient memory usage and garbage collection
  • πŸ“ˆ Scales Well: Performance remains consistent with complex dependency graphs

πŸ“¦ Installation #

To install Alien Signals, add the following to your pubspec.yaml:

dependencies:
  alien_signals: ^1.0.0

Alternatively, you can run the following command:

dart pub add alien_signals

🌍 Community & Ecosystem #

Adoptions #

  • Solidart - Signals for Flutter inspired by SolidJS
  • Oref - Magical reactive state management for Flutter

Growing Ecosystem #

Join our thriving community of developers building reactive applications with Alien Signals!

πŸ“š Resources #

13
likes
160
points
3.56k
downloads
screenshot

Publisher

verified publishermedz.dev

Weekly Downloads

Alien Signals is a reactive state management library that brings the power of signals to Dart and Flutter applications.

Repository (GitHub)
View/report issues

Topics

#signals #reactive #state-management #alien-signals

Documentation

API reference

Funding

Consider supporting this project:

github.com
opencollective.com

License

MIT (license)

More

Packages that depend on alien_signals