Coder Social home page Coder Social logo

streamich / lowjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neonious/lowjs

1.0 2.0 0.0 360 KB

A port of Node.JS with far lower system requirements. Community version for POSIX systems such as Linux, uClinux or Mac OS X.

Home Page: http://www.lowjs.org/

License: MIT License

Makefile 0.46% C 2.12% JavaScript 57.78% C++ 37.30% HTML 0.02% TypeScript 2.04% CSS 0.28%

lowjs's Introduction

lowjs

low.js is a port of Node.JS with far lower system requirements.

  • low.js starts up instantly, while Node.js does not (0.6 to 1.5 seconds wait time on Raspberry Pi 2).

  • low.js only uses a fraction of the disk space and memory which Node.js requires, leaving more resources for other processes.

  • With low.js, you can program JavaScript applications utilizing the full Node.js API and run them not only on normal PCs, but also on embedded devices, such as ones based on the $3 ESP32 microcontroller with Wifi on-board.

For more information on low.js, please visit http://www.lowjs.org/ .

First steps / documentation

To try out low.js, download the webserver example which you can run with both low.js and Node.js.

The documentation is located at lowjs documentation.

Compile from source

In case the binary distributions available at http://www.lowjs.org/ do not work for your needs, you can compile from source.

Before compiling, make sure you have the following software installed:

make g++
automake autoconf libtool
python py-pip
nodejs
npm (if not already installed together with nodejs)

Note: Node.js is only used to transpile the low.js libs from ES6 to ES5. It is only need for the build process. The binary distributions of low.js available on http://www.lowjs.org/ do not include Node.js, of course - this would defeat the purpose.

With this software installed, please install pyyaml with pip:

pip install pyyaml

The compilation itself can be done with these commands:

git clone https://github.com/neonious/lowjs
cd lowjs
git submodule update --init --recursive
make

low.js is now built in bin and can be called via bin/low.

The lib directory is also required for low to work (it accesses it via path_to_bin/../lib) and must be copied when creating a distribution. When creating a distribution, it might also make sense to strip the binary with the strip command, to save some KB.

Running tests

Please see the lowjs test documentation.

License / Authors / Contributions

We appreciate every person or company who is willing to contribute to low.js and its related products. We will gladly accept any code contribution which helps the cause after an appropriate review. Bug reports and suggestions are also welcome!

low.js, with exception of the adaption for ESP32, is placed under the MIT license, allowing you to use low.js commercially and even modify it. The adaption of low.js for ESP32 is not Open Source. low.js is maintained by neonious GmbH, the makers of the neonious one microcontroller board.

Contact us

neonious GmbH
Münsterstr. 246
40470 Düsseldorf
Germany

Managing Director / CEO
Thomas Rogg

TEL +49 211 9241 8187
FAX +49 211 9241 8172

[email protected]
District Court Düsseldorf
HRB 83086

Node.js is a trademark of Joyent, Inc. (https://www.nodejs.org/). ESP32 and ESP32-WROVER are products by Espressif Systems (https://www.espressif.com/). neonious GmbH is in no way affiliated with these companies.

lowjs's People

Contributors

kennell avatar stevefan1999-personal avatar thomasrogg avatar

Stargazers

 avatar

Watchers

 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.