# alien-signals **Repository Path**: mirrors_WebReflection/alien-signals ## Basic Information - **Project Name**: alien-signals - **Description**: alien-signals with a Preact signals like API - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-18 - **Last Updated**: 2025-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @webreflection/alien-signals [alien-signals](https://github.com/stackblitz/alien-signals) with a [Preact signals](https://preactjs.com/guide/v10/signals/) like API and a class based approach for easy brand check. ```js import { Signal, signal, Computed, computed, effect, untracked, batch, // all other alien-signals exports } from '@webreflection/alien-signals'; const count = signal(0); const double = computed(() => count * 2); // implicit count.valueOf() console.assert(count instanceof Signal); // true console.assert(double instanceof Signal); // true console.assert(double instanceof Computed); // true effect(() => { console.log('count', count.peek()); // no subscription console.log('double', double.value); }); count.value++; ``` # Extra Feature A signal created via `signal(value, { greedy: true })` will effect any time the same value is set again, as opposite of ignoring the explicit *set* operation. Follow this discussion if interest in upstream feedbacks: https://github.com/stackblitz/alien-signals/issues/83