yodaos-project/ShadowNode
소개
엔드 디바이스에서 Node.js를 사용할 수 있습니다(QQ: 796448809).
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalShadowNode
The Node.js runtime in shadow, enables N-API and vast Node.js packages on edge devices.
The project is another runtime for your Node.js packages, while ShadowNode is designed to be used on memory limited devices. It's inspired and forked from the awesome project Samsung/iotjs.
Quick Start
To get started with ShadowNode, you could download prebuilt binaries on Release Page for following targets:
- Linux x64
- macOS x64
Memory usage and binary footprint are measured at here with real target daily.
Documentation
Build
Fetch source code
$ git clone https://github.com/yodaos-project/ShadowNode.git
$ cd ShadowNode
Build ShadowNode
$ npm run build
Get available build options
$ tools/build.py --help
Install
$ tools/build.py --install
Run tests
$ npm test
For additional information see Getting Started.
Compared with Node.js
ShadowNode is not designed to be ran identical code that ran on Node.js. While edge environments are experiencing limited resources on runtime, the packages to be ran on ShadowNode shall be rewritten in a resource compact way. However for the very initial thought of sharing the Node.js vast module ecosystem, we would like make ShadowNode compatible with Node.js with our efforts.
- Assert
- Buffer
- C/C++ Addon API
- Child Process
- Crypto
- DNS
- Events
- File System
- HTTP
- Module
- Net
- OS
- Process
- Stream
- Timers
- TLS
- UDP/Datagram
- Zlib
Since the MQTT protocol is commonly used for communication between IoT devices, ShadowNode supports
the protocol natively, and keeps the API consistent with the popular library MQTT.js. See
MQTT API for details.
The WebSocket is a popular protocol in IoT environment as well, and also supported by ShadowNode
natively. See WebSocket API.
For hardware geek, this project benefits from the upstream IoT.js, which has supported the following hardware interfaces, you are able to port ShadowNode to your platforms and start hacking with JavaScript:
License
ShadowNode is Open Source software under the Apache 2.0 license. Complete license and copyright information can be found within the code.
관련 프로젝트 살펴보기
불러오는 중…