🎽
Ciseco - Hydrogen Shopify's Headless storefront
Preview demoBuy Ciseco
  • 💝A few words of thanks
  • 🌟Hydrogen and Oxygen fundamentals
  • 👋Getting started
  • Getting started
    • Step 1. Getting started with Ciseco - Hydrogen and Oxygen
    • Step 2. Import Definitions and demo entries.
    • Step 3. Deploy to Oxygen
    • Step 4. Setup for using Customer Account API (/account route)
    • Step 5. Congratulations!
  • Ciseco with Development store
    • 🐣Ciseco test with development store
    • Step 1. Install the required apps
    • Step 2. Setup environment variables.
    • Step 3. Setup for using Customer Account API (/account route)
    • Step 4. Install node_module and run on localhost
    • Step 5. Import Definitions and demo entries.
    • Step 6. Deployments
    • Step 6.1. Deployments with GitHub
    • Redirect traffic to the Hydrogen channel
  • Ciseco's features
    • Display the color variant options as image swatch
    • Wishlist
    • Header mega menu
    • Footer menus
    • Product reviews with Okendo
    • Smart filter feature
    • Use the Shopify checkout
    • Customize pages and sections?
    • Add new page
    • Ciseco metaobject definitions and metafield definitions
      • 1 - Product Metafield definitions and Collection Metafield definitions
      • 2 - Link, Social
      • 3 - Hero Item, Section | Hero, Section | HeroSlider
      • 4 - Client Say, Section | ClientsSay
      • 5 - Section | LatestBlog
      • 6 - Section | GridProductsAndFilter
      • 7 - Collection Group, Section | TabsCollectionsByGroup
      • 8 - Section | ImageWithText
      • 9 - Section | Steps
      • 10 - Section | ProductsSlider
      • 11 - Section | CollectionsSlider
      • 12 - Route
    • Custom color, fonts
    • Favicon & Seo
    • Internationalization with Shopify Markets
    • ⁉️Getting the problem while importing demo metaobjects entries.
  • Folder Structure
  • Component Structure
  • Sources And Credits
  • Support
  • Change log
    • Update project
    • Change log
Powered by GitBook
On this page
  • Architecture
  • Hydrogen
  • Remix
  • Oxygen

Was this helpful?

Hydrogen and Oxygen fundamentals

Hydrogen and Oxygen make up Shopify's recommended stack for headless commerce.

PreviousA few words of thanksNextGetting started

Last updated 1 year ago

Was this helpful?

Article data is referenced from Shopify Hydrogen's instructions. Refer to the original article for a better view -

Hydrogen and Oxygen make up Shopify's recommended stack for headless commerce. The different parts of the system work together to make it faster and easier to build and deploy headless Shopify stores.

Architecture

Three key parts of the Hydrogen stack work together to enable a unified developer experience:

Technology
What it does

A set of components, utilities, and design patterns that make it easier to work with Shopify APIs. Hydrogen projects are Remix apps that are preconfigured with Shopify-specific features and functionality. Hydrogen handles API client credentials, provides off-the-shelf components that are pre-wired for Shopify API data, and includes CLI tooling for local development, testing, and deployment.

The open-source React framework that Hydrogen is built on top of. Remix handles routing, data fetching, server-side rendering, UI reactivity, and styling.

Shopify’s global serverless hosting platform, built for deploying Hydrogen storefronts at the edge. Oxygen handles deployment environments, environment variable management, caching, and integration with Shopify’s CDN.

Developing each layer of this tech stack together means provides an end-to-end developer experience that reduces boilerplate code, improves productivity, and promotes optimal performance, accessibility, and SEO practices.

Hydrogen

Project structure

Hydrogen projects are structured like typical apps and you can configure them to your preferences. The following is the default project structure:

Hydrogen project structure

Hydrogen project structure
📂 hydrogen-quickstart/
├── 📁 app/
│   ├── 📁 assets/
│   ├── 📁 components/
│   ├── 📁 graphql/
│   ├── 📁 lib/
│   ├── 📁 routes/
│   ├── 📁 styles/
│   ├── entry.client.jsx
│   ├── entry.server.jsx
│   └── root.jsx
├── 📁 public/
├── CHANGELOG.md
├── README.md
├── customer-accountapi.generated.d.ts
├── env.d.ts
├── jsconfig.json
├── package.json
├── postcss.config.js
├── server.js
├── storefrontapi.generated.d.ts
├── tailwind.config.js
└── vite.config.js

