Skip to content

Getting Started

This guide will walk you through the steps on how to get started using Nitrogen.

What Is Nitrogen?

Nitrogen is a Nuxt template inspired by Shopify's Hydrogen framework for headless commerce. This template is designed to empower Nuxt developers to build fast, scalable, and customizable storefronts that incorporate key features from Hydrogen's starter theme.

Who Is Nitrogen For?

This template is primarily built for Vue developers who have prior experience building headless storefronts using the Storefront API or Admin API. However, it can also serve as an excellent starting point for developers who are new to this space.

Project Structure

This template is structured into 4 main parts:

  1. /app: Contains the pages, components, and scripts responsible for rendering the frontend application.
  2. /data: This is where the GraphQL and RESTful data live, which are used by the app modules to generate content.
  3. /modules: Here you will find the custom Shopify and Klaviyo modules, handling API integration and runtime logic.
  4. /server: Mainly used for optional server configurations and sitemap support.

Project Goals

When building this template, I focused on several key goals, which include the following:

  • Full Control – You have complete control over all Shopify data with no reliance on third-party plugins or modules. The API endpoints, GraphQL client, queries, mutations, and operations are fully extendable within the codebase, ensuring stability and flexibility without depending on external updates.
  • Robust Feature Set – All core Storefront API features found in the Hydrogen starter theme are included in this template. Along with standard collection, product, and cart functionality, it also supports more complex features like filtering products, localization, full customer account functionality, and much more.
  • Built for Speed – Each page and component is designed for speed, avoiding any expensive functions that could slow down rendering time. The minimal GraphQL client caches all collection, search, and product pages to reduce redundant API calls and allows for instant navigation between previously visited pages.

Released under the MIT License