Skip to content
Run WayScript programs from JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

WayScript JS

npm version CircleCI Status

A new way to build software.

  • WayScript gives you flexible building blocks to seamlessly integrate, automate and host tools in the cloud. Unlock new potential with drag and drop programming.

  • Instantly connect to hundreds of datasets including GitHub, Twitter, databases, ecommerce data, or build your own integration. WayScript can read data from Excel, Google Sheets, and an evergrowing list of third-party APIs.

  • Seamlessly migrate to the cloud: Generate interfaces, instantly share, and run via event-based triggering.

Quick Start

If you use npm:

npm install wayscript

Or load directly from CDN:

<script src=""></script>

Basic Usage

  1. Get the API Key from your WayScript user profile page

  2. Run WayScript programs from your JavaScript code:

wayscript.apiKey = 'YOUR_API_KEY';

// Run a program by id
let programId = 1234;
wayscript.runProgram( programId );

// Pass variables to a program (optional)
let variables = [ 'one', 'two', 'three' ];
wayscript.runProgram( programId, variables );

// Run a specific function within your program (optional)
let functionName = 'My Function';
wayscript.runProgram( programId, variables, functionName );

// Handle the response
let onSuccess = function( responseText ) {
  console.log( responseText );
let onError = function( responseText ) {
  console.log( responseText );
wayscript.runProgram( programId ).onSuccess( onSuccess ).onError( onError );

⭐ In order to run a program using the WayScript Python API, you must first add an active Webhook Trigger to that program.

Running a specific function

  • The function you specify MUST have an active Webhook Trigger.
  • If you do not specify a function name in your request and your program has one function with a Webhook Trigger, the function with the Webhook Trigger will run.
  • If you do not specify a function name in your request and your program has multiple functions with Webhook Triggers, you will be asked to specify which function you would like to run.

Example Apps

You can’t perform that action at this time.