Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
/ runtime Public archive

[not maintained] Lightweight JavaScript library operating system for the cloud

License

Notifications You must be signed in to change notification settings

runtimejs/runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 27, 2016
286aa68 · Mar 27, 2016
Jan 17, 2016
Feb 14, 2015
Nov 1, 2015
Nov 1, 2015
May 25, 2014
Jan 16, 2016
Mar 27, 2016
Mar 27, 2016
Mar 27, 2016
Jul 18, 2015
Aug 20, 2014
Mar 27, 2016
Mar 27, 2016
Mar 27, 2016
Mar 27, 2016
Jun 21, 2015
Jun 17, 2014
Jan 16, 2016
Jan 17, 2016
Mar 27, 2016
Mar 27, 2016

Repository files navigation

runtime.js

Build Status npm Gem Travis

runtime.js is an open-source library operating system for the cloud that runs JavaScript, could 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.

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 VM is installed, so you can test/debug 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 the QEMU VM:

runtime start

Or let it watch directory for changes and restart QEMU automatically:

runtime watch

WARNING: runtime.js is in development and not ready for production use. Contributions are welcome.

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 and runs JavaScript code using embedded V8 JavaScript engine.

Docs

API docs

License

Apache License, Version 2.0