@muze-nl/simplystore 0.6.15 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/package.json +4 -4
- package/src/server.mjs +1 -1
package/README.md
CHANGED
|
@@ -17,14 +17,12 @@ Note: _There are known security issues in VM2, so the project will switch to V8-
|
|
|
17
17
|
- [Goals](#goals)
|
|
18
18
|
- [Roadmap](#roadmap)
|
|
19
19
|
- [License](#license)
|
|
20
|
-
|
|
21
|
-
<a name="background"></a>
|
|
22
|
-
## Background
|
|
20
|
+
- [Contributions](#contributions)
|
|
23
21
|
|
|
24
22
|
<a name="install"></a>
|
|
25
23
|
## Install
|
|
26
24
|
|
|
27
|
-
SimplyStore is a
|
|
25
|
+
SimplyStore is a NodeJS/[ExpressJS](https://expressjs.com/) library. You can install it in your application like this:
|
|
28
26
|
|
|
29
27
|
```shell
|
|
30
28
|
npm install @muze-nl/simplystore
|
|
@@ -47,7 +45,7 @@ simplystore.run({
|
|
|
47
45
|
})
|
|
48
46
|
````
|
|
49
47
|
|
|
50
|
-
Other options are:
|
|
48
|
+
simplystore is an [express application](https://expressjs.com/), with all the usual options. Other options are:
|
|
51
49
|
|
|
52
50
|
- port: The port number to use, defaults to 3000
|
|
53
51
|
- dataspace: an object or array with all the data that SimplyStore will serve. Optional, replaces the datafile.
|
|
@@ -156,12 +154,18 @@ In addition, SimplyStore is meant to be a real-world testcase for JSONTag.
|
|
|
156
154
|
- [x] command handling with crud commands and command log
|
|
157
155
|
- [x] backup current dataset to JSONTag file
|
|
158
156
|
- [x] on startup check if any commands in the log haven't been resolved, if so run them
|
|
157
|
+
- [x] add support for access control, ~~based on webid / openid connect~~
|
|
158
|
+
- [ ] stress test ACID compliance
|
|
159
159
|
- [ ] improved web client with type-specific views and form elements
|
|
160
|
+
- [ ] improved developer experience, with online command editor and eslint
|
|
161
|
+
- [ ] optional schema definitions and validation
|
|
160
162
|
- [ ] allow custom templates, instead of the default index.html
|
|
161
|
-
- [ ] add support for access control, based on webid / openid connect
|
|
162
163
|
- [ ] switch from VM2 to V8-isolate or QuickJS, which is more secure
|
|
163
164
|
|
|
164
165
|
<a name="license"></a>
|
|
165
166
|
## License
|
|
166
167
|
|
|
167
168
|
[MIT](LICENSE) © Muze.nl
|
|
169
|
+
|
|
170
|
+
## Contributions
|
|
171
|
+
Contributions are welcome, but make sure that all code is MIT licensed. If you want to send a merge request, please make sure that there is a ticket that shows the bug/feature and reference it. If you find any problem, please do file a ticket, but you should not expect a timely resolution. This project is still very experimental, don't use it in production unless you are ready to fix problems yourself.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muze-nl/simplystore",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"main": "src/server.mjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"bugs": "https://github.com/simplyedit/simplystore/issues",
|
|
17
17
|
"homepage": "https://github.com/simplyedit/simplystore#readme",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@muze-nl/jsontag": "^0.9.
|
|
20
|
-
"@muze-nl/od-jsontag": "^0.2.
|
|
19
|
+
"@muze-nl/jsontag": "^0.9.8",
|
|
20
|
+
"@muze-nl/od-jsontag": "^0.2.7",
|
|
21
21
|
"codemirror": "^6.0.1",
|
|
22
22
|
"express": "^4.18.1",
|
|
23
|
-
"jaqt": "^0.
|
|
23
|
+
"jaqt": "^0.9.0",
|
|
24
24
|
"json-pointer": "^0.6.2",
|
|
25
25
|
"jsonpath-plus": "^7.2.0",
|
|
26
26
|
"vm2": "^3.9.13",
|
package/src/server.mjs
CHANGED
|
@@ -19,7 +19,7 @@ async function main(options) {
|
|
|
19
19
|
options = {}
|
|
20
20
|
}
|
|
21
21
|
const port = options.port || 3000
|
|
22
|
-
const datafile = options.datafile || './data.jsontag'
|
|
22
|
+
const datafile = options.datafile || './data.od-jsontag'
|
|
23
23
|
const wwwroot = options.wwwroot || __dirname+'/www'
|
|
24
24
|
const maxWorkers = options.maxWorkers || 8
|
|
25
25
|
const queryWorker = options.queryWorker || __dirname+'/src/query-worker.mjs'
|