ness-js 1.1.0
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/help.js +7 -0
- package/index.js +22 -0
- package/info.js +52 -0
- package/package.json +63 -0
- package/readme.md +25 -0
package/help.js
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { dirname, resolve } from 'node:path'
|
|
4
|
+
import { spawnSync } from 'node:child_process'
|
|
5
|
+
|
|
6
|
+
const run = (relFile, extraArgs = []) => {
|
|
7
|
+
|
|
8
|
+
const target = resolve(dirname(fileURLToPath(import.meta.url)), relFile)
|
|
9
|
+
const out = spawnSync(process.execPath, [target, ...extraArgs], { stdio: 'inherit' })
|
|
10
|
+
process.exit( out.status ?? 0 )
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const args = process.argv.slice(2)
|
|
15
|
+
const cmd = (args[0] || '').toLowerCase()
|
|
16
|
+
|
|
17
|
+
if (!cmd) console.log('\nNESSjs npm pkg ready to use\nText \`info\` for starting\n')
|
|
18
|
+
else if (cmd === 'info') run('./info.js', args.slice(1))
|
|
19
|
+
else if (cmd === 'start' || cmd === 'manager') run('./help.js', args.slice(1))
|
|
20
|
+
else console.warn('command not recognized')
|
|
21
|
+
|
|
22
|
+
process.exit(0)
|
package/info.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
console.log(`
|
|
3
|
+
|
|
4
|
+
⚊⚊⚊⚊⚊⚊ ⚊ ⚊ ⚊ ⚊ ⚊ ⚋ ⚋ ⚋ ⚋ ⚋ - - -
|
|
5
|
+
____ __ _____ _____ _____ __ _____
|
|
6
|
+
| | | __| __| __| _ | | __|
|
|
7
|
+
| | | | __|__ |__ || | |__ |
|
|
8
|
+
|__|____|_____|_____|_____||_____|_____|
|
|
9
|
+
|
|
10
|
+
:: NODE - ENGINEERED STACK SYSTEM
|
|
11
|
+
:: https://gitlab.com/nessjs
|
|
12
|
+
|
|
13
|
+
⚊⚊⚊⚊⚊⚊ ⚊ ⚊ ⚊ ⚊ ⚊ ⚋ ⚋ ⚋ ⚋ ⚋ - - -
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
# Welcome to NESSjs
|
|
17
|
+
# Node Engineered Stack System
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
NESSjs is not a framework and not a ready-made server.
|
|
21
|
+
It is a system designed to turn Node.js into a structured, auditable and extensible software stack based on layers.
|
|
22
|
+
|
|
23
|
+
You do NOT need npm to use NESSjs.
|
|
24
|
+
|
|
25
|
+
You can install it in several ways:
|
|
26
|
+
|
|
27
|
+
• Download the repository:
|
|
28
|
+
\`https://gitlab.com/nessjs/developments/nessjs/-/archive/main/nessjs-main.zip\`
|
|
29
|
+
|
|
30
|
+
• Clone via git:
|
|
31
|
+
\`git clone https://gitlab.com/nessjs/developments/nessjs.git ./nessjs-your-project\`
|
|
32
|
+
or inside the current folder:
|
|
33
|
+
\`git clone https://gitlab.com/nessjs/developments/nessjs.git ./\`
|
|
34
|
+
|
|
35
|
+
• Use one of the automated installers available at:
|
|
36
|
+
\`https://gitlab.com/nessjs\`
|
|
37
|
+
|
|
38
|
+
Once installed, you can start the system with:
|
|
39
|
+
\`node system start\`
|
|
40
|
+
or if you prefer:
|
|
41
|
+
\`npm run start\`
|
|
42
|
+
|
|
43
|
+
You can manage the whole options with:
|
|
44
|
+
\`node system manager\`
|
|
45
|
+
|
|
46
|
+
From here on, build your software your way. Layer by layer.
|
|
47
|
+
|
|
48
|
+
Read the official documentation and tutorials for more.
|
|
49
|
+
|
|
50
|
+
Good work!
|
|
51
|
+
|
|
52
|
+
`)
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ness-js",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "NESS-js is a Node.js Engineered Stack System that provides a structured, auditable, and extensible runtime for building long-living software through composable system layers.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node help.js",
|
|
8
|
+
"manager": "node help.js",
|
|
9
|
+
"info": "node info.js",
|
|
10
|
+
"test": "echo NESS-js npm package is installed, try to `npm run info`"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"bin": {
|
|
14
|
+
"nessjs": "index.js"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://gitlab.com/ness-js/developments/nessjs.git"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20.0.0"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"nessjs",
|
|
25
|
+
"nodejs",
|
|
26
|
+
"runtime",
|
|
27
|
+
"system",
|
|
28
|
+
"application",
|
|
29
|
+
"engine",
|
|
30
|
+
"layered",
|
|
31
|
+
"architecture",
|
|
32
|
+
"software",
|
|
33
|
+
"layers",
|
|
34
|
+
"system",
|
|
35
|
+
"packages",
|
|
36
|
+
"audit",
|
|
37
|
+
"traceability",
|
|
38
|
+
"execution",
|
|
39
|
+
"flow",
|
|
40
|
+
"security",
|
|
41
|
+
"layers",
|
|
42
|
+
"modular",
|
|
43
|
+
"stack",
|
|
44
|
+
"long-living",
|
|
45
|
+
"software",
|
|
46
|
+
"maintainable",
|
|
47
|
+
"systems",
|
|
48
|
+
"framework",
|
|
49
|
+
"orchestration",
|
|
50
|
+
"deterministic",
|
|
51
|
+
"runtime",
|
|
52
|
+
"extensible",
|
|
53
|
+
"system"
|
|
54
|
+
],
|
|
55
|
+
"author": "theGlitched - Alberto Marangelo",
|
|
56
|
+
"urls" : [
|
|
57
|
+
"theGlitched.dev",
|
|
58
|
+
"theGlitchedside.com",
|
|
59
|
+
"nessjs.dev",
|
|
60
|
+
"https://gitlab.com/nessjs"
|
|
61
|
+
],
|
|
62
|
+
"license": "LICENSE ON OFFICIAL REPOSITORY"
|
|
63
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# HELLO FROM NESS JS
|
|
2
|
+
|
|
3
|
+
__In a nutshell: NESSJS is a powerful corporate-free, ethical, agnostic, free (under one million euros) and open source alternative for all developers who use Node.js.__
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
> WARNING: You don't need to install ness-js from npm, the package is only an helper of the engine... Read the original documentation!
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Short Manifest: NESS JS (Node Engineered Stack System) is a minimal and secure Node.js core designed to load and manage modular package extensions through a customizable layers (the stack).
|
|
12
|
+
|
|
13
|
+
Its job is to load, verify, and manage your custom scripts (packages: tools or services) via a strict lifecycle and a security-first approach. It's a maintainable userland for your JS-based implementations with the added advantage of not and manage, pollute, having to push on git, all node_modules contents. You focus solely about your software stack.
|
|
14
|
+
|
|
15
|
+
The stack layer and all relatives dependecies are importable via simple configuration, a json file, and one command.
|
|
16
|
+
|
|
17
|
+
NessJS repository ships the core only; All packages/extensions (like server, crud, database, apis...) are optional and can be installed via CLI.
|
|
18
|
+
|
|
19
|
+
This is not vibe-coding – this is structural JS engineering:
|
|
20
|
+
|
|
21
|
+
Building Ideas: _Security-first • clean code • only plain js • nodejs module compatibility • Ethical Business (read licence)_
|
|
22
|
+
|
|
23
|
+
Design Principles: _KISS • DRY • SRP • LSP • ISP • OCP (Open to dev) • DIP • Extensibility • No-Third‑Party software libs (unless strictly necessary of nodejs) • Encapsulation & Information Hiding • Separation of Concerns • Fail-Fast • Tamper-evidence & Integrity • Vault_ and more...
|
|
24
|
+
|
|
25
|
+
Continue to the original [manifest here](https://gitlab.com/ness-js)
|