Packages and dependencies

Hydrogen bundles a set of dependencies that work together to enable end-to-end development and deployment:

Package
Description

@shopify/hydrogen

@shopify/hydrogen-cli

CLI tool for working with Hydrogen projects.

@shopify/mini-oxygen

Local development server based on Oxygen.

@shopify/remix-oxygen

Hydrogen channel

  • A Hydrogen sales channel where you can publish product inventory.

  • Access to deployment logs.

Remix

Remix

Key Remix concepts

Concept
Details

Remix maps the nesting logic of app URLs to the nesting logic of components and data-loading. This allows all page data to load in parallel, reducing overall load times.

Remix loaders are functions that load data so that it can be rendered server-side, which reduces the amount of JavaScript that's sent to the client. In Hydrogen, loaders fetch data from Shopify APIs and third-party sources.

Remix actions are functions that accept web-standard form data from clients in order to update state, mutate data, or trigger side effects.

Remix apps default to server-side rendering (SSR), where their React components are rendered as HTML before being sent to the browser.

Because Remix actions use web standard technology like HTML forms, they typically work without JavaScript, but can be enhanced with client-side JavaScript when it's available. This, along with an SSR-first approach, means Remix apps typically deliver smaller bundle sizes that load faster.

Oxygen

Supported plans

Oxygen is available at no extra charge on paid Shopify plans:

  • Basic

  • Shopify

  • Advanced

  • Plus

Oxygen isn't available on Starter plans or development stores.

Technical specs

Limitations

  • Worker files:

    • Must be 10 MB or less

    • Must be named index.js. The optional source map file must be named index.js.map.

    • Are limited to 30 seconds of CPU time per request

    • Can consume 128 MB max of memory. Exceeding this limit could mean dropped requests.

  • Static assets, maximum file sizes:

    • Images: 20 MB

    • Video: 1 GB

    • 3D models: 500 MB

    • Other files: 20 MB

(App)

(Framework)

(Hosting)

Main Hydrogen package. Contains Remix-specific components and utilities for interacting with Shopify APIs. Extends the framework-agnostic package.

that enables Hydrogen to be served on .

The needs to be installed on your Shopify store to enable the following features:

hosting, to deploy your Hydrogen projects.

Managing and deployment , including environment variable management.

Remix is the open-source React-based framework that Hydrogen is built on top of. Hydrogen projects are Remix apps with a set of preconfigured options, bundled with a collection of Shopify-optimized components and utilities. Hydrogen includes a custom Remix adapter that compiles your project for hosting on .

Consider completing Remix's 30-minute for a solid foundation on the architecture and conventions of Remix apps.

Oxygen is Shopify’s global deployment platform that's built for hosting Hydrogen storefronts at the edge. It provides multiple deployment environments, so you can preview every change before shipping it to production. Oxygen supports continuous deployment using , or you can configure your own system.

Enable access to Oxygen by installing the .

Oxygen is a worker-based JavaScript runtime, based on Cloudflare’s open-source library. It supports web standard APIs such as Fetch, Cache, Streams, Web Crypto, and more. Some Node.js APIs aren't available. Check the details for a complete list.

If you prefer, you can .

You can use Oxygen for hosting commerce storefronts. It's subject to the Shopify . Misuse or abuse of Oxygen might lead to throttling, suspension, or termination.

🌟
https://shopify.dev/docs/custom-storefronts/hydrogen/fundamentals
Remix
Quickstart
Hydrogen sales channel app
Oxygen
storefronts
environments
Oxygen
getting started tutorial
GitHub
custom CI/CD
Hydrogen channel
workerd
Oxygen runtime
self-host Hydrogen
Acceptable Use Policy
Hydrogen
Remix
Oxygen
@shopify/hydrogen-react
Remix adapter
Oxygen
Nested routes
Loaders
Actions
SSR
Progressive enhancement
Diagram of how Oxygen interacts with your local Hydrogen project, the Shopify admin, GitHub, and the customer