novinzodevelopers
Getting started

Local development

Develop a standalone plugin, test its HTTP behavior, and prepare a hosted integration with Novinzo.

You can develop a plugin in your own repository. These guides use standard JavaScript, Cloudflare Workers, Wrangler, and D1.

Wrangler starts a local Worker and manages Cloudflare resources. D1 stores the quickstart purchase records.

You do not need the Novinzo repository, private package registry access, or platform secrets. The plugin examples do not use a Novinzo SDK.

Prerequisites

Install Node.js 22 or later. Use its bundled npm to install the dependencies in your plugin project.

The quickstart defines the complete project and its scripts. It uses the public wrangler package as a development dependency.

A Cloudflare account is not required for local Wrangler development. A store owner deploys a plugin for their own store without one, as a store-private plugin. Hosting a plugin that other stores install requires a deployment arrangement with Novinzo.

Create the local plugin

Create the project files

Copy the files from the plugin quickstart into an acme-plugin directory.

The project includes the Worker, a D1 migration, a Wrangler configuration, and npm scripts.

Install the dependencies

Run these commands from the acme-plugin directory:

npm install --save-dev wrangler@4
npm run db:local

The migration creates the local D1 tables. It does not access a Novinzo database.

Start the Worker

Run the development script from the same directory:

npm run dev

The script serves the Worker at http://localhost:8787. Keep this terminal open while you send requests from another terminal.

Exercise the HTTP routes

Send the quickstart requests to your local Worker. They demonstrate purchase events, per-store admin data, and public sales counts.

Local requests use fixture headers because Novinzo does not invoke this standalone server. A fixture token cannot authenticate a request to Novinzo.

Local headers are not production authentication

Keep this server local. An internet caller can forge the fixture headers and select a different store.

Use the testing guide to test duplicate events, store isolation, malformed requests, and failed writes.

Test calls back to Novinzo

Standalone development proves your Worker behavior, but it does not provide access to Novinzo platform services.

For a plugin of your own store, preview it or deploy and install it as a store-private plugin: Novinzo then invokes it with real tokens on your store. For any other plugin, before you exercise a platform call, ask Novinzo for three integration prerequisites:

  • A registered plugin code and a private Worker connection.
  • A staging store with the plugin installed and the required permissions granted.
  • The CORE_FOR_PLUGINS and optional BACKEND bindings for the hosted Worker.

Novinzo supplies real invocation tokens through requests to that Worker. Your handler forwards the received token when it calls a platform service.

Do not invent a token, copy a signing secret, or use caller-supplied plugin identity headers. See Security for the trust boundaries.

Themes and admin screens

You can write Liquid files and static browser files in your own project. Novinzo must connect them to a store or dashboard for platform integration.

Use the admin screen guide for the browser message protocol. Use Liquid themes for theme structure and preview requirements.

Next steps

On this page