The Developer Hub

Welcome to the Apperyio developer hub. You'll find comprehensive guides and documentation to help you start working with apperyio as quickly as possible, as well as support if you get stuck. Let's jump right in!



Server Code overview.

What is Server Code?

Server Code allows you to write custom app code using JavaScript that will run (execute) on the server. You write the logic inside a Server Code script. A script can be easily tested right inside the Server Code dashboard.

Server Code allows you to write any app logic. For example, in the script you can:

  • Perform calculations.
  • Connect to the Database to retrieve, update or create data.
  • Send Push Notification messages.
  • Invoke any 3rd party REST API.
  • And anything else you might need.

Server Code API

Complete Server Code API.


The Server Code dashboard is where you can manage your scripts, libraries and schedule Jobs. In the dashboard you can:

  • Create a new script or library.
  • View the list of existing script and libraries.
  • Open and edit a script or library.
  • View statistics and reports for any script or all scripts.
  • Import a plug-in.
  • Schedule a script to run periodically (Job).

New Script

To create a new script click the Create script button.

You can also create folders to organize your scripts. To place a script into a folder, click the gear-icon when hovering over the folder name. You can also drag and drop a script inside a folder.


Server Code uses JavaScript as the language to write the script logic. A script is where you write/develop your logic. You have access to almost all the standard JavaScript APIs.

Server Code also provides out-of-the-box the following APIs:

  • Console - to display debug information.
  • Database - to access the Database.
  • Database user - to access the Users collection inside the database.
  • Push Notification - to send Push Notification messages.
  • ScriptCall - for invoking another Server Code script.
  • XMLHttpRequest - for invoking any 3rd party APIs.
  • In Memory Data - a fast cache for storing short-lived data.
  • Request - for working with input parameters into the script.
  • Response - for setting up script response.

Is Server Code the same as Node.js?

Both Server Code and Node.js are based on Google V8 JavaScript engine, but Server Code doesn't run Node.js.

Using in an App

Every Server Code script has a REST API which you invoke from the app. Inside the App Builder we offer a wizard to import (generate) the API for the script automatically. Go to Using APIs in an App to learn more.

Good to Know.

To the app (or the outside world), a script is simply a REST API. Another way to look at it, Server Code allows you to create custom APIs very quickly.


Server Code provides a number of out-of-the-box libraries. A library can be included in any script. This allows you to invoke any function from the library.

You can also create custom libraries.


A plugin provides some out-of-the-box functionality that you can quickly import into your account and start using it. A plugin is a script plus any dependent libraries. A plugin is created by the team.


A script can be scheduled to run periodically. It's called a Job. For example, you can schedule a script to run every 24 hours to check the database for inventory levels.


The main Server Code page displays total script statistics. The following information about all your scripts is available:

  • Script size - storage used by all scripts.
  • Execution count - the total number of all calls to scripts.
  • Total calls - the total number of all API calls to backend services.

There is also statistics separately for each script when you open a script for editing.


Server Code overview.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.