# @ijstech/node

> Secure Node

Latest version **0.1.99** (published 2025-05-27) · BSL 1.1 license · 0 weekly downloads

## Install

```sh
npm install @ijstech/node
pnpm add @ijstech/node
yarn add @ijstech/node
bun add @ijstech/node
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.99 |
| Published | 2025-05-27 |
| First published | 2022-10-10 |
| Weekly downloads | 0 |
| License | BSL 1.1 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18.0.0 |
| Dependencies | 35 |
| Unpacked size | 10.7 MB |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | https://ijs.network |
| Maintainers | ijstech |

## Links

- npm: https://www.npmjs.com/package/@ijstech/node
- Repository: https://github.com/ijstech/node
- Homepage: https://github.com/ijstech/node#readme
- Issues: https://github.com/ijstech/node/issues
- npm.io page: https://npm.io/package/@ijstech/node

## Dependencies (35)

- [koa](https://npm.io/package/koa.md) 2.16.1
- [web3](https://npm.io/package/web3.md) 4.0.2
- [mysql](https://npm.io/package/mysql.md) 2.18.1
- [redis](https://npm.io/package/redis.md) 3.1.2
- [ethers](https://npm.io/package/ethers.md) ^6.14.1
- [graphql](https://npm.io/package/graphql.md) 16.8.1
- [@ijstech/db](https://npm.io/package/@ijstech/db.md) file:packages/db
- [@ijstech/vm](https://npm.io/package/@ijstech/vm.md) file:packages/vm
- [cron-parser](https://npm.io/package/cron-parser.md) 4.2.0
- [extract-zip](https://npm.io/package/extract-zip.md) 2.0.1
- [isolated-vm](https://npm.io/package/isolated-vm.md) 5.0.4
- [@ijstech/app](https://npm.io/package/@ijstech/app.md) file:packages/app
- [@ijstech/pdm](https://npm.io/package/@ijstech/pdm.md) file:packages/pdm
- [@ijstech/tsc](https://npm.io/package/@ijstech/tsc.md) file:packages/tsc
- [bignumber.js](https://npm.io/package/bignumber.js.md) 9.1.1
- [@ijstech/http](https://npm.io/package/@ijstech/http.md) file:packages/http
- [@ijstech/ipfs](https://npm.io/package/@ijstech/ipfs.md) file:packages/ipfs
- [@ijstech/mime](https://npm.io/package/@ijstech/mime.md) file:packages/mime
- [@ijstech/cache](https://npm.io/package/@ijstech/cache.md) file:packages/cache
- [@ijstech/fetch](https://npm.io/package/@ijstech/fetch.md) file:packages/fetch
- [@ijstech/queue](https://npm.io/package/@ijstech/queue.md) file:packages/queue
- [@ijstech/types](https://npm.io/package/@ijstech/types.md) file:packages/types
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) 4.3.0
- [@ijstech/crypto](https://npm.io/package/@ijstech/crypto.md) file:packages/crypto
- [@ijstech/plugin](https://npm.io/package/@ijstech/plugin.md) file:packages/plugin
- [@ijstech/wallet](https://npm.io/package/@ijstech/wallet.md) file:packages/wallet
- [@ijstech/message](https://npm.io/package/@ijstech/message.md) file:packages/message
- [@ijstech/package](https://npm.io/package/@ijstech/package.md) file:packages/package
- [@ijstech/storage](https://npm.io/package/@ijstech/storage.md) file:packages/storage
- [@ijstech/schedule](https://npm.io/package/@ijstech/schedule.md) file:packages/schedule
- [@aws-sdk/client-s3](https://npm.io/package/@aws-sdk/client-s3.md) 3.449.0
- [@ijstech/eth-wallet](https://npm.io/package/@ijstech/eth-wallet.md) ^0.1.42
- [@aws-sdk/lib-storage](https://npm.io/package/@aws-sdk/lib-storage.md) 3.266.0
- [@ijstech/eth-contract](https://npm.io/package/@ijstech/eth-contract.md) file:packages/eth-contract
- [@aws-sdk/s3-request-presigner](https://npm.io/package/@aws-sdk/s3-request-presigner.md) 3.449.0

## Recent versions

- 0.1.99 (latest) — 2025-05-27
- 0.1.98 — 2025-04-05
- 0.1.97 — 2025-01-19
- 0.1.96 — 2025-01-05
- 0.1.95 — 2024-05-16
- 0.1.94 — 2024-05-13
- 0.1.93 — 2024-05-10
- 0.1.92 — 2024-03-05
- 0.1.91 — 2024-02-29
- 0.1.90 — 2024-02-28
- 0.1.89 — 2024-02-28
- 0.1.88 — 2024-01-29
- 0.1.87 — 2024-01-29
- 0.1.86 — 2024-01-22
- 0.1.85 — 2024-01-05
- … 62 more at https://npm.io/package/@ijstech/node/versions

## README

# @ijstech/node
## Secure Node Server

Node.js is one of the most popular application frameworks in use today especially in cloud and web-based applications.  A typical Node.js application may contain hundreds or thousands of 3rd party developed npm packages. These NPM packages enable developers to be extremely productive in developing solutions and it is a key reason why the use of Node.js is so attractive to developers. However, in a traditional Node.js implementation, these NPM packages come at a security cost.

In a traditional Node.js architecture, each of the NPM packages are allowed access to local server resources including sensitive capabilities such as uploading and downloading external files. As NPM packages are updated, security issues can be introduced to compromise the system.  According to this study (https://www.zdnet.com/article/hacking-20-high-profile-dev-accounts-could-compromise-half-of-the-npm-ecosystem/), it would only take the hacking of 20 high-profile dev accounts to compromise half of the npm ecosystem. Thus, using npm packages, the traditional way will expose the applications to security risks that cannot be tolerated in mission critical systems.

@ijstech/node allows developers to use NPM packages with fewer concerns as logic runs on isolated VMs.  @ijstech/node is also a complete secure application development framework featuring the following:

- A default 
secure server which supports SSL protocol by default, and using only minimum set of code reviewed npm packages
- An isolated VM which creates a completely isolated runtime environment for application logics: 
  - each VM instance runs on separate thread
  - restrict the code from accessing server resources (e.g. open new ports, access local files etc)
  - set memory limits / safe against heap overflow DoS attacks
  - set CPU limits, release the VM instance if runtime duration exceeds the limit
- A bunch of packages (https://www.npmjs.com/org/ijstech) which is using the VM security model to wrap third-party npm packages to provide common functionalities in a secure way


# Usage

### Step 1: Create a new folder
```sh
mkdir demo
cd demo
```
 
### Step 2: Initialize a worker/router plugin
```sh
npx @ijstech/plugin init <worker/router> <name>
e.g.: npx @ijstech/plugin init worker @scom/demo1
```
 
### Step 3: Install package dependencies
```sh
npm i
```
for npm 9.x
```sh
npm i --install-links=false
```
or
```sh
docker-compose up install
```

### Step 4: Run unit test
```sh
npm run test
```
or
```sh
docker-compose up test
```
### Step 5: Build plugin
```sh
npm run build
```
or
```sh
docker-compose up build
```

---
_Source: https://npm.io/package/@ijstech/node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
