Skip to main content
Expresso is an embedded JavaScript runtime inside the Napps mobile application. Your JavaScript runs in the app, calls the APIs documented here, and changes specific parts of the customer experience without a new app build.

Why Expresso exists

Many merchants already have important rules on their website: pricing, product display, validation, promotions, and personalization. Expresso lets you bring that logic into the mobile application in a controlled way. With Expresso, you can:
  • Change application behavior with JavaScript.
  • Create new components for the mobile application.
  • Reuse business rules that already exist on your website.

Expresso is not a browser

Expresso is not a WebView. You write JavaScript against the APIs that Expresso provides, and common browser APIs are not available, including:
  • window
  • document
  • DOM APIs like querySelector, createElement, or addEventListener on HTML elements
  • CSSOM APIs
  • navigation APIs like history and location
  • cookies
  • localStorage
  • IndexedDB
  • Service Workers
  • Web Workers
  • Canvas and WebGL
For the web-like APIs that Expresso does support, such as fetch, URL, and sessionStorage, see Runtime APIs.

What you can build

You are not building a web page. You are writing JavaScript that can:
  • Read product, cart, customer, and store data.
  • Call supported services.
  • Customize app extensions.
  • Update supported components.
To set up a project, see Getting started.