Skip to content
pubscout

alien_signals

2.4.0, released 3 weeks ago by medz.dev

A reactive state management library bringing signals to Dart and Flutter applications.

WASM-ready
$ flutter pub add alien_signals
Source repository

What it does

Alien Signals provides a reactive graph and propagation engine featuring signals, lazy computed values, and effects. It allows developers to track state changes automatically, optimize derived state with caching, and manage effect cleanup and scopes without code generation.

AI-written summary of version 2.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want fine-grained reactivity using signals in Dart or Flutter
  • You need lazy-evaluated computed state with minimal overhead

Skip it when

  • Your project already heavily relies on an established architectural state pattern like BLoC or Riverpod

Strengths

  • Ultra lightweight with minimal overhead
  • Simple and intuitive API with signal, computed, and effect functions
  • Supports lazy computed values, effect cleanup, and batch operations

Weaknesses

  • Requires Dart 3.13 or later

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:alien_signals/alien_signals.dart';

void main() {
  final count = signal(0);
  final doubled = computed((_) => count() * 2);
  final stop = effect(() {
    print('Count: ${count()}, Doubled: ${doubled()}');
  });

  count.set(1);
  stop();
}

Alternatives

Packages that do the same job and could replace alien_signals.

  • riverpod

    If you prefer a more comprehensive, compile-safe state management solution designed specifically for Flutter.

  • bloc

    If you require strict event-driven architecture with predictable state transitions.

  • provider

    If you want a simpler inherited widget-based dependency injection and state approach.

Works with

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