Gathering detailed insights and metrics for @reatom/core-v1
Gathering detailed insights and metrics for @reatom/core-v1
Gathering detailed insights and metrics for @reatom/core-v1
Gathering detailed insights and metrics for @reatom/core-v1
npm install @reatom/core-v1
Typescript
Module System
Node Version
NPM Version
primitives: v3.11.0
Updated on May 19, 2025
lens: v3.12.0
Updated on May 19, 2025
form: v3.4.0
Updated on May 19, 2025
devtools: v0.13.1
Updated on May 12, 2025
primitives: v3.10.0
Updated on May 12, 2025
persist-web-storage: v3.4.6
Updated on May 12, 2025
TypeScript (99.17%)
JavaScript (0.77%)
Shell (0.03%)
HTML (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,201 Stars
2,795 Commits
122 Forks
20 Watchers
35 Branches
84 Contributors
Updated on Jul 10, 2025
Latest Version
3.1.9
Package Id
@reatom/core-v1@3.1.9
Unpacked Size
106.98 kB
Size
31.31 kB
File Count
18
NPM Version
10.7.0
Node Version
20.15.0
Published on
Jun 22, 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
2
Adapter package for migration from core@1 to core@3.
before
1import { declareAction, declareAtom, map, combine } from '@reatom/core-v1' 2 3const add = declareAction() 4const n1Atom = declareAtom(0, (on) => [ 5 on(add, (state, value) => state + value), 6]) 7const n2Atom = declareAtom(0, (on) => [ 8 on(add, (state, value) => state + value), 9]) 10const sumAtom = map(combine([n1Atom, n2Atom]), ([n1, n2]) => n1 + n2) 11const rootAtom = combine({ sumAtom })
than
1import { declareAction, declareAtom, combine, v3toV1 } from '@reatom/core-v1' 2import { atom } from '@reatom/core' 3 4const add = declareAction() 5const n1Atom = declareAtom(0, (on) => [ 6 on(add, (state, value) => state + value), 7]) 8const n2Atom = declareAtom(0, (on) => [ 9 on(add, (state, value) => state + value), 10]) 11const sumAtom = atom((ctx) => ctx.spy(n1Atom.v3atom) + ctx.spy(n2Atom.v3atom)) 12const rootAtom = combine({ sumAtom: v3toV1(sumAtom) })
than
1import { combine, v3toV1 } from '@reatom/core-v1' 2import { action, atom } from '@reatom/core' 3 4const add = action() 5const n1Atom = atom((ctx, state = 0) => { 6 ctx.spy(add).forEach(({ payload }) => (state += payload)) 7 return state 8}) 9const n2Atom = atom((ctx, state = 0) => { 10 ctx.spy(add).forEach(({ payload }) => (state += payload)) 11 return state 12}) 13const sumAtom = atom((ctx) => ctx.spy(n1Atom) + ctx.spy(n2Atom)) 14const rootAtom = combine({ sumAtom: v3toV1(sumAtom) })
finally
1import { combine, v3toV1 } from '@reatom/core-v1' 2import { action, atom } from '@reatom/core' 3 4const n1Atom = atom(0) 5const n2Atom = atom(0) 6const add = action((ctx, value) => { 7 n1Atom(ctx, (state) => state + value) 8 n2Atom(ctx, (state) => state + value) 9}) 10const sumAtom = atom((ctx) => ctx.spy(n1Atom) + ctx.spy(n2Atom)) 11const rootAtom = combine({ sumAtom: v3toV1(sumAtom) })
No vulnerabilities found.
Reason
30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
dangerous workflow patterns detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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