Gathering detailed insights and metrics for preact-nx-observer
Gathering detailed insights and metrics for preact-nx-observer
Gathering detailed insights and metrics for preact-nx-observer
Gathering detailed insights and metrics for preact-nx-observer
A simple preact decorator for @nx-js/observer-util
npm install preact-nx-observer
Typescript
Module System
Node Version
NPM Version
64.2
Supply Chain
67.2
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,455
Last Day
1
Last Week
5
Last Month
22
Last Year
160
MIT License
21 Stars
9 Commits
1 Branches
2 Contributors
Updated on Apr 18, 2024
Minified
Minified + Gzipped
Latest Version
0.0.5
Package Id
preact-nx-observer@0.0.5
Unpacked Size
7.97 kB
Size
2.74 kB
File Count
10
NPM Version
6.5.0
Node Version
10.15.0
Cumulative downloads
Total Downloads
1
1
Simple
preact-mobx
interface fornx-js/observer-util
.
mobx is a great little reactive state library, but sometimes you just want to shave off a few more kb from your bundle.
Fortunately ns-js/observer-util is a tiny (~3k gzipped) library supporting the core of mobx
.
This library provides a very tiny decorator syntax for nx-js/observer-util
. By decorating a
Preact Component
class as @observer
, the component will automagically re-render whenever a dependent observable value changes.
1import { h, Component, render } from "preact"; 2import { observable } from "@nx-js/observer-util"; 3import { observer } from "preact-nx-observer"; 4 5let thing = observable({ foo: "This is foo's data"}); 6 7@observer 8class Foo extends Component { 9 render() { 10 return <h1>{thing.foo}</h1> 11 } 12} 13 14render(<Foo/>, document.querySelector("#content")); 15 16setInterval(() => thing.foo += "!", 1000)
And thats it!
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/7 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
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
Reason
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-21
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 MoreLast Day
0%
1
Compared to previous day
Last Week
66.7%
5
Compared to previous week
Last Month
4.8%
22
Compared to previous month
Last Year
13.5%
160
Compared to previous year