Dev

Nitrogen

Build headless CloudCart storefronts and deploy them to Nova, CloudCart's edge hosting — with Git-based deploys and preview environments.

Nitrogen is CloudCart's headless storefront stack. You build a completely custom shopping experience in React, powered by the GraphQL Storefront API, and deploy it to Nova — CloudCart's edge hosting — straight from Git or the CLI.

Nitrogen Storefronts in the CloudCart admin

How the pieces fit

┌─────────────────┐     GraphQL      ┌──────────────────┐
│  Your Nitrogen   │ ──────────────▶ │  Storefront API   │
│  storefront      │   /api/sf       │  (your store)     │
│  (React)         │ ◀────────────── │                   │
└────────┬────────┘                  └──────────────────┘
         │  git push / cloudcart nitrogen deploy
         ▼
┌─────────────────┐
│  Nova            │   your-storefront.cloudcart.dev
│  (edge hosting)  │   → or your custom domain
└─────────────────┘
  • Each storefront gets its own API tokens and environment configuration, managed in the admin panel
  • Every push to main deploys to production; pushes to any other branch create preview deployments
  • The starter template ships pre-configured: routing, cart, checkout redirect, SEO meta, and the Storefront API client

Two ways to deploy

GitHub (recommended)CI/CD or manual
SetupConnect the CloudCart GitHub AppCopy a deploy token (cc_nova_…)
DeploysAutomatic on every pushcloudcart nitrogen deploy from anywhere
PreviewsEvery non-main branchcloudcart nitrogen deploy --preview
Best forTeams working in GitHubGitLab/Bitbucket pipelines, custom workflows

Start here

  1. Quickstart — create a storefront in the admin and run it locally in ~5 minutes
  2. Deploying — GitHub auto-deploys, deploy tokens, previews vs production
  3. CLI reference — every cloudcart nitrogen command

Prerequisites

You'll need Node.js 20+, the CloudCart CLI installed, and admin access to a CloudCart store.

On this page