novinzodevelopers
Getting started

Platform overview

The HTTP interfaces that plugins, themes, and external integrations can use.

Novinzo serves stores through Cloudflare Workers. External code uses HTTP requests, JSON responses, Liquid templates, and browser APIs.

These guides do not require Novinzo source access. Novinzo does not distribute its internal contract packages as a public SDK.

Architecture

flowchart TD
  Seller[Seller browser] --> Dashboard[Novinzo dashboard]
  Buyer[Shopper browser] --> Storefront[Store domain]
  Integration[External integration] -->|Bearer credential| Storefront
  Dashboard -->|Seller session| Backend[Backend]
  Storefront --> Backend
  Backend -->|Webhooks, functions, admin requests| Plugin[Plugin Worker]
  Storefront -->|Public routes, Liquid data, assets| Plugin
  Plugin -->|Forwarded invocation token| Core[Core for plugins]

The dashboard authenticates sellers through session cookies. Store-scoped operations also require a store that the seller can access.

The storefront serves Liquid pages and the same-origin /api/* routes on each store domain. It forwards requests and shopper cookies when necessary.

A plugin is a separate Worker that Novinzo invokes through a private connection. Its production Worker has no public URL.

Core for plugins provides HTTP endpoints for a plugin to read or change platform data. A plugin reaches them through its CORE_FOR_PLUGINS binding.

An invocation token is a signed statement of plugin identity and store access. Novinzo attaches it when it calls a plugin.

The plugin forwards that token on calls to the platform. Binding props and caller-supplied plugin headers do not authenticate these calls.

Three ways to plug in

1. Plugins

A plugin answers HTTP requests on fixed path prefixes:

  • Webhooks under /webhooks/* report events, such as completed purchases.
  • Functions under /functions/* participate in checkout or provide order data.
  • Admin routes under /admin/* support the seller dashboard and embedded screens.
  • Storefront routes under /storefront/* and /storefront-public/* support themes, browsers, and integrations.
  • Assets and theme blocks use /assets/* and /theme/blocks/*.

Novinzo must register the plugin and connect its Worker before platform requests can reach it. A store owner does both for a plugin of their own store, a store-private plugin, from the dashboard and their repository. A plugin for other stores to install needs registration and hosted deployment with Novinzo.

The quickstart builds a standalone Worker. The registration guide describes the information that Novinzo needs.

2. Themes and storefront code

Themes use Liquid templates and browser JavaScript. Browser code calls relative URLs on the store domain, such as /api/cart/synchronize.

Use the storefront API for requests, cookies, errors, and rate limits. Use Liquid themes for template data and plugin tags.

A store owner links a GitHub repository in Settings → Theme, usually one created from the public emergente-labs/novinzo-theme-starter template. The public emergente-labs/novinzo-theme-deploy@v1 action deploys each push to that store with GitHub OIDC. See Deploying a theme.

3. Integrations with API access credentials

An API access credential is a bearer token that belongs to one store and opens the plugins of that store it is granted. The store's owner issues it through the dashboard for installed plugins.

Your server sends the credential to the plugin route on that store domain:

Authorization: Bearer novinzo_api_<credential>

The plugin asks core for plugins to resolve the credential during that request. The credential must match the plugin and the store in the invocation token.

Credentials do not authenticate /rpc

API access credentials apply to supported plugin public routes. They do not authorize backend RPCs or general seller access.

Environment addresses

Use the store domain for storefront requests and external plugin integrations. A server calling /rpc with a store API key uses https://dashboard.novinzo.com/api/rpc.

The example hosts https://core-for-plugins.internal and https://backend.internal are placeholder origins for service-binding requests. Do not use them as internet addresses.

Next steps

On this page