Gathering detailed insights and metrics for @react-awesome-query-builder/core
Gathering detailed insights and metrics for @react-awesome-query-builder/core
Gathering detailed insights and metrics for @react-awesome-query-builder/core
Gathering detailed insights and metrics for @react-awesome-query-builder/core
@react-awesome-query-builder/ui
User-friendly query builder for React. Core React UI
@314e-react-awesome-query-builder/core
User-friendly query builder for React. Core
@react-awesome-query-builder-dev/core
User-friendly query builder for React. Core
@react-awesome-query-builder-dev/ui
User-friendly query builder for React. Core React UI
User-friendly query builder for React
npm install @react-awesome-query-builder/core
Typescript
Module System
Node Version
NPM Version
98.2
Supply Chain
96.1
Quality
86.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (74.37%)
TypeScript (22.52%)
SCSS (2.56%)
Shell (0.51%)
HTML (0.05%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,126 Stars
902 Commits
523 Forks
31 Watchers
10 Branches
87 Contributors
Updated on Jul 13, 2025
Latest Version
6.7.0-alpha.0
Package Id
@react-awesome-query-builder/core@6.7.0-alpha.0
Unpacked Size
2.14 MB
Size
347.05 kB
File Count
163
NPM Version
10.8.2
Node Version
18.20.8
Published on
May 23, 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
15
This package has core functionality to import/export/store query, provides utils and core config. Can be used on server-side, does not require React.
npm i @react-awesome-query-builder/core --save
1import {
2 CoreConfig, Utils,
3 // types
4 TreeStore, TreeState, TreeActions, InputAction, JsonTree
5} from '@react-awesome-query-builder/core';
6
7// config
8const config = {
9 ...CoreConfig,
10 fields: {
11 name: {
12 label: 'Name',
13 type: 'text',
14 },
15 age: {
16 label: 'Age',
17 type: 'number',
18 }
19 }
20};
21
22// load from JSON
23const initialTree = Utils.loadTree({
24 id: '00001',
25 type: 'group',
26 children1: [
27 {
28 id: '00002',
29 type: 'rule',
30 properties: {
31 field: 'age',
32 operator: 'greater_or_equal',
33 value: [18],
34 valueSrc: ['value']
35 }
36 }
37 ]
38});
39// or import from jsonLogic
40// const initialTree = Utils.loadFromJsonLogic({
41// 'and': [
42// {
43// '<=': [
44// {var: 'age'},
45// 18
46// ]
47// }
48// ]
49// }, config);
50
51// create store to manipulate tree on backend
52const reducer = TreeStore(config);
53let state: TreeState = reducer({tree: initialTree});
54
55// add rule `name == 'denis'`
56const rootPath = [ state.tree.get('id') as string ];
57const action = TreeActions.tree.addRule(config, rootPath, {
58 field: 'name',
59 operator: 'equal',
60 value: ['denis'],
61 valueSrc: ['value'],
62 valueType: ['text']
63});
64state = reducer(state, action);
65
66// export
67const tree = Utils.getTree(state.tree);
68const { logic } = Utils.jsonLogicFormat(state.tree, config);
69const sql = Utils.sqlFormat(state.tree, config);
70const spel = Utils.sqlFormat(state.tree, config);
71const mongo = Utils.mongodbFormat(state.tree, config);
72const elastic = Utils.elasticSearchFormat(state.tree, config);
73console.log({ tree, logic, sql, spel, mongo, elastic });
74
No vulnerabilities found.
Reason
19 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 3
Details
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
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