WarpJS API

The WarpJS API enables you to indicate which functions are to be run outside the event loop.

To get the API, just type:
npm install @warpjs/warp

For callback functions, instead of calling the function, use warp.call

            
              
const warp = require('warp');

function f(a, cb) {
  return cb(a);
}

warp.call(f, 10, v => {
  console.log(v); // will show 10
});
            
          

For promises/async functions, instead of calling the function, use warp.callAsPromise

            
              
const warp = require('warp');

async function f(a) {
  return a;
}

let v = await warp.callAsPromise(f, 10);
console.log(v); // will show 10

            
          

WarpJS automatically manages the function context and scope. You can warp any function as you want, where you want!

            
              
const warp = require('warp');

function scope(factor) {
  function triple(v) { 
    return v * 3; 
  }
  async function f(a) {
    return triple(a * factor);
  }
  
  let v = await warp.callAsPromise(f, 10);
  console.log(v); // will show 60
}

scope(2);

            
          

Easy Integration

WarpJS API can be applied very easily on any JavaScript codebase.

Compatibility

Warp API is available for browsers or Node.js.

Tools

A Visual Studio Code extension eases the use of the WarpJS API in your projects.

WarpJS Service

Create your server API directly from the browser or your Node.js, code in one line

WarpJS Worker

Get a fluid and reactive UI in your browser

WarpJS Thread

Boost the performance of your Node.js servers

Meet the team

WarpJS is powered by ScaleDynamics, a French Startup, and our 15 experts are devoted to accelerate the web for a better user experience. Created and funded in 2018, the company is born global.

Our founder, Gilbert, and part of our team, previously accelerated Android and his company was bought by Google. He worked there with some of our experts for 7 years.

We have strong track records in optimizing compilers and runtimes for performance. Meet the full team!

If you would like to co-innovate with us, let's do a Proof Of Concept to determine the efficiency of WarpJS in your context.