Gathering detailed insights and metrics for @bpmn-io/element-templates-validator
Gathering detailed insights and metrics for @bpmn-io/element-templates-validator
Gathering detailed insights and metrics for @bpmn-io/element-templates-validator
Gathering detailed insights and metrics for @bpmn-io/element-templates-validator
Validate element templates based on JSON Schema.
npm install @bpmn-io/element-templates-validator
Typescript
Module System
Node Version
NPM Version
89.7
Supply Chain
93.8
Quality
95.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,454,935
Last Day
201
Last Week
8,696
Last Month
37,563
Last Year
434,762
MIT License
5 Stars
148 Commits
4 Forks
8 Watchers
6 Branches
13 Contributors
Updated on Jul 04, 2025
Minified
Minified + Gzipped
Latest Version
2.6.0
Package Id
@bpmn-io/element-templates-validator@2.6.0
Unpacked Size
1.01 MB
Size
128.42 kB
File Count
5
NPM Version
10.9.2
Node Version
22.16.0
Published on
Jul 04, 2025
Cumulative downloads
Total Downloads
Last Day
9.2%
201
Compared to previous day
Last Week
-2%
8,696
Compared to previous week
Last Month
1.5%
37,563
Compared to previous month
Last Year
-14.1%
434,762
Compared to previous year
Validate element templates based on JSON Schema.
1npm i --save @bpmn-io/element-templates-validator
Given an example element template:
1import { validate } from '@bpmn-io/element-templates-validator'; 2 3import sample from './test/fixtures/rpa-broken.json'; 4 5const { 6 valid, 7 errors 8} = validate(sample); 9 10if (!valid) { 11 console.error('Invalid JSON detected:', errors); 12} 13
This will print detailed information about errors inside the sample:
1[ 2 { 3 "keyword": "type", 4 "dataPath": "", 5 "schemaPath": "#/type", 6 "params": { 7 "type": "object" 8 }, 9 "message": "must be object", 10 "dataPointer": { 11 "value": { 12 "line": 0, 13 "column": 0, 14 "pos": 0 15 }, 16 "valueEnd": { 17 "line": 177, 18 "column": 1, 19 "pos": 4825 20 } 21 } 22 } 23 ... 24]
It's also possible to validate multiple objects at once
1import { validateAll } from '@bpmn-io/element-templates-validator'; 2 3import samples from './test/fixtures/multiple-errors.json'; 4 5const { 6 valid, 7 results 8} = validateAll(samples); 9 10if (!valid) { 11 console.error('Invalid JSON objects detected:', results.filter(r => !r.valid)); 12}
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 3/22 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
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