Git Product home page Git Product logo

shadownode's Introduction

ShadowNode

The Node.js Runtime in shadow, which supports NPM packages partially for embeddable platform.

Build Status License FOSSA Status

Currently supports the following platform:

  • OSX
  • Linux

Quick Start

This project is another runtime for your Node.js app, which is to be used in low memory devices. It's inspired and forked from the original awesome project Samsung/iotjs.

To get started with shadow-node, you should follow the build step on a Linux or OSX machine. And this project will not be supported on Windows unfortunately.

Memory usage and Binary footprint are measured at here with real target daily.

Getting Source Code

$ git clone https://github.com/Rokid/ShadowNode.git
$ cd ShadowNode

Build

$ npm run build

To get supported options, run:

$ tools/build.py --help

Install

$ tools/build.py --install

Test

$ npm test

For Additional information see Getting Started.

What's different with Node.js

The ShadowNode's purpose is not going to run the absolute same code both on the Node.js and ShadowNode, within embeddable devices might be severe and less memory requirement, you should write your apps in an light thinking. However we are hoping to share the same community for developers as possible, and the following are the status:

In desktop and embedable ecosystem, the service via DBus is quite normal, in shadow-node, the DBus will be the built-in module. For detailed API, see DBUS API.

The MQTT protocol is used for communication between IoT devices, then ShadowNode would support this protocol natively, and we keep the API consistent with the pop library MQTT.js. See MQTT API for details.

The WebSocket is the 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 [shadow-node][] to your platform(s) and start hacking with JavaScript:

Documentation

License

ShadowNode is Open Source software under the Apache 2.0 license. Complete license and copyright information can be found within the code.

shadownode's People

Contributors

yorkie avatar ilyoan avatar yichoi avatar hs0225 avatar galpeter avatar laszlolango avatar daeyeon avatar bzsolt avatar seanshpark avatar chunseoklee avatar haesik avatar rtakacs avatar nova0821 avatar robertsipka avatar akosthekiss avatar kolipka avatar knightburton avatar wateret avatar legendecas avatar zherczeg avatar akhilkedia avatar sae-bom avatar seo-young avatar qile222 avatar jiangzidong avatar tadziopazur avatar algebrait avatar lemmaa avatar danielballaszte avatar dbatyai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.