All Projects → eduardsui → Jib.js

eduardsui / Jib.js

Licence: unlicense
A lightweight javascript run-time environment, with node.js compatiblity in mind

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Jib.js

foxx-builder
ArangoDB Foxx Services in a super intuitive way
Stars: ✭ 22 (-56%)
Mutual labels:  javascript-framework
Library Detector For Chrome
🔍 Extension that detects which JavaScript libraries are running on a page
Stars: ✭ 566 (+1032%)
Mutual labels:  javascript-framework
10 Weeks
10-weeks of technology exploration
Stars: ✭ 22 (-56%)
Mutual labels:  javascript-framework
A-Tour-of-JavaScript
This Repository consist of Daily learning JS, Assignments, coding challenge, projects, references, tutorial
Stars: ✭ 22 (-56%)
Mutual labels:  javascript-framework
Troika
A JavaScript framework for interactive 3D and 2D visualizations
Stars: ✭ 342 (+584%)
Mutual labels:  javascript-framework
Reef
A lightweight library for creating reactive, state-based components and UI.
Stars: ✭ 700 (+1300%)
Mutual labels:  javascript-framework
virtual-dom
Application framework for real time collaboration using Croquet
Stars: ✭ 14 (-72%)
Mutual labels:  javascript-framework
Aurelia
Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
Stars: ✭ 995 (+1890%)
Mutual labels:  javascript-framework
Ember.js
Ember.js - A JavaScript framework for creating ambitious web applications
Stars: ✭ 22,092 (+44084%)
Mutual labels:  javascript-framework
Nest Cli
CLI tool for Nest applications 🍹
Stars: ✭ 889 (+1678%)
Mutual labels:  javascript-framework
Tui
This is a high quanlity components library for VUE
Stars: ✭ 258 (+416%)
Mutual labels:  javascript-framework
Webster
a reliable high-level web crawling & scraping framework for Node.js.
Stars: ✭ 364 (+628%)
Mutual labels:  javascript-framework
Liquidcore
Node.js virtual machine for Android and iOS
Stars: ✭ 765 (+1430%)
Mutual labels:  javascript-framework
moer
一个全新的基于Proxy的MVVM框架
Stars: ✭ 13 (-74%)
Mutual labels:  javascript-framework
Mojiito
DEPRECATED - No longer maintained! Mojito is a JavaScript framework, heavily inspired by Angular, which brings the benefits of components, services, ... to your (static) website.
Stars: ✭ 13 (-74%)
Mutual labels:  javascript-framework
haas-mini-program
HaaS轻应用框架
Stars: ✭ 26 (-48%)
Mutual labels:  javascript-framework
Website
Source for emberjs.com
Stars: ✭ 621 (+1142%)
Mutual labels:  javascript-framework
Web Atoms.js
Enterprise Grade JavaScript Web Components with MVVM inspired from Flex and Silverlight
Stars: ✭ 47 (-6%)
Mutual labels:  javascript-framework
Otag
Otağ JavaScript Çatısı GitHub Yansısı
Stars: ✭ 29 (-42%)
Mutual labels:  javascript-framework
Must Watch Javascript
A useful list of must-watch talks about JavaScript
Stars: ✭ 6,545 (+12990%)
Mutual labels:  javascript-framework

jib.js

Jib.js is a lightweight javascript run-time environment, designed to be easily embedded into other applications. It uses mostly standard C functions and some POSIX functions.

Its objectives are:

  • small footprint
  • easily embeddable
  • portable
  • no dependecies
  • node.js compatiblity
  • to be usable as a shell interpreter

It may store all .js modules inside the library/executable (see src/modules.h), external I/O being optional.

It currently supports: fs, net, tls, crypto, path, http, https, url, querystringify, events and Promises.

jib.js uses duktape(default) or quickjs as interpreter.

Compiling

Linux & BSD:

$ ./build_unix.sh

Windows:

build_win32.bat

macOS:

$ ./build_macOS.sh

esp32:

$ cd esp32
$ idf.py build

Examples

Run a simple web server on localhost on port 8080:

$ ./jib examples/server.js

Simple hello world (from node.js website):

const http = require('http');

const hostname = '127.0.0.1';
const port = 3000;

const server = http.createServer(function(req, res) {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World\n');
});

server.listen(port, hostname, function() {
  console.log(`Server running at http://${hostname}:${port}/`);
});

It also supports streams:

// ...
  var readStream = fs.createReadStream("." + pathname);
  readStream.on('open', function () {
    readStream.pipe(res);
  });

  readStream.on('error', function(err) {
    res.statusCode = 404;
    res.end(err.toString());
  });
// ...

License

Where not specified public domain applies. Some sources from third parties are under BSD, MIT or Apache.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].