runtime.js

[未维护]云端轻量级 JavaScript 库操作系统。([not maintained] Lightweight JavaScript library operating system for the cloud)

Github星跟蹤圖

Project is not maintained, use at your own risk

There is a project at runtimejs-comm/runtime that is looking to continue by maintaining a fork. Visit the repository on Github for more details.

runtime.js

Build Status npm Gem Travis

runtime.js is an open-source library operating system (unikernel) for the cloud that runs JavaScript, can be bundled up with an application and deployed as a lightweight and immutable VM image.

It's built on V8 JavaScript engine and uses event-driven and non-blocking I/O model inspired by Node.js. At the moment KVM is the only supported hypervisor.

It tries to be compatible with npm module ecosystem and supports some of the Node.js API.

WARNING: project is in development and not ready for production use.

Installation

First thing is the command line tool runtime-cli, it will add runtime command to the shell. Type runtime to get full usage help.

npm install runtime-cli -g

Make sure QEMU is installed, it enables running applications locally.

brew install qemu           # OSX
sudo apt-get install qemu   # Ubuntu

Getting Started

Create new project and add index.js entry point file:

mkdir project
cd project
npm init
npm install runtimejs --save
echo "console.log('ok')" > index.js

Run project locally in QEMU:

runtime start

That's it, it should start and print ok in the console.

Optionally you can let it watch directory for changes and restart QEMU automatically:

runtime watch

How does it work?

There are two main components: operating system kernel and a JavaScript library.

The kernel is written in C++ and manages low-level resources like CPU and memory, runs JavaScript using embedded V8 engine. Library drives the entire system and manages hardware devices (usually virtualized by hypervisor).

Docs

API docs

Community

Modules and projects developed by the community for runtime.js

License

Apache License, Version 2.0

主要指標

概覽
名稱與所有者runtimejs/runtime
主編程語言C++
編程語言Shell (語言數: 7)
平台Docker, Linux, Mac
許可證Apache License 2.0
所有者活动
創建於2014-05-25 20:26:29
推送於2019-12-19 10:13:43
最后一次提交2019-12-19 10:13:41
發布數31
最新版本名稱v0.2.16 (發布於 2017-09-30 23:59:53)
第一版名稱v0.0.1 (發布於 )
用户参与
星數1.9k
關注者數77
派生數126
提交數689
已啟用問題?
問題數112
打開的問題數40
拉請求數35
打開的拉請求數8
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?