Gathering detailed insights and metrics for is-my-ssb-valid
Gathering detailed insights and metrics for is-my-ssb-valid
Gathering detailed insights and metrics for is-my-ssb-valid
Gathering detailed insights and metrics for is-my-ssb-valid
npm install is-my-ssb-valid
Typescript
Module System
Node Version
NPM Version
87
Supply Chain
86.2
Quality
80.7
Maintenance
100
Vulnerability
81.3
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
LGPL-3.0 License
4 Stars
22 Commits
11 Watchers
2 Branches
8 Contributors
Updated on Feb 07, 2023
Latest Version
1.2.2
Package Id
is-my-ssb-valid@1.2.2
Unpacked Size
14.32 kB
Size
5.03 kB
File Count
6
NPM Version
9.4.2
Node Version
16.19.0
Published on
Mar 01, 2023
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
Build message validators for scuttlebutt using JSON schema.
Uses is-my-json-valid
under the hood
1const Validator = require('is-my-ssb-valid') 2const profileSchema = require('ssb-profile/spec/profile/schema') 3 4const isProfile = Validator(profileSchema)
1const A = { 2 //.... 3} 4 5isProfile(A) 6// => true | false 7 8console.log(isProfile.errors) 9// => null | [Error] 10 11console.log(isProfile.errorsString) 12// => '' | 'data.type is required' (example)
1const pull = require('pull-stream') 2 3pull( 4 sbot.messagesByType({ type: 'profile/person', reverse: true }), 5 pull.filter(isProfile), 6 pull.take(50), 7 pull.collect((err, profileUpdates) => { 8 // ... 9 }) 10)
Validator(schema) => isValid
where:
schema
Object is a JSON schemaextras
Array (optional) is an Array of additional custom validation functions.
true
(no problem) or an Error
(a problem) was found.isValid.errors
and isValid.errorsString
for you (see below)isValid(msg) => Boolean
where msg
can be any of
{ key, value, timestamp }
value
of a message (msg.value
)content
field of a message (msg.value.content
)If the last message tested came back invalid ("false"), then you can also check out the specific errors:
isValid.errors
will be populated with those errorsisValid.errorsString
will be populated with a (crudely) flattened version in case you need a StringNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 1/16 approved changesets -- score normalized to 0
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
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
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-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