Gathering detailed insights and metrics for little-state-machine-devtools
Gathering detailed insights and metrics for little-state-machine-devtools
Gathering detailed insights and metrics for little-state-machine-devtools
Gathering detailed insights and metrics for little-state-machine-devtools
📠 React custom hook for persist state management
npm install little-state-machine-devtools
Typescript
Module System
Node Version
NPM Version
59.3
Supply Chain
86
Quality
75.1
Maintenance
100
Vulnerability
98.9
License
TypeScript (94.16%)
JavaScript (5.84%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,525 Stars
511 Commits
53 Forks
13 Watchers
12 Branches
20 Contributors
Updated on Jul 12, 2025
Latest Version
3.0.0
Package Id
little-state-machine-devtools@3.0.0
Unpacked Size
59.10 kB
Size
14.01 kB
File Count
15
NPM Version
9.6.4
Node Version
20.0.0
Published on
Jan 12, 2025
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
State management made super simple
$ npm install little-state-machine-devtools
1import { DevTool } from 'little-state-machine-devtools' 2 3{process.env.NODE_ENV !== 'production' && <DevTool />}
📋 app.js
1import React from 'react' 2import yourDetail from './yourDetail' 3import YourComponent from './yourComponent' 4import { createStore } from 'little-state-machine' 5import { DevTool } from 'little-state-machine-devtools' 6 7// The following code is for React Native usage 8// import { AsyncStorage } from "react-native"; 9// setStorageType(AsyncStorage); 10 11// create your store 12createStore({ 13 yourDetail, 14}); 15 16export default () => { 17 return ( 18 <> 19 {process.env.NODE_ENV !== 'production' && <DevTool />} 20 <YourComponent /> 21 </> 22 ) 23}
📋 yourComponent.js
1import React from 'react' 2import { updateName } from './action.js' 3import { useStateMachine } from 'little-state-machine' 4 5export default function YourComponent() { 6 const { 7 action, 8 state: { yourDetail: { name } }, 9 } = useStateMachine({ actions: {updateName} }); 10 11 return <div onClick={() => action({ name: 'bill' })}>{name}</div> 12}
📋 yourDetail.js
1export default { 2 name: 'test', 3}
📋 action.js
1export function updateName(state, payload) { 2 return { 3 ...state, 4 yourDetail: { 5 ...state.yourDetail, 6 ...payload, 7 }, 8 } 9}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
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