Gathering detailed insights and metrics for reactive-signal
Gathering detailed insights and metrics for reactive-signal
Gathering detailed insights and metrics for reactive-signal
Gathering detailed insights and metrics for reactive-signal
rmemo
ctx-core rmemo
@polymita/signal
a simple reactive utility for logic description
easy-signal
A package with 2 types of signals, an small and simple event signal, and a reactive value-based signal called stores.
@g20/reactive
Wrapper around signal-polyfill to support different module formats
npm install reactive-signal
Typescript
Module System
Node Version
NPM Version
TypeScript (84.58%)
CSS (10.46%)
JavaScript (4.25%)
HTML (0.57%)
Vue (0.13%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
13,196 Stars
527 Commits
1,265 Forks
341 Watchers
1 Branches
109 Contributors
Updated on Jul 15, 2025
Latest Version
2.0.1
Package Id
reactive-signal@2.0.1
Unpacked Size
70.18 kB
Size
12.35 kB
File Count
14
NPM Version
10.5.0
Node Version
20.12.2
Published on
Sep 08, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
22
English | 简体中文
Reactive Programming in JavaScript(0.6KB)
Reactive-Signal
is a powerful library for creating reactive data in JavaScript. It provides a set of functions to create signals, computed signals, effects and batch updates. With this library, you can easily build reactive applications where components automatically update when data changes.
1npm install reactive-signal
1import { signal, computed, effect, batch } from 'reactive-signal' 2 3// Create a signal 4const count = signal(0) 5 6// Create a computed signal 7const doubleCount = computed(() => count.value * 2) 8 9// Create an effect 10effect(() => { 11 console.log(`Count: ${count.value}, Double Count: ${doubleCount.value}`) 12}) 13 14// Update the count signal 15count.value = 1 // logs: "Count: 1, Double Count: 2" 16 17// Batch multiple updates 18batch(() => { 19 count.value = 2 20 count.value = 3 21}) // logs: "Count: 3, Double Count: 6"
signal(initialValue)
Creates a signal with an initial value.
1const count = signal(0) 2// Using peek to get the value of the signal without creating a dependency 3count.peek() === count.value // true 4 5const todos = signal([]) 6todos.value.push('Learn Reactive Programming') 7// Using update to change the value of the signal and trigger dependency updates 8todos.update()
computed(fn)
Creates a computed signal based on a function.
effect(fn)
Creates an effect based on a function.
batch(fn)
Batches multiple updates into a single update.
setActiveComponent(component, updateFnName)
Sets the active component.
queuedUpdate
.clearActiveComponent()
Clear the active component.
getActiveComponent()
Returns the active component.
MIT © Tencent
No vulnerabilities found.
Reason
29 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
36 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More