Gathering detailed insights and metrics for @reatom/npm-solid-js
Gathering detailed insights and metrics for @reatom/npm-solid-js
Gathering detailed insights and metrics for @reatom/npm-solid-js
Gathering detailed insights and metrics for @reatom/npm-solid-js
npm install @reatom/npm-solid-js
Typescript
Module System
Node Version
NPM Version
64
Supply Chain
93.2
Quality
77.1
Maintenance
100
Vulnerability
100
License
devtools: v0.8.0
Published on 17 Dec 2024
jsx: v3.16.0
Published on 17 Dec 2024
npm-react: v3.10.3
Published on 11 Dec 2024
lens: v3.11.6
Published on 11 Dec 2024
effects: v3.10.2
Published on 11 Dec 2024
core: v3.9.1
Published on 11 Dec 2024
TypeScript (99.43%)
HTML (0.43%)
JavaScript (0.09%)
Shell (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1,108 Stars
2,356 Commits
113 Forks
21 Watching
37 Branches
75 Contributors
Minified
Minified + Gzipped
Latest Version
3.6.2
Package Id
@reatom/npm-solid-js@3.6.2
Unpacked Size
29.87 kB
Size
5.18 kB
File Count
11
NPM Version
10.7.0
Node Version
20.15.0
Publised On
22 Jun 2024
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
2
This is the binding for the Solid view framework. The reason to use these bindings is the Reatom ecosystem. We have a lot of packages and helpers to handle basic UI logic, including network caching, data persistence, and complex flow description.
1npm i @reatom/npm-solid-js
Also, you need to be installed @reatom/core
or @reatom/framework
and solid-js
.
Read the core docs first for production usage.
Try it now: https://stackblitz.com/edit/reatomnpm-solid-js?file=src%2FApp.tsx
The first time, you need to add the Reatom provider to the root of your application.
1import { createCtx, connectLogger } from '@reatom/framework' 2import { reatomContext } from '@reatom/npm-solid-js' 3 4const ctx = createCtx() 5connectLogger(ctx) 6 7render( 8 () => ( 9 <reatomContext.Provider value={ctx}> 10 <App /> 11 </reatomContext.Provider> 12 ), 13 document.getElementById('root')!, 14)
Now you will be able to use Reatom hooks.
1import { atom } from '@reatom/framework' 2import { useAtom } from '@reatom/npm-solid-js' 3 4const countAtom = atom(0, 'countAtom') 5 6const App: Component = () => { 7 const [count, setCount] = useAtom(countAtom) 8 9 return ( 10 <div> 11 Count value is 12 <button onClick={() => setCount((c) => c + 1)}>{count()}</button> 13 </div> 14 ) 15}
If you need to get the ctx
from the context, you could use the shortcut hook useCtx
. With ctx
in the component body, you can manipulate subscriptions more flexibly with Solid's onMount
, onCleanup
, and so on.
This example shoes how to use atomization to improve editable fields performance, persists it to localStorage.
https://stackblitz.com/edit/reatomnpm-solid-js-mssqxj?file=src/model.ts,src/App.tsx
No vulnerabilities found.
Reason
30 commit(s) and 13 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
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
Found 3/23 approved changesets -- score normalized to 1
Reason
dangerous workflow patterns detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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