Storefront

screenshot of Storefront
nextjs
react
tailwind
headless-ui

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.

Overview

The Saleor Storefront is a Next.js app that provides a powerful and customizable e-commerce solution. It offers various features such as file-based routing, React 18 support, Fast Refresh, image optimization, and more. It also includes tools like ESLint, Prettier, Husky, Lint Staged, and Codegen preconfigured for easy development. The storefront can be easily integrated with payment providers like Adyen and Stripe, and supports features like customer address book, vouchers and gift cards, and product catalog management. The Storefront is built on a strongly typed codebase using TypeScript and follows GraphQL best practices.

Features

  • Next.js 13: File-based routing, React 18 support, Fast Refresh, Image Optimization, and more.
  • App Router: Uses React Server Components, Data Cache, and async components.
  • TypeScript: Strongly typed codebase and GraphQL payloads with strict mode.
  • GraphQL best practices: Uses GraphQL Codegen and TypedDocumentString to reduce boilerplate and bundle size.
  • Customizable CSS: TailwindCSS can be extended or replaced with an alternative CSS solution.
  • Tooling included: Comes with ESLint, Prettier, Husky, Lint Staged, and Codegen preconfigured.
  • Global: Channel switcher and Geo detection (coming soon).
  • Dynamic menu: Allows customization of the menu.
  • Hamburger menu: Provides a responsive menu layout.
  • SEO data: Supports adding SEO data for better search engine optimization.
  • Checkout: Single page checkout (including login).
  • Portable to other frameworks: Doesn't use Next.js components, making it easier to port to other frameworks.
  • Adyen integration: Supports payments via the Saleor Adyen App.
  • Stripe integration: Saleor Stripe App integration is a work in progress.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

headless-ui
Headless UI

Headless UI is a set of completely unstyled, fully accessible UI components for React, Vue, and Alpine.js that empower developers to build their own fully accessible custom UI components. Headless UI allows developers to focus on building accessible and highly functional user interfaces, without the need to worry about styling or layout.

ecommerce
Ecommerce

Ecommerce websites sell products or services to customers through an online storefront. These websites typically include features such as product listings, shopping carts, payment processing, and order management tools.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

Zustand

Zustand is a lightweight state management library for React that provides a simple and intuitive API for managing state in your application. It allows developers to easily create and manage global state, and provides a powerful set of tools for optimizing performance and improving developer productivity. Zustand is designed to be easy to use and easy to learn, making it a popular choice for developers of all skill levels.