novinzodevelopers
Plugins

Plugin system

Build standalone HTTP Workers, integrate with Novinzo's public contracts and coordinate hosted registration.

A Novinzo plugin adds features to a store through HTTP. License delivery, coupons and product categories use the same contract as third-party plugins.

What a plugin is

A plugin is a standalone Cloudflare Worker. It serves the HTTP routes its features need and owns its storage when persistence is required.

You do not need Novinzo's private repository or workspace packages. There is no published Novinzo plugin SDK required by these guides.

Use standard Request, Response and JSON APIs, or your preferred Worker-compatible HTTP framework. The public contracts define paths, payloads and platform behavior.

  • Plugin Workers have no public URL. Hosted configurations set workers_dev and preview_urls to false.
  • Novinzo dispatches requests to known HTTP surfaces. Novinzo hosts the deployed plugin Worker.
  • Every plugin has a unique code containing letters, digits, underscores and hyphens, matching ^[\w-]+$.

The code identifies the plugin in routing URLs and catalog entries.

Lifecycle

Build and test a standalone Worker with public tooling. Implement the required webhooks, functions, admin routes or storefront routes.

Coordinate catalog registration with Novinzo. Provide the code, name, permissions, webhook subscriptions and capability flags.

Coordinate hosted staging with Novinzo. Novinzo provisions service bindings, storage resources, dispatch routing and preview health coverage.

Sellers install the plugin for their store and grant requested permissions. Third-party plugins are not automatically installed.

Novinzo calls the installed plugin during supported store flows. Coordinate production promotion after hosted integration testing.

A plugin for every store is registered and hosted with Novinzo. A store owner can also build a plugin for their own store and deploy it from its repository, without coordinating with Novinzo: see Your own plugins. Local development does not grant access to Novinzo's hosted services.

See Registration, installs and permissions and Deployment for this coordination boundary.

Surfaces

A surface is a group of allowed routes. Novinzo restricts each caller to its permitted path prefix.

Requests outside that prefix return 404 before reaching your Worker. Encoded path traversal is also refused.

CallerWorker routesStore contextGuide
Core webhooks/webhooks/**Trusted x-novinzo-store-id; compare JSON storeId when present.Webhooks
Core functions/functions/**Trusted x-novinzo-store-id; compare JSON storeId when present.Functions
Dashboard admin proxy/admin/**x-novinzo-store-idAdmin screens
Storefront public proxy/storefront-public/**x-novinzo-store-idStorefront
Storefront order-viewer proxy/storefront-order/**x-novinzo-store-id; the invocation also names the viewed order.Storefront
Liquid PluginBridge/storefront/**x-novinzo-store-idStorefront
Theme block snippets/theme/blocks/**, GET onlyx-novinzo-store-idStorefront
Static asset requests/assets/**, GET onlyTenant-independent assets.Storefront
Dashboard partner proxy/partner/**x-novinzo-partner-store-id when the partner picked a store, never x-novinzo-store-id.
Payment provider notifications/payment-webhooks/**, POST onlyx-novinzo-store-id of the store that owns the payment method connection.
OAuth provider returns/oauth-callback, GET onlyNone. Find the flow, and its store, from the state you issued.

The admin and storefront public proxies use /plugins/<code>/* on their respective hosts. The order-viewer proxy uses /plugins/<code>/orders/<orderId>/* on the store host. The partner proxy uses /plugin-partner/<code>/* on the dashboard API host, and payment providers post to /plugin-payment-webhooks/<connectionId>/* there without authentication. An OAuth provider redirects the browser to /plugin-oauth/<code>/callback on the same host, the one URI to register with it. Liquid PluginBridge invokes server-rendered plugin routes.

Two feature surfaces have their own guides. /partner/** serves partner screens to signed-in accounts, and /payment-webhooks/** receives provider notifications for payments.

/oauth-callback finishes an OAuth flow your plugin started, such as a buyer linking an account or a seller adding your bot to their server. Novinzo forwards only the request's query, with no caller headers, store or invocation token. Do your side of the exchange, then answer 200 with JSON naming the store and where the browser goes: { "storeId": "<uuid>", "returnTo": { "_tag": "Storefront", "url": "https://<store domain>/…" } }, or { "_tag": "PluginPage", "view": "<view>" } for one of your dashboard page's views, null for its default one. Novinzo redirects the browser only after checking that your plugin is installed on that store and that the storefront URL serves it. Any other answer, or none within 15 seconds, leaves the browser on a Novinzo page saying the link expired or could not finish.

Whoever follows the provider's page can hand the return link to someone else. To bind the result to an account, finish it in a call from that account's own surface, such as the order viewer or your admin screen, carrying a code you put in the return.

Every store-scoped request from Novinzo also carries x-novinzo-plugin-invocation; static asset requests and OAuth returns do not. An invocation token is a short-lived signed plugin and store authorization.

Treat it as opaque and forward it unchanged when calling the platform. Novinzo verifies the token and the current install.

Order-viewer endpoints additionally require an invocation for an authorized viewer of that order. An ordinary store invocation does not grant order-viewer access.

Serve GET /health separately from store routes. Health probes report dependency availability without reading or changing store data.

How the platform reaches a plugin

Novinzo manages the routing configuration. Authors provide code and runtime requirements rather than editing platform configuration.

Novinzo hosts separate staging and production Workers for your plugin. It probes a candidate's GET /health before promotion, and normal traffic keeps reaching the live Worker until then.

Plugins call core-for-plugins through env.CORE_FOR_PLUGINS.fetch. The URL https://core-for-plugins.internal is a binding request placeholder, not a public host.

Send the documented JSON payload and forward x-novinzo-plugin-invocation unchanged. The signed token identifies the plugin and store in every environment.

Binding props and x-novinzo-plugin-name do not authorize access. Plugin authors never receive invocation-token signing secrets.

Store-scoped calls require a valid current platform invocation. Cron and background jobs do not receive independent access to store data.

See Calling the platform for complete HTTP examples.

Continue with the guide

On this